Latest LQ Deal: Latest LQ Deals
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 09-12-2004, 11:54 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 9

Rep: Reputation: 0
Cannot mount device: USB keydrive.

Here is the error:

Cannot mount device

Drivemount command failed.
"mount /mnt/usbkey 2>&1" reported:
mount: /dev/sda1 is not a valid block device

The problem is re-creatable on my computer. I am running FC2 and for the most part it is quite stable. The etc/fstab entry I have is:

/dev/sda1 /mnt/usbkey auto noauto,owner,rw 0

I have the directory /mnt/usbkey directory created.

The key drive will mount successfully for a while, could be a few days, and then one time I go to mount the drive, and the error arises.

Solution: If I reboot the computer, the problem goes away, for a while. I have searched for a satisfactory answer for a while and have not found one.

Question: Is there a way I can reinitialize the /mount command without having to reboot? I have tried /etc/init.d/autofs restart but that does not help either.

Thanks in advance,
Old 09-12-2004, 02:02 PM   #2
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
This may seem overly simple, but are you using any other usb devices when this happens or just prior to it happening?
Old 09-12-2004, 08:17 PM   #3
LQ Newbie
Registered: Jan 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Sometimes, yes. If I try to mount another USB device, such as a maxtor external HDD, and then mount the USB key, the problem may occur, but it is infrequently. It never happens mounting the floppy or CD/CDRW drives. I have separate entries in my fstab file for each filesystem I want to mount.

Old 09-13-2004, 05:39 AM   #4
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
what is the output of the 'lsmod' command because you may need to 'modprobe usb-storage'
Old 09-13-2004, 09:15 PM   #5
LQ Newbie
Registered: Jan 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Here is my lsmod output. I would be lying if I told you I know what all of this means.

Module Size Used by
snd_pcm_oss 40740 0
nls_utf8 1536 0
nls_cp437 5376 0
vfat 10496 0
fat 33472 1 vfat
usb_storage 55392 0
snd_mixer_oss 13824 2 snd_pcm_oss
snd_via82xx 19104 1
snd_pcm 68872 2 snd_pcm_oss,snd_via82xx
snd_timer 17156 1 snd_pcm
snd_ac97_codec 50436 1 snd_via82xx
snd_page_alloc 7940 2 snd_via82xx,snd_pcm
gameport 3328 1 snd_via82xx
snd_mpu401_uart 4864 1 snd_via82xx
snd_rawmidi 17184 1 snd_mpu401_uart
snd_seq_device 6152 1 snd_rawmidi
snd 38372 9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_pcm,sn
soundcore 6112 2 snd
autofs4 10624 1
sunrpc 101064 1
ipt_REJECT 4736 1
ipt_state 1536 6
ip_conntrack 24968 1 ipt_state
iptable_filter 2048 1
ip_tables 13440 3 ipt_REJECT,ipt_state,iptable_filter
via_rhine 15624 0
mii 3584 1 via_rhine
floppy 47440 0
sg 27552 0
microcode 4768 0
dm_mod 33184 0
joydev 6976 0
uhci_hcd 23708 0
ehci_hcd 21896 0
button 4504 0
battery 6924 0
asus_acpi 8472 0
ac 3340 0
ext3 102376 2
jbd 40216 1 ext3
sata_via 4484 0
libata 29312 1 sata_via,[permanent]
sd_mod 16384 0
scsi_mod 91344 4 usb_storage,sg,libata,sd_mod
Old 09-13-2004, 09:38 PM   #6
Registered: Aug 2002
Posts: 19,926

Rep: Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304Reputation: 3304
Looks like all of the USB modules are being loaded. In assigning IDs to storage devices the OS will uses /dev/sda to the first device recognized. The next will be /dev/sdb and so on. There are some exceptions like my PC but we will get to that. ...

Floppies and CDROM devices are different because there ID never changes so you shouldn't have problems i.e unless of course there USB.

If you plug in the USB device and then look at the output of the console command dmesg you will see the OS assigning a device ID. So your keydrive might not be sda all of the time. With my PC if I plug my keydrive in to the USB 2.0 it will assign it /dev/sdb if though it is the only USB or SCSI like device connected.

Futhermore, USB drives use SCSI emulation so if you have any real SCSI devices they will also be assigned /dev/sdx IDs.
Old 09-13-2004, 09:54 PM   #7
LQ Newbie
Registered: Jan 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Is there a way to 'warm restart' the filesystem? What I mean is, is there a way I can restart the mounting of this filesystem(s) just as though I were restarting the computer. If I reboot, the problem disappears for a time, maybe a few days. I am trying to run my computer 24/7 with linux just because I can. Plus, I shouldn't have to reboot for such a minor aggravation as this one.


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
Cannot get USB keydrive workin on Ubuntu fadrian Linux - Hardware 9 10-03-2005 10:27 PM
Mounting a USB keydrive. carlosinfl Fedora 11 07-25-2004 04:21 PM
USB Keydrive Question Terje Linux - Hardware 4 07-16-2004 10:16 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM
Keydrive crashes USB bus ragingtarrasque Linux - Hardware 1 10-18-2003 07:02 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:54 AM.

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