Date: Wed, 13 Aug 2003 11:20:12 -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: <20030813182012.GA3027@webserver> In-Reply-To: <20030813144131.C90272-100000@hewey.af.speednet.com.au> References: <20030813043621.GA560@webserver> <20030813144131.C90272-100000@hewey.af.speednet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > > -- > > :{ andyf@speednet.com.au > > Andy Farkas > System Administrator > Speednet Communications > http://www.speednet.com.au/ > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030813182012.GA3027>