Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Stick Umount Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tilgovi
n00b
n00b


Joined: 23 Mar 2005
Posts: 11

PostPosted: Mon Nov 21, 2005 12:31 am    Post subject: USB Stick Umount Problems Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Nov 21, 2005 1:34 am    Post subject: Reply with quote

How did you get the idea of ejecting it? 'umount' is just enough.
Back to top
View user's profile Send private message
Tilgovi
n00b
n00b


Joined: 23 Mar 2005
Posts: 11

PostPosted: Mon Nov 21, 2005 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Nov 21, 2005 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tilgovi
n00b
n00b


Joined: 23 Mar 2005
Posts: 11

PostPosted: Tue Nov 22, 2005 6:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum