From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 11:25:23 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 178F316A4CE for ; Tue, 4 Jan 2005 11:25:23 +0000 (GMT) Received: from lp1001.snu.ac.kr (lp1001.snu.ac.kr [147.46.70.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7724C43D53 for ; Tue, 4 Jan 2005 11:25:22 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [IPv6:::1] (localhost [127.0.0.1]) (authenticated (0 bits)) by lp1001.snu.ac.kr (8.13.1/8.11.6) with ESMTP id j04BN4pY003026 for ; Tue, 4 Jan 2005 20:23:04 +0900 Message-ID: <41DA7D20.8000704@yahoo.com> Date: Tue, 04 Jan 2005 20:25:20 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20041226 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <41DA6E6C.8030505@yahoo.com> <20050104102627.GA5972@lb.tenfour> <20050104120204.74997852.gstewart@bonivet.net> In-Reply-To: <20050104120204.74997852.gstewart@bonivet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 11:25:23 -0000 Godwin Stewart wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 4 Jan 2005 10:26:27 +0000, Dick Davies > wrote: > > >>That won't happen, since /usr isn't mounted in single user mode. > > > Even if it were, there are always "Live BSD" CDROMs which should allow you > to boot and then fsck your disk partitions. 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? Thanks, Rob.