how do i fsck my server?

Mike Tancsa mike at sentex.net
Wed Jun 15 19:57:57 UTC 2011


On 6/15/2011 3:50 PM, Gary Kline wrote:
> 
> is there any way of scripting fsck *every* time i reboot this box?  i just
> want to make abs certain that the filesystems are clean.  ---didn't fscking
> used to be easier?

Just override the defaults in /etc/rc.conf

fsck_y_enable="YES"

and if you are paranoid,

background_fsck="NO"



0(cage)# grep -i fsck /etc/defaults/rc.conf
fsck_y_enable="NO"      # Set to YES to do fsck -y if the initial preen
fails.
fsck_y_flags=""         # Additional flags for fsck -y
background_fsck="YES"   # Attempt to run fsck in the background where
possible.
background_fsck_delay="60" # Time to wait (seconds) before starting the
fsck.
0(cage)#

	---Mike

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-questions mailing list