From owner-freebsd-questions@FreeBSD.ORG Tue Mar 31 12:24:18 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 EC0BE1065679 for ; Tue, 31 Mar 2009 12:24:18 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 7384D8FC1B for ; Tue, 31 Mar 2009 12:24:18 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by fg-out-1718.google.com with SMTP id 13so1573fge.12 for ; Tue, 31 Mar 2009 05:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=tSCRCOqsDpmAh6AG9SXIrkKa8h6oYvL754PfCB5Ml94=; b=j+X+2sbdkEuJu4QCbMGCTUXsUJb/ct3YuSb/G+KaWyeS31feTYkhWzv+ry9lHOAZtu KrLZXbDr7QxswVSc+FIglg/ybJV9YtmHAGMEpBvZ6NpOqNKdnsUndJcdzjjPxOrUZksY 1wne+6e732TEhAg+lcYI5Q/18W/wecMPQQHyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=RQPuoviSA+6dU2GypIoYZ2j1QV+88csorkc5rWe7Wg67HslblnAEG2A0VFmO1UhEM3 iMSpwVeq5XNmxfv6kruWtHkj4dmyqVQkMc1r/EoLqBB5lKPZ6rD2vp5QbrW1v2/6BeKo VmKAZTkMYmWPjTJnXFFZTYdhZQlM7sb9U2Y/M= Received: by 10.86.68.1 with SMTP id q1mr2702397fga.62.1238502257312; Tue, 31 Mar 2009 05:24:17 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id l12sm2399fgb.1.2009.03.31.05.24.14 (version=SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 05:24:15 -0700 (PDT) Date: Tue, 31 Mar 2009 13:24:11 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090331132411.3b1edf97@gumby.homeunix.com> In-Reply-To: <200903310815.54296.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <49D1B297.8060307@gmail.com> <200903310815.54296.mel.flynn+fbsd.questions@mailing.thruhere.net> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 12:24:19 -0000 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. In other words you need to set background_fsck=NO to get a preen on all filesystems.