Looking for a graceful way to disable BG fsck ?

Eric Anderson anderson at freebsd.org
Wed Feb 28 13:21:33 UTC 2007


On 02/28/07 07:08, R. B. Riddick wrote:
> --- Jason Arnaute <non_secure at yahoo.com> wrote:
>> Is there any nice, elegant way to tell my system:
>>
>> "If everything is clean, then mount it all up and go. 
>> But if a non-root filesystem is not clean, just skip
>> it altogether and boot up into multiuser mode and I
>> will log in and fsck it manually.  But under no
>> circumstances will you BG fsck anything."
>>
>> Any way to do that ?
>>
> You could change
>   /etc/rc.d/fsck
> so that it will only fsck the root file system.
> 
> Then you proceed with reboot...
> 
> Then you look, if ur other file systems are mounted read-only and if yes, your
> box knows, that something was wrong with them...?
> 
> 
> WARNING: That idea needs testing...
> 
> Furthermore your applications might complain, when they find their files on a
> read-only file system...

How about setting something like this:
background_fsck_delay="864000"

in /etc/rc.conf?  That would make bg fsck wait 10 days before running. 
That will still mount the disks rw though, which is probably not what 
you really want.

Eric



More information about the freebsd-fs mailing list