usb flash drive mountin

Hi all,

I am pretty sure this has been asked many times already. But I can’t seem to find my answer. So I apologize in advance if the answer is already out there.

I am trying to mount a USB flash drive on openSuse 10.3. Although I used to see my drive being auto mounted in 10.2, this does not happen here. So I tried to manually do it for now and fix the auto mounting issue later. But I have failed to do manual mount also.

When I plug in my usb drive, I check kernel message with dmesg and this is what I get:

usb 4-1: new high speed USB device using ehci_hcd and address 11
usb 4-1: new device found, idVendor=0930, idProduct=6545
usb 4-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 4-1: Product: DataTraveler 2.0
usb 4-1: Manufacturer: Kingston
usb 4-1: SerialNumber: 5B8312003667
usb 4-1: configuration #1 chosen from 1 choice

Me being a newbie, I have no idea what it means. I was trying to look for why device is my flash driver so that I can mount it. I was expecting something like sda, sdb, etc kind of information so that I can do

mount /dev/sda /mnt/usb

Now, after some trial and errors, I found the following entries in under my /dev directory

usbdev4.11_ep00
usbdev4.11_ep81
usbdev4.11_ep02

does this indicate anything? (I am assuming a connection between address 11 and usb 4-1 line from the dmesg output)

Anyhow, I tried to mount the entries with

mount /dev/usbdev4.11_ep00 /mnt/usb/

and I get an error message:

mount: you must specify the filesystem type

so I try,

mount -t vfat /dev/usbdev4.11_ep00 usb/

and I get

mount: unknown filesystem type 'vfat

now why is that? I thought vfat be recognized by kernel

Please help and guide me. If this has been answered, please let m w know link of the page.

BTW, these are my lsusb output

Bus 004 Device 011: ID 0930:6545 Toshiba Corp.
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 002: ID 047d:102a Kensington
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

what does it mean? does it help me to mount the drive (other than knowing that my device has been recognized by kernel)

thanks all.

Sa’ad

Wow, … it looks you learned some neat stuff.

Still, if it were me, I would plug in my USB stick, and then if it were not automounted, type:
su -c ‘fdisk -l’
(enter root password when prompted and note that is a lower case ‘L’).

From that I would determine what my flash drive might be, … lets say /dev/sdc1.

Now I previously prepared a mount point on /windows/X for such occasions (ie created the directory /windows/X ) . And I would simply open a konsole, and type “su” to get root permissions, and then mount my flash drive with:
mount -t vfat -o rw,users,uid=oldcpu /dev/sdc1 /windows/X
or
mount -t vfat -o gid=users,umask=000 /dev/sdc1 /windows/X
and access the drive.

And then to unmount I would type:
umount /dev/sdc1

… of course your memory stick is likely not sdc1, but some other /dev name.

After my USB being plugged in, fdisk -l does not show my drive

Here is the output I get:

flamingo:/mnt # fdisk -l

Disk /dev/sda: 120.0 GB, 120000000000 bytes
255 heads, 63 sectors/track, 14589 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2527a2c7

Device Boot Start End Blocks Id System
/dev/sda1 * 1531 2836 10490445 83 Linux
/dev/sda2 1276 1530 2048287+ 82 Linux swap / Solaris
/dev/sda3 2837 5447 20972857+ 83 Linux
/dev/sda4 5448 14589 73433115 f W95 Ext’d (LBA)
/dev/sda5 5448 10669 41945683+ 83 Linux
/dev/sda6 10670 14589 31487368+ 83 Linux

Partition table entries are not in disk order

and thats all.

When do this with opensuse 11 (in another machine), I get fdisk -l information on my drive. But not in the this system (running 10.3).

any help?

I assume you waited about 30 to 60 seconds before typing the “fdisk -l” command?

If your USB stick was recognized, it would be sdb1.

Anyway, try /dev/sdb1 and see if you have any success. ie something like
mount -t vfat -o rw,users,uid=oldcpu /dev/sdb1 /windows/X
or
mount -t vfat -o gid=users,umask=000 /dev/sdb1 /windows/X
but use your own mount point instead of /windows/X and use your own user id (uid) instead of oldcpu.

ok,

so I rebooted my machine and drive was automatically mounted. fdisk -l also shows that my drive was recognized as sdb1.

So now the question is why did I have to reboot?

dmesg also printed

d 4:0:0:0: [sdb] 7823360 512-byte hardware sectors (4006 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] 7823360 512-byte hardware sectors (4006 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 4:0:0:0: [sdb] Attached SCSI removable disk
sd 4:0:0:0: Attached scsi generic sg2 type 0

which is nice. It did not do so when I just plugged in the drive without rebooting…

any ideas?

Sa’ad

BTW my opensuse 11 (in another machine) just froze coming back from hibernation…

any clue?

Sa’ad

I also got this problem in opensuse 11.
Did anyone know what’s happen cause it?

It seems to be characterised by a dysfunctional usb/udev issue. (Not sure if it relates to particular usb chipsets). From reading several posts, it appears most users with this type of problem manage to get usb devices recognised only if they boot with the device plugged in. I have not yet seen a definitive solution.

1)Try plugging in a usb device and do

/etc/init.d/boot.udev restart

2)To monitor udev events, do

udevadm monitor

then plug in the usb device. Any output?

Similar recent post.

I have the same problem except in my case USB ports seem to be inactive in version 11.0. All wored fine in version 10.3

