Re: fsck root file system
In article <firstname.lastname@example.org>,
Kevin McKinley <email@example.com> wrote:
>On Sun, 20 Apr 2003 13:37:31 +0000 (UTC)
>firstname.lastname@example.org (Miquel van Smoorenburg) wrote:
>> Alternatively, you can do it by hand by booting into single user
>> mode and then executing an 'umount -a'. This will unmount all
>> filesystems and remount the root filesystem read-only. You can
>> then check the root filesystem with "fsck -f /". It's probably
>> a good idea to reboot after that; use "reboot -f".
>umount -a will not remount / read-only; I just tried it to verify. It will
>just give you a message that / is busy (so it cannot be unmounted).
That's just umount trying to remount / read-only, and telling
you it didn't succeed because there were still files open
in write mode on /. Use 'fuser -vm /' to find out which one(s).
Really. Read the mount source code if you don't believe me.
It's in umount.c around line 250.