fsck -F
Joshua Oreman
oremanj at get-linux.org
Tue Aug 12 21:34:55 PDT 2003
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 at 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 at speednet.com.au
>
> Andy Farkas
> System Administrator
> Speednet Communications
> http://www.speednet.com.au/
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list