same here cant get my usb flash drive to work

fdisk -l output:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x15fe2b3d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         262     2104483+  82  Linux swap / Solaris
/dev/sda2   *         263        2873    20972857+  83  Linux
/dev/sda3            2874       30401   221118660   83  Linux

udevadm monitor output:

udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent

UEVENT[1216833417.732284] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
UEVENT[1216833417.733137] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_endpoint/usbdev1.16_ep00 (usb_endpoint)
UEVENT[1216833417.733433] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
UEVENT[1216833417.735350] add      /class/scsi_host/host9 (scsi_host)
UEVENT[1216833417.736384] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep81 (usb_endpoint)
UEVENT[1216833417.737535] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep02 (usb_endpoint)
UDEV  [1216833417.750796] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
UDEV  [1216833417.770229] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_endpoint/usbdev1.16_ep00 (usb_endpoint)
UDEV  [1216833417.860515] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
UDEV  [1216833417.892973] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep81 (usb_endpoint)
UDEV  [1216833417.895654] add      /class/scsi_host/host9 (scsi_host)
UDEV  [1216833417.906910] add      /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep02 (usb_endpoint)
UEVENT[1216833432.455330] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep81 (usb_endpoint)
UEVENT[1216833432.456477] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep02 (usb_endpoint)
UEVENT[1216833432.457739] remove   /class/scsi_host/host9 (scsi_host)
UEVENT[1216833432.457963] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
UEVENT[1216833432.458129] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_endpoint/usbdev1.16_ep00 (usb_endpoint)
UEVENT[1216833432.458325] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
UDEV  [1216833432.461154] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep02 (usb_endpoint)
UDEV  [1216833432.466420] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_endpoint/usbdev1.16_ep00 (usb_endpoint)
UDEV  [1216833432.467560] remove   /class/scsi_host/host9 (scsi_host)
UDEV  [1216833432.469295] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0/usb_endpoint/usbdev1.16_ep81 (usb_endpoint)
UDEV  [1216833432.477527] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
UDEV  [1216833432.485037] remove   /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)

fstab

/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVS-_WD-WXE907G08461-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVS-_WD-WXE907G08461-part2 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVS-_WD-WXE907G08461-part3 /home                ext3       acl,user_xattr        1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

lsmod | grep usb output

usb_storage           100744  0
lirc_mceusb2           30724  0
lirc_dev               30632  1 lirc_mceusb2
usbhid                 60260  0
hid                    53708  1 usbhid
ff_memless             21896  1 usbhid
usbcore               164812  7 usb_storage,uvcvideo,lirc_mceusb2,usbhid,ohci_hcd,ehci_hcd
scsi_mod              168436  6 st,usb_storage,sr_mod,sg,sd_mod,libata

would be glad if someone could help me :slight_smile:

(sry cant find “EDIT” button :slight_smile: )

forgot to mention, im runnig openSUSE 11.0

the USB is 16gb Adata

Interesting your udev output is similar to mine, but I also get a mount point assigned:

UEVENT[1216845138.355494] add /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host18/target18:0:0/18:0:0:0/block/sdb (block)
UEVENT[1216845138.355570] add /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host18/target18:0:0/18:0:0:0/block/sdb/sdb1 (block)
UEVENT[1216845138.355690] add /class/scsi_device/18:0:0:0 (scsi_device)
UEVENT[1216845138.355766] add /class/scsi_generic/sg3 (scsi_generic)
UEVENT[1216845138.355848] add /class/bsg/18:0:0:0 (bsg)
UDEV [1216845138.596278] add /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host18/target18:0:0/18:0:0:0/block/sdb (block)
UDEV [1216845138.882626] add /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host18/target18:0:0/18:0:0:0/block/sdb/sdb1 (block)

Then I get the standard KDE notification to mount the device as a user. I wonder what is failing for you? Did you try restarting udev (as explained in my previous post)? I will have a think…

i tryed another usb devices, (usb drive and mp3 player) and they worked with no problems so i guess its the 16gb a-data usb key,

guess adding some modules for the kernel or idk what will help :frowning:

If it doesn’t operate correctly with the existing usb kernel drivers, I don’t like your chances.

piggybacking on this thread. I am having the exact same issues. Trying both a USB stick and ipod, and neither work. I am trying suse as a possible replacement from ubuntu, and this is a very peculiar error, considering something this low level would (i would have thought) be in the kernel, and hence common over pretty much all up to date distros. I am using x64 suse 11.0, and my udev outputs look pretty similar to everyone elses, so i wont bother posting again. tomorrow I may install KDE 4.1 and see if they mount in there.

Can I join in too? My Western Digital “My Book” is seen without any problems when I plug it into a usb port under openSUSE 11.0 64 bit and the Gnome desktop, however, memory sticks, Palm Tungsten E2 PDA and my Olympus Mu410 are just not getting through to the computer.

Under 10.3 there were no problems, all the above worked okay.

I’ve noted though, when “Hardware Information” is requested through YaST, my disgo memory stick is listed along with all the other drives. Some how openSUSE11 isn’t connecting this hardware to the software when the usb leads are plugged into the sockets.

Do we have to wait until 11.1 for an answer?

Ray Woods
London UK

IMHO 11.1 will NOT have an answer … at least not unless a lot of users try out the 11.1 alpha2 (and subsequent alpha/beta releases) and write bug reports on 11.1.