From owner-freebsd-questions@FreeBSD.ORG Tue Mar 31 15:36:36 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F66D1065675 for ; Tue, 31 Mar 2009 15:36:36 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 3B0998FC0C for ; Tue, 31 Mar 2009 15:36:35 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (gate.lan.rachie.is-a-geek.net [192.168.2.10]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id C82727E818; Tue, 31 Mar 2009 07:36:34 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Tue, 31 Mar 2009 17:36:32 +0200 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) References: <49D1B297.8060307@gmail.com> <200903310815.54296.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090331132411.3b1edf97@gumby.homeunix.com> In-Reply-To: <20090331132411.3b1edf97@gumby.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903311736.32909.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: RW Subject: Re: Question about forcing fsck at boottime X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2009 15:36:36 -0000 On Tuesday 31 March 2009 14:24:11 RW wrote: > On Tue, 31 Mar 2009 08:15:54 +0200 > > Mel Flynn 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