Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 01-20-2004, 06:00 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 12

Rep: Reputation: 0
usb flash drive won't mount

Hi All,

OK...let's start with system specs.

Dell inspiron laptop.
1.6 GHz Intel P4 (Mobil)
512 M Ram
Nvidia GF4 Go 440
USB 1.0
Slackware 9.1 (currnet)
Dropline Gnome
Linux 2.6.1 kernel from 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
S: SerialNumber=0000:00:1d.2
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
S: SerialNumber=00368582
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......

Old 01-20-2004, 06:41 PM   #2
LQ Newbie
Registered: Jan 2004
Location: The Mighty Miramichi River
Distribution: Red Hat 9.0
Posts: 12

Rep: Reputation: 0
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

mount /mnt/camera

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.

Matthew Doak
Old 01-21-2004, 02:12 AM   #3
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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 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.
Old 01-21-2004, 01:56 PM   #4
LQ Newbie
Registered: Jan 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.

Old 01-21-2004, 02:04 PM   #5
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 8.0 (amd64) w/kernel 3.19.0
Posts: 286

Rep: Reputation: 30
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.
Old 01-21-2004, 03:31 PM   #6
LQ Newbie
Registered: Jan 2004
Posts: 12

Original Poster
Rep: Reputation: 0
will do
Old 01-21-2004, 10:46 PM   #7
LQ Newbie
Registered: Jan 2004
Posts: 12

Original Poster
Rep: Reputation: 0

Got a response.....

Turns out sd_mod was not loaded.....ooooooooooooooops.

I loaded it and the drive works fine

Thanks All!

Old 01-22-2004, 04:02 AM   #8
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 8.0 (amd64) w/kernel 3.19.0
Posts: 286

Rep: Reputation: 30
Oh - that's not my problem then. I have a different problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount a USB flash drive? tuxuser19 Debian 5 11-09-2005 07:05 PM
USB flash drive mount problem servnov Linux - General 4 10-10-2005 09:08 PM
Can't mount USB Flash Drive on debian woody Chrysalid Linux - Hardware 1 07-31-2005 07:37 AM
USB Flash drive don't want mount hackman Linux - Hardware 4 02-12-2005 01:34 AM
Upgraded to 2.6.9, now I can't mount usb flash drive DigitalCubano Linux - Hardware 3 01-23-2005 06:23 PM

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration