Date: Tue, 31 Mar 2009 08:15:54 +0200 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Cc: manish jain <invalid.pointer@gmail.com> Subject: Re: Question about forcing fsck at boottime Message-ID: <200903310815.54296.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <49D1B297.8060307@gmail.com> References: <49D1B297.8060307@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 /etc/rc.d/fsck. The rc.conf(5) manpage and related rc(8), rcorder(8) and rc.subr(8) are a good read when migrating. -- Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903310815.54296.mel.flynn%2Bfbsd.questions>