From owner-freebsd-questions@FreeBSD.ORG Tue Aug 12 21:34:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB7B537B401 for ; Tue, 12 Aug 2003 21:34:54 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id E5C3B43FA3 for ; Tue, 12 Aug 2003 21:34:53 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 582 invoked by uid 1000); 13 Aug 2003 04:36:21 -0000 Date: Tue, 12 Aug 2003 21:36:21 -0700 From: Joshua Oreman To: Andy Farkas Message-ID: <20030813043621.GA560@webserver> References: <44llu6wwi2.fsf@be-well.ilk.org> <20030813114826.M90272-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030813114826.M90272-100000@hewey.af.speednet.com.au> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: fsck -F X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 04:34:55 -0000 On Wed, Aug 13, 2003 at 11:53:34AM +1000 or thereabouts, Andy Farkas wrote: > On 6 Aug 2003, Lowell Gilbert wrote: > > > David Bear writes: > > > > > on linux there is a -F option to force a fsck on reboot. I couldn't > > > see the equivalent in freebsd. > > > > That's what /etc/rc.early is for. > > [man rc.early] > > Uhm, man fsck. > > fsck already runs at boot. Yes. But they won't run if the filesystem is marked ``clean''. Actually, what shutdown -F does is touch /forcefsck. (In a similar vein, shutdown -f touches /fastboot). The rc scripts check this and add appropriate flags to the invocation of fsck (or in the case of /fastboot don't invoke it). /fastboot would not work on FBSD as the fsck protection is enforced (in linux there's a warning but no error). But /forcefsck could still be implemented with suitable patches to your rc scripts and (optionally) shutdown. -- Josh > > -- > > :{ andyf@speednet.com.au > > Andy Farkas > System Administrator > Speednet Communications > http://www.speednet.com.au/ > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"