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,
This may seem overly simple, but are you using any other usb devices when this happens or just prior to it happening?
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.
what is the output of the 'lsmod' command because you may need to 'modprobe usb-storage'
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
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.
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.
|All times are GMT -5. The time now is 12:51 PM.|