Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2007 07:21:35 -0600
From:      Eric Anderson <anderson@freebsd.org>
To:        "R. B. Riddick" <arne_woerner@yahoo.com>
Cc:        freebsd-fs@freebsd.org, Jason Arnaute <non_secure@yahoo.com>
Subject:   Re: Looking for a graceful way to disable BG fsck ?
Message-ID:  <45E581DF.4070706@freebsd.org>
In-Reply-To: <822542.17658.qm@web30312.mail.mud.yahoo.com>
References:  <822542.17658.qm@web30312.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/28/07 07:08, R. B. Riddick wrote:
> --- Jason Arnaute <non_secure@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E581DF.4070706>