Re: fsck root file system
In article <[🔎] 20030420101432.2a0de8cd.ronin2@bellatlantic.net>,
Kevin McKinley <ronin2@bellatlantic.net> wrote:
>On Sun, 20 Apr 2003 13:37:31 +0000 (UTC)
>miquels@cistron-office.nl (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.
Mike.
Reply to: