Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lost disk
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

Joined: 07 Dec 2009
Posts: 21

PostPosted: Sat Apr 21, 2012 6:21 pm    Post subject: Lost disk Reply with quote

I have a highly intermittent problem. Occasionally (maybe weekly on average), I lose contact with part of one of my filesystems. I have a 500GB Western Digital disk, /dev/sdb1, that I mount on /home. At the root of the disk are greg and lost+found (e.g. /home/greg and /home/lost+found). /home/greg is my user home directory. When the failure occurs, any reference to /home/greg simply hangs. For example the sequence "cd ~ ; ls" or "ls /home/greg".

mount shows

/dev/sdb1 on /home type ext3 (rw,noatime,commit=0)

Under these circumstances, df also hangs. When I say hangs anywhere above, I mean that the command doesn't return anything, ctl-z will not suspend the command, and the only way to stop the command that I've found is to open a new shell and kill -9 the offending process.In the failing mode, I can successfully ls /home and get

greg lost+found

but as I mentioned, if I ls /home/greg I get the hang. I can, after terminating all processes using /home, unmount and remount /dev/sdb1, but the symptoms persist.

Rebooting the system fixes the problem. Powering down is not necessary. fsck does not reveal any problems with the file system on reboot. I realize I should capture the output from dmesg but I carelessly have failed to do so. I realize that the information here might not be sufficient to diagnose my problem, but I hope someone can tell me what to look for the next time the failure happens so I can get what people need to see in order to help out.

-- Greg
Back to top
View user's profile Send private message

Joined: 17 Apr 2004
Posts: 4761
Location: Dark side of the mood

PostPosted: Sat Apr 21, 2012 7:18 pm    Post subject: Reply with quote

I once had a similar issue with a USB disk and I think it was due to the fact the disk was put to suspend although I haven't investigated at all. Just an educated suspicion^Wguess. So the trick I found was to run udevadm trigger before doing a backup -- it was a backup disk only though.

So in your case try to run udevadm trigger and see if the disk and partition nodes reappear. You might have to mount the filesystem again.

As for the unmounted /home, it's very weird. The only way I know of to get to such a situation is to umount -l /home (a.k.a. lazy unmount). You'll have to investigate this I guess.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
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