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?...
- 09-09-2003 #1Linux 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?
- 09-09-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
As root execute:
If you now look in the /proc/scsi file withCode:modprobe usbstorage
You chould now see you new storage...to mount it try withCode:cat /proc/scsi
Then ofcourse make sure you create the /mnt/myusb directoryCode:mount /dev/sda /mnt/myusb
Regards
Andutt
- 09-09-2003 #3Linux 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.
- 09-09-2003 #4Linux 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! */
- 09-09-2003 #5Linux 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.
- 09-10-2003 #6Linux 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?
- 09-10-2003 #7Linux 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.
- 09-11-2003 #8Linux 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
- 09-11-2003 #9Linux User
- Join Date
- Aug 2003
- Posts
- 289
ok, thanks guys!
- 09-15-2003 #10
I mount my flash drive or usb digital camera with the following command
/dev/sda does not workCode:mount -t msdos /dev/sda1 /mnt/flash
I am on a journey to mastering Linux and I got a bloody long way to go!!!


Reply With Quote
