usb flash drive won't mount
OK...let's start with system specs.
Dell inspiron laptop.
1.6 GHz Intel P4 (Mobil)
512 M Ram
Nvidia GF4 Go 440
Slackware 9.1 (currnet)
Linux 2.6.1 kernel from kernel.org source.
I think that is all of the important stuff.
My problem is with a usb storage unit. I have a Scan Disk 256M usb flash thingie. It lights up when I plug it in. :)
dmesg | scsi gives the following:
scsi0 : SCSI emulation for USB Mass Storage devices
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
cat /proc/scsi/scsi gives the following:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Generic Model: STORAGE DEVICE Rev: 1.02
Type: Direct-Access ANSI SCSI revision: 02
cat /proc/bus/usb/devices gives the following:
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.1 uhci_hcd
S: Product=UHCI Host Controller
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0781 ProdID=7101 Rev= 1.02
S: Manufacturer=SanDisk Corporation
S: Product=Cruzer Mini
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
and lastly....mount -t vfat /dev/sg0 /mnt/usb gives the following:
mount: /dev/sg0 is not a block device
Any ideas?????......I can't seem to figure it out......I have also tried sda1...
Works fine under windows......
Thanks for any help I can can get......
I'm not sure, but I don't think you can mount from the /dev/ folder. I may be wrong though. Anyway, when I installed my digital camera as a usb mass storage device, I created a folder called /mnt/camera, then I put the following line in my /etc/fstab file:
/dev/sda1 /mnt/camera vfat noauto,sync,nosuid,unhide
also make sure you have this line in that file as well:
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
Then I just typed
The only problem is I have to be root to mount it. I had it working before under a regular user, but that was before I reformatted the hard drive. I just did it quickly this time and didn't get around to looking at how I changed the permissions. Check out
This is where I got my info. Its about digital cameras, but should work for any usb mass storage device.
Hope this helps.
Try using fdisk -l /dev/sd[a-z] until you see 256 MB. It could be /dev/sdb1, but I do not know. If you do not see it you may have to edit unusual_devs.h in the kernel (make a backup of the file before editing). Then compile the kernel again. If the changes works send a patch to kernel.org so anybody that buys your device can easily use it with out any trouble. Another way is to edit usb.distmap in the hotplug directory.
Thanks.....this does seem to be a kernel issue......If I boot 2.4.23 compiled with the same .config, the usb flash drive mounts fine as /dev/sda1.
I am experiencing the exact same problem under 2.6.1. The device mounts perfectly under 2.6.0. I sent some e-mail to linux-kernel and Greg KH, amongst others, told me to recompile the usb-storage module with CONFIG_USB_STORAGE_DEBUG=y and send the output to the linux-usb-devel mailing list.
You should do the same.
will do :)
Got a response.....
Turns out sd_mod was not loaded.....ooooooooooooooops.
I loaded it and the drive works fine :)
Oh - that's not my problem then. I have a different problem.
|All times are GMT -5. The time now is 05:50 PM.|