help! unable to mount usb-drive when replugged!
hi all!
Here's my problem. If i plug my usb-drive at the first time, it worked normally. I can mount it & then do anything normally too. Then I unmounted & unplugged it. But, when i plug it in the second time (and next time), I can't mount it again!! I tried to see a few lines in my 'dmesg'. It said: Code:
usb 4-2: new high speed USB device using ehci_hcd and address 6 Should i restart my hotplug to use my usb-drive? I didn't find the same problem in mandrake, redhat, & ubuntu linux. FYI, I'm using Debian w/ kernel: 2.6.12-3-686. Any suggestions? thanks before! |
My redhat 8 did this too.... well almost...
Mu solution was to manually mount it when I want to use it, and the unmount it when i'm done. mount /dev/sda1 /mnt/flash then when i'm done umount /mnt/flash sometimes it wouldn't umount so i had to force it with -l umount -l /mnt/flash |
Of course, I can do that too.
But I can't mount my usb-drive after unmounting & unpluging it! Thanks for your reply. Any sugestions please!? |
You could try if replugging works with "uhci" (usb 1.1) driver instead of "ehci" (usb 2.0). Try adding
ehci to /etc/hotplug/blacklist Then reboot (or unload modules "ehci") and see what happens. Note that this WILL slow down your usb-drive's transfer speeds. If your drive is a flashdrive as opposed to harddrive then switch to "uhci" could be worth the effort. |
Thanks basileus!It works!
But you're right. I only use usb1.1 driver. :( regards ag2uki |
usb device mount
mount -t msdos /dev/sda /media/usb0 |
i'm having similar problems:
#mount /dev/sda /media/usb0 (wait about two minutes) mount: /dev/sda is not a valid block device same with /dev/sda1, /dev/sda2, and so on |
can't mount usb key
I am using Debian Sarge kernel 2.4.27-2-386 and I can't figure out how to mount
my usb key (fat32). I've tried mount -t vfat /dev/sda1 flash The key light flashes for a couple of seconds and then shuts off. then I get the message bad fs , bad superblock Still fairly new to Linux. Please help, Thanks xenophales :Pengy: |
xenophales - I got mine to work last night with
mount -t vfat /dev/sdb1 /mnt/external. you might also want to try mount -t msdos /dev/sda /mnt/usb0 mount -t auto /dev/sda /mnt/usb0 |
usb key works!
Thanks!!!
mount -t auto /dev/sda flash // works great! flash is the directory that I created to mount the device, just in case there is any confusion Thanks again. |
mount as user not root?
Thanks to both q's and the a's! I got my usb memory stick working because of this thread.
However I have one small related problem. I can mount and umount via the terminal with both root and user. I can mount via the user gui (gnome2.x) My problem is the user can't umount the device. "device is busy" is there a way to change the (right click>unmount) command to use the umount -l command? My users seem to melt down at a command line. Thanks |
Dell USB Drive
I am fairly new to this as well. I am able to mount my usb drive with the following command
sudo mount -t usbfs /dev/sdc1 /mnt/usb0 But when I cd to it, all i get are some directories called 001, 002, 003, 004, and a file called deviecs. And inside each directory there is a file called 001. I have tried other filesystems: vfat, msdos and I alwas get the same error: mount: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so So did the dmesg | tail, and I can see the system has found the usb drive, but mounting as a vfat has problems. here is what the syslog says: usb 1-5: new high speed USB device using ehci_hcd and address 6 scsi5 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning Vendor: M-SysT5 Model: Dell Memory Key Rev: 5.04 Type: Direct-Access ANSI SCSI revision: 00 SCSI device sdc: 1026303 512-byte hdwr sectors (525 MB) sdc: Write Protect is off sdc: Mode Sense: 45 00 00 08 sdc: assuming drive cache: write through SCSI device sdc: 1026303 512-byte hdwr sectors (525 MB) sdc: Write Protect is off sdc: Mode Sense: 45 00 00 08 sdc: assuming drive cache: write through /dev/scsi/host5/bus0/target0/lun0: [CUMANA/ADFS] p1<5>Attached scsi removable disk sdc at scsi5, channel 0, id 0, lun 0 usb-storage: device scan complete FAT: invalid media value (0xb9) VFS: Can't find a valid FAT filesystem on dev sdc1. There may be some clue in here for me. If someone else has an idea please let me know! Thanks! |
hey yo!!!
well I do have a slightly different problem, that is I connect my ipod video to the pc running sarge in kernel 2.6, and everything is perfect, but I can not eject it via konqueror in fact I can do it only in root fron konsole. The second problem is when I connect the usb sandisk memory stick, it only functions for root, user can not access it, it says I do not have enough permissions, any clue? And the same way is for me only shot and I have to restart hotplug... Is there any way to have both devices connected, cause if I invert the order of connection, lets say first the memory then the ipod, the ipod is not recognized :( In the fstab for the ipod I have sda and for the memory sdb. # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 none /proc/bus/usb usbdevfs noauto,user 0 0 /dev/hda2 / ext3 defaults,errors=remount-ro 0 1 /dev/hda9 /home ext3 defaults 0 2 /dev/hda8 /tmp ext3 defaults 0 2 /dev/hda5 /usr ext3 defaults 0 2 /dev/hda6 /var ext3 defaults 0 2 /dev/hda7 none swap sw 0 0 /dev/hdc /media/dvd0 iso9660 ro,user,noauto 0 0 /dev/hdd /media/dvd1 iso9660 ro,user,noauto 0 0 /dev/fd0 /media/floppy auto rw,user,noauto 0 0 /dev/sda2 /media/ipod vfat rw,user,noauto 0 5 /dev/sdb1 /media/usbstick vfat user,noauto 0 0 any suggestion? |
I wonder how does one can be sure or know that plugged usb drive is on sda1 ? if I put sda1 in fstab and system will attach it to sde1 (that's what was happening in KDE under FC3), I will not get the disk.
Thank you. |
chussung, sometimes my flashdisk does the same thing. I understand that the device just needs some time to stop working. For example, if a file transfer (to or from the flashdisk) seems to be over, it's doesn't necessarily mean that the device is free. Just give it a minute. And, of course, if you still see that you still cannot unmount it after a while, try performing a lazy unmount by umount -l.
I'm also having problems with my flashdisk. I have created an entry in the fstab file and I mount and unmount by console. However, at some point it just stopped working! My flashdisk is now "Not a valid block device". I found a lot about it by STFWing but nothing seems to work :-) |
All times are GMT -5. The time now is 02:48 AM. |