Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 1999 12:14:47 +0800 (CST)
From:      Foxfair Hu <foxfair@news.ks.edu.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/11569: Automatically run fsck when the file system is not clean.
Message-ID:  <199905080414.MAA00435@news.ks.edu.tw>

next in thread | raw e-mail | index | archive | help

>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 :	<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 ==========================

>Release-Note:
>Audit-Trail:
>Unformatted:


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?199905080414.MAA00435>