From owner-freebsd-bugs Sat May 8 0: 0: 6 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 26F7514DDA for ; Sat, 8 May 1999 00:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA33467; Sat, 8 May 1999 00:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 8 May 1999 00:00:03 -0700 (PDT) Message-Id: <199905080700.AAA33467@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: misc/11569: Automatically run fsck when the file system is not clean. Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/11569; it has been noted by GNATS. From: Bruce Evans To: foxfair@news.ks.edu.tw, FreeBSD-gnats-submit@FreeBSD.ORG Cc: Subject: Re: misc/11569: Automatically run fsck when the file system is not clean. Date: Sat, 8 May 1999 16:56:43 +1000 >>Description: >When the system crashed, and reboot immediately, the file system often >states in "not-clean". This patch can run `fsck -y` automatically w/o >get into single user mode or type command under comman prompt #. This is intentional. fsck -p fixes everything that is safe to fix automatically, then exits with a special status (2) to tell /etc/rc that the boot should fail. >>Fix: >Apply this patch to /usr/src/etc/rc. >Obtained from : Taiwan FreeBSD newsgroup. >Submitted by : >================== Cut Here ============================ >--- rc.org Sat May 8 11:58:40 1999 >+++ rc Sat May 8 12:00:11 1999 >@@ -60,7 +60,7 @@ > 0) > ;; > 2) >- exit 1 >+ fsck -y; exit 0 > ;; > 4) > reboot >================== Patch End ========================== If you want to force a check, at least don't ignore errors from fsck -y. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message