View previous topic :: View next topic |
Author |
Message |
Tilgovi n00b
Joined: 23 Mar 2005 Posts: 11
|
Posted: Mon Nov 21, 2005 12:31 am Post subject: USB Stick Umount Problems |
|
|
I have a 128meg SimpleTech USB stick that I'm trying to use.
Gentoo 2.6.13-r5 x86_64.
I have a mount point set up and everything works fine.
All drivers compiled in.
My problem is that if I mount the drive, then unmount and eject it (with sudo eject /mnt/usbstick), the next time I reinsert the USB stick it refuses to mount. Udev does not recognize the partitions and does not make the device nodes.
Running fdisk on the device and writing the partition table without changing anything seems to fix the problem and there is no data loss. I've been using it for some time like this.
Even after unmounting it in Gentoo, Windows XP on my friend's computer seems to have no problem mounting it whereas I have to run fdisk to mount it again (even if it's been inserted and removed from my friend's XP box).
This is kind of annoying. I really don't want to have to run fdisk and wait for it to rewrite the partition table (which fdisk can clearly read while udev cannot) every time I want to use the device.
Any help would be appreciated,
Randall |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Nov 21, 2005 1:34 am Post subject: |
|
|
How did you get the idea of ejecting it? 'umount' is just enough. |
|
Back to top |
|
|
Tilgovi n00b
Joined: 23 Mar 2005 Posts: 11
|
Posted: Mon Nov 21, 2005 4:52 pm Post subject: |
|
|
Regardless. I just tried umount and then removing it.
Same issue.
Upon reinserting it, dmesg -tail shows
Code: |
Buffer I/O error on device sdb, logical block 0
Buffer I/O error on device sdb, logical block 0
unable to read partition table
Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
usb-storage: device scan complete
|
And I again have to run fdisk and simply write the partition table (which fsdisk reads correctly) before I can mount the drive again.
Thanks in advance,
-Randall |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Nov 21, 2005 5:10 pm Post subject: |
|
|
This is weird indeed. How did you umount it? Perhaps there was some active read/write process when you unplugged it? Why is it giving I/O errors if device was cleanly unmounted... |
|
Back to top |
|
|
Tilgovi n00b
Joined: 23 Mar 2005 Posts: 11
|
Posted: Tue Nov 22, 2005 6:38 pm Post subject: |
|
|
It could just be a faulty stick.
I unmount it with umount /mnt/usbstick, nothing more.
This happens even if I mount it and then unmount without ever accessing its contents.
I'll borrow someone else and let you know how that goes.
-Randall |
|
Back to top |
|
|
|