Date: Tue, 12 Aug 2003 21:36:21 -0700 From: Joshua Oreman <oremanj@get-linux.org> To: Andy Farkas <andyf@speednet.com.au> Cc: questions@freebsd.org Subject: Re: fsck -F Message-ID: <20030813043621.GA560@webserver> In-Reply-To: <20030813114826.M90272-100000@hewey.af.speednet.com.au> References: <44llu6wwi2.fsf@be-well.ilk.org> <20030813114826.M90272-100000@hewey.af.speednet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 13, 2003 at 11:53:34AM +1000 or thereabouts, Andy Farkas wrote:
> On 6 Aug 2003, Lowell Gilbert wrote:
>
> > David Bear <David.Bear@asu.edu> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030813043621.GA560>
