Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: usb flash drive mountin

  1. #1

    Default 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

  2. #2
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,522
    Blog Entries
    37

    Default Re: usb flash drive mountin

    Quote Originally Posted by saadli View Post
    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
    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.

  3. #3

    Default Re: usb flash drive mountin

    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?

  4. #4
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,522
    Blog Entries
    37

    Default Re: usb flash drive mountin

    Quote Originally Posted by saadli View Post
    After my USB being plugged in, fdisk -l does not show my drive
    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.

  5. #5

    Default Re: usb flash drive mountin

    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

  6. #6

    Default Re: usb flash drive mountin

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

    any clue?

    Sa'ad

  7. #7
    Join Date
    Jun 2008
    Location
    Taiwan
    Posts
    150

    Default Re: usb flash drive mountin

    I also got this problem in opensuse 11.
    Did anyone know what's happen cause it?
    Regards,
    Bryan Yu
    http://lifestory.moqin.com/

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,187
    Blog Entries
    1

    Default Re: usb flash drive mountin

    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.

  9. #9

    Default Re: usb flash drive mountin

    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

  10. #10

    Default Re: usb flash drive mountin

    same here cant get my usb flash drive to work

    fdisk -l output:
    Code:
    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:
    Code:
    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
    Code:
    /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
    Code:
    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

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •