Question about forcing fsck at boottime
mel.flynn+fbsd.questions at mailing.thruhere.net
Mon Mar 30 23:15:58 PDT 2009
On Tuesday 31 March 2009 08:05:11 manish jain wrote:
> I am migrating from Linux and am still learning the basics of FreeBSD.
> One thing that I would to carry over from my Linux days is to force an
> fsck on all filesystems at system startup. On Linux, this was simply a
> matter of editing /etc/rc.sysinit. Things seem a bit more complicated in
> the BSD world. Can somebody please point me in the right direction ?
fsck -p is done by default (meaning, filesystems are not fully scanned if they
are marked clean). If pruning fails, background_fsck is checked, which will
work on UFS systems with soft updates, but is not recommended by many as it
may leave some errors unchecked.
If background_fsck is set to NO, things will stop and operator intervention is
required, unless one has set fsck_y_enable. All this logic is implemented in
The rc.conf(5) manpage and related rc(8), rcorder(8) and rc.subr(8) are a good
read when migrating.
More information about the freebsd-questions