From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 17:05:52 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2139716A4CE for ; Tue, 4 Jan 2005 17:05:52 +0000 (GMT) Received: from mailtest.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6ED243D49 for ; Tue, 4 Jan 2005 17:05:51 +0000 (GMT) (envelope-from fcash-ml@sd73.bc.ca) Received: from localhost (localhost [127.0.0.1]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id 79F07F2385 for ; Tue, 4 Jan 2005 09:05:49 -0800 (PST) Received: from mailtest.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09563-01-87 for ; Tue, 4 Jan 2005 09:05:49 -0800 (PST) Received: from s9.sbo (s9.sbo [192.168.0.9]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id F0BDFF2380 for ; Tue, 4 Jan 2005 09:05:48 -0800 (PST) From: Freddie Cash Organization: School District 73 - Kamloops, BC To: freebsd-stable@freebsd.org Date: Tue, 4 Jan 2005 09:05:48 -0800 User-Agent: KMail/1.7.2 References: <41DA6E6C.8030505@yahoo.com> <20050104120204.74997852.gstewart@bonivet.net> <41DA7D20.8000704@yahoo.com> In-Reply-To: <41DA7D20.8000704@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501040905.48468.fcash-ml@sd73.bc.ca> X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca Subject: Re: fsck: broken file system with background check remains broken after bootup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 17:05:52 -0000 On January 4, 2005 03:25 am, Rob wrote: > Thanks for your replies, but apparently I didn't make my point > clearly. Let me try again: > > If the system ends with a bad filesystem, the background check may > leave the system unusable after bootup. For a FreeBSD guru this is > indeed easy to fix (single user mode, rescue floppies, live CDs > bootup etc.). > > However, the main user of this particular PC is not at all a guru; on > 4.10 I had rc.conf configured such that at bootup all filesystems > would be automatically fixed with: fsck_y_enable="YES". > With 4.10, this always worked nicely, whatever sudden power cut have > happened. > > However, with 5.3, a recent powercut crippled the /usr filesystem > such that X11 hanged. The user of this PC was convinced that FreeBSD > was infected by a virus :(. > > An automatic fsck could have fixed the system (I eventually did it > manually in single user mode), but the background check left the > system broken..... > > So I want to configure 5.3 similar to former 4.10: a full automatic > fix of all filesystems at bootup, in case the system was not properly > shutdown. How can I do that? As with FreeBSD 4.x, all rc.conf options are listed in /etc/defaults/rc.conf. Read /etc/defaults/rc.conf and put the appropriate fsck options into /etc/rc.conf. What you want to do is disable background fsck, giving you the same behaviour as with 4.x, -- Freddie Cash, CCNT CCLP Helpdesk / Network Support Tech. School District 73 (250) 377-HELP [377-4357] fcash-ml@sd73.bc.ca