Date: Sat, 8 May 1999 00:00:03 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/11569: Automatically run fsck when the file system is not clean. Message-ID: <199905080700.AAA33467@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/11569; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> 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 : <unixer.bbs@bbs.ee.ncku.edu.tw> >================== 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905080700.AAA33467>