I just rebooted my computer, and it decided that some of my filesystems needed to have fsck run on them. (It had been more than 20 reboots since they were last checked.) And fsck decided to hang 4.6% through the initial check on one of them. Rebooting didn’t help: after every reboot, it noticed that it hadn’t checked the filesystem recently, checked it again, and hanged at the same place. (To be fair, I don’t know if it’s an fsck problem, a kernel problem, or what.)
No idea what went wrong, or how to fix it; I’ve e-mailed the author, and perhaps he can give me some suggestions. (It’s reproducible, and I’ll be happy to go through a few rounds to try to debug the issue.) Fortunately (I suppose?), the filesystem in question is where my backups live, and it doesn’t even include (either of) the backups of my home directory, so I can live with potential corruption indefinitely if necessary. Still, it doesn’t make me happy.
If anybody else finds themselves in this situation, a workaround is:
- Make sure your computer has a root password, and you know it! (Not always the case in this
sudo
world.) - Type Ctrl-Alt-Delete when you notice the hang, and log in with the aforementioned root password.
- Edit the line in
/etc/fstab
for the corresponding filesystem and set the sixth column (fs_passno
) to zero - Reboot.
If you don’t know the root password, hopefully you have some sort of recovery DVD that you can boot from to get to where you can edit the fstab.
Post Revisions:
There are no revisions for this post.
I am wondering about your filesystem type! I am assuming that you run a journaling one (probably ext3 or resiserfs?). I am using reiserfs. I have never come across this issue and my filesystem is rolling for around 2 years now.
QUOTE BEGINS
Make sure your computer has a root password, and you know it! (Not always the case in this sudo world.)
QUOTE ENDS
Even if you don’t have the root password, you can fix things by dropping directly into bash(using ‘init=/bin/bash’ to the kernel command line). Alternatively, one can use a live/rescue CD.
6/10/2007 @ 10:00 am
I’m using ext3 on top of lvm. Thanks for the kernel command line tip!
6/10/2007 @ 2:43 pm
[…] I reported my problem to the author of fsck yesterday; today, I had an e-mail waiting for me, saying he thought it was a bug he’d fixed recently, and asking me to try a new version. I did, and at first it seemed to get stuck in the same place; while I was poking around and composing a response, though, I noticed that it had made it further, and the scan did eventually complete. (Reporting no problems.) So either the new version fixed the problem, or I wasn’t patient enough the first time. […]
6/10/2007 @ 3:19 pm