FSCKing a RO partition

Rick C. Petty rick-freebsd at kiwi-computer.com
Mon Nov 6 21:23:10 UTC 2006


On Mon, Nov 06, 2006 at 12:49:46PM +0100, Oliver Fromme wrote:
>  > 
>  > I also tried with the mount command and -u -r options with the same
>  > result.
> 
> A quick workaround would be to run "fsck -p" yourself on
> the root partition before you remount it read-write.

Of course, if you mount root read/write in the process of booting
single-user to edit /etc/fstab, for instance, and you decide you want to
preen a la "fsck -p", you can't.  Even if you use "mount -u -r /", the
preen fails on the root partition and you can't quickly check the other
file systems.  This is a bug and a regression since it used to work in
4.x just fine!

Sometimes I'm often tempted to reboot and wait 10 minutes for the BIOS
to POST just because of the effort/time to manually run fsck on each
partition.  If you remember to always do "fsck -p" immediately from the
single-user prompt, you're fine.  You just have to wait until fsck
finishes with root before you mount it read-write.  How annoying!

-- Rick C. Petty


More information about the freebsd-geom mailing list