From owner-freebsd-questions@FreeBSD.ORG Wed Jun 15 19:57:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A0AF106564A for ; Wed, 15 Jun 2011 19:57:57 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id E36C58FC12 for ; Wed, 15 Jun 2011 19:57:56 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p5FJvsgm038064; Wed, 15 Jun 2011 15:57:54 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DF90ED6.5090302@sentex.net> Date: Wed, 15 Jun 2011 15:58:14 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Gary Kline References: <20110615195027.GA1196@thought.org> In-Reply-To: <20110615195027.GA1196@thought.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on IPv6:2607:f3e0:0:1::12 Cc: FreeBSD Mailing List Subject: Re: how do i fsck my server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 19:57:57 -0000 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@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/