On Wed, Aug 13, 2003 at 02:51:00PM +1000 or thereabouts, Andy Farkas wrote:
> Joshua Oreman wrote:
> 
> > > fsck already runs at boot.
> >
> > Yes. But they won't run if the filesystem is marked ``clean''.
> 
> Why would you want to fsck a clean disk?  During every boot???
> 
> > 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).
> 
> You must be talking about another OS. FreeBSD's shutdown doesnt have -F or -f flag.

I was giving the example in Linux that the OP asked about, so they could implement
it under FBSD if they wanted. I said that in my mail, in the part you trimmed.

One would check for the existence of /forcefsck in the rc scripts and, if it was there,
run fsck *for that one boot* even if the filesystems were clean. Then /forcefsck would
be removed so it didn't happen on the next boot.

Shutdown *could* be patched to add an option for this if it was implemented in the rc
scripts.

Why one would want to do this, I don't know. But this was what the OP asked.

-- Josh

> 
> --
> 
>  :{ [EMAIL PROTECTED]
> 
>         Andy Farkas
>     System Administrator
>    Speednet Communications
>  http://www.speednet.com.au/
> 
> 
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to