From owner-freebsd-bugs Fri May 7 21:30: 7 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 1C31A14E5B for ; Fri, 7 May 1999 21:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA15914; Fri, 7 May 1999 21:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from news.ks.edu.tw (news.ks.edu.tw [163.16.1.11]) by hub.freebsd.org (Postfix) with ESMTP id 6E5A115662 for ; Fri, 7 May 1999 21:26:00 -0700 (PDT) (envelope-from foxfair@news.ks.edu.tw) Received: (from root@localhost) by news.ks.edu.tw (8.9.3/8.9.2) id MAA00435; Sat, 8 May 1999 12:14:47 +0800 (CST) (envelope-from foxfair) Message-Id: <199905080414.MAA00435@news.ks.edu.tw> Date: Sat, 8 May 1999 12:14:47 +0800 (CST) From: Foxfair Hu Reply-To: foxfair@news.ks.edu.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/11569: Automatically run fsck when the file system is not clean. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11569 >Category: misc >Synopsis: Automatically run fsck when the file system is not clean. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 7 21:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Foxfair Hu >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: Both FreeBSD 4.0-CURRENT and 3.1-STABLE. >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 #. >How-To-Repeat: Try to let your system burn with fire and reboot, you'll see it. >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 ========================== >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message