Find the answer to your Linux question:
Results 1 to 10 of 10
guys how do i access my usb flash disk/thumb drive in linux? like i can mount my win disk with /dev/hdb1...etc, etc... what do i use in usb?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Aug 2003
    Posts
    289

    thumb drives


    guys how do i access my usb flash disk/thumb drive in linux? like i can mount my win disk with /dev/hdb1...etc, etc... what do i use in usb?

  2. #2
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    As root execute:

    Code:
    modprobe usbstorage
    If you now look in the /proc/scsi file with

    Code:
    cat /proc/scsi
    You chould now see you new storage...to mount it try with

    Code:
    mount /dev/sda /mnt/myusb
    Then ofcourse make sure you create the /mnt/myusb directory
    Regards

    Andutt

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Unless the device has a partition table, in which case you will need to mount /dev/sda1 instead. usb-storage should be modprobed automatically by the hotplug scripts, so what you should do is create an entry in /etc/fstab for the USB drive, so that a normal user can mount it.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Aug 2001
    Location
    USA, Texas
    Posts
    217
    What about the usbdevfs. I thought you needed that for USB storage devices. something like .... mount -t usbdevfs none /proc/bus/usb ?
    [ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
    /* Don\'t make me use it! */

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    usbdevfs is like the user space interface for querying the USB drivers, much like the proc filesystem. What I don't understand is why they have written a seperate filesystem for it instead of integrating it into the proc file system. At least they have integrated it in 2.6.

  7. #6
    Linux User
    Join Date
    Aug 2003
    Posts
    289
    linux consider it as a scsi type device? ain't sda a scsi type device? so everytime i have to mount it, i have to probe it? or can i do something like it were a floppy or cd?

  8. #7
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Yeah, the USB Mass Storage code interfaces with userspace through the SCSI code.

    Like I said, the hotplug scripts should modprobe it for you automatically, so you should be able to just mount it directly. You might want to create an entry in fstab, though.

  9. #8
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    check

    /proc/scsi if your interface has been found...you can also verify witch fdisk -l on /dev/sd* to see where you usb interface haev been added.
    Regards

    Andutt

  10. #9
    Linux User
    Join Date
    Aug 2003
    Posts
    289
    ok, thanks guys!

  11. #10
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    I mount my flash drive or usb digital camera with the following command
    Code:
    mount -t msdos /dev/sda1 /mnt/flash
    /dev/sda does not work
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

Posting Permissions

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