From owner-freebsd-fs@FreeBSD.ORG Wed Feb 28 13:21:33 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 079D216A402 for ; Wed, 28 Feb 2007 13:21:33 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id D096713C442 for ; Wed, 28 Feb 2007 13:21:32 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l1SDLWaM088726; Wed, 28 Feb 2007 07:21:32 -0600 (CST) (envelope-from anderson@freebsd.org) Message-ID: <45E581DF.4070706@freebsd.org> Date: Wed, 28 Feb 2007 07:21:35 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: "R. B. Riddick" References: <822542.17658.qm@web30312.mail.mud.yahoo.com> In-Reply-To: <822542.17658.qm@web30312.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2679/Wed Feb 28 05:58:10 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-fs@freebsd.org, Jason Arnaute Subject: Re: Looking for a graceful way to disable BG fsck ? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 13:21:33 -0000 On 02/28/07 07:08, R. B. Riddick wrote: > --- Jason Arnaute 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