On Tuesday 31 March 2009 14:24:11 RW wrote: > On Tue, 31 Mar 2009 08:15:54 +0200 > > Mel Flynn <mel.flynn+fbsd.questi...@mailing.thruhere.net> wrote: > > 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. > > I don't think that's quite right, fsck -p is only done if > background_fsck=NO, otherwise an fsck -pF is done instead. The > latter does an fsck -p on filesystems that aren't eligible for > background checking - usually root and any none UFS filesystems.
As far as I can tell, -F -p skips clean disks (-p) and defers to background when possible, though the manpage doesn't exclude your or my theory. ENOTIME to check the source. -- Mel _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"