From owner-freebsd-bugs Sun Nov 12 14:03:25 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA05824 for bugs-outgoing; Sun, 12 Nov 1995 14:03:25 -0800 Received: from haywire.DIALix.COM (haywire.DIALix.COM [192.203.228.65]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA05791 for ; Sun, 12 Nov 1995 14:02:57 -0800 Received: (from news@localhost) by haywire.DIALix.COM (sendmail) id GAA22752 for freebsd-bugs@freebsd.org; Mon, 13 Nov 1995 06:01:56 +0800 (WST) Received: from GATEWAY by haywire.DIALix.COM with netnews for freebsd-bugs@freebsd.org (problems to: usenet@haywire.dialix.com) To: freebsd-bugs@freebsd.org Date: 13 Nov 1995 06:01:36 +0800 From: peter@haywire.dialix.com (Peter Wemm) Message-ID: <485qs0$lsk$1@haywire.DIALix.COM> Organization: DIALix Services, Perth, Australia. References: <199511111318.FAA16818@freefall.freebsd.org>, <199511120143.DAA19761@katiska.clinet.fi> Subject: Re: bin/816 Sender: owner-bugs@freebsd.org Precedence: bulk hsu@clinet.fi (Heikki Suonsivu) writes: >David Greenman writes: > > Synopsis: fsck -y ignores clean flag > > > > State-Changed-From-To: open-closed > > State-Changed-By: davidg > > State-Changed-When: Sat Nov 11 05:17:30 PST 1995 > > State-Changed-Why: > > It's intentional that the clean bit is only consulted when "preening". The > > proper solution to this is to simply specify -p -y. >With -p most of things which need the -y flag are considered fatal and fsck >will exit. Thus this is not a solution, it still would require me drive >down there to run the fsck manually. >What I'm searching for: >- run check for the news file system only if it is not clean, and all >problems fixable by fsck will be fixed >- all other file systems are fsck'd normally (with -p, without -y). >This would allow me to reboot the system without forced fsck on news file >system (15+ minutes), and will allow the system to reboot automatically in >case of panic. Hmm. Perhaps: stick a "rw,async,noauto" in your fstab file for the news filesystem, then do something like this in /etc/rc: mount -a -t nonfs if [ $? != 0 ]; then ... existing code ... fi # Retry mounting /news if necessary. mount /news if [ $? != 0 ]; then fsck -y /dev/rwherever mount /news fi That way, it'll 'fsck -y' if the mount failed, and if it fails after that, it'll continue booting (so you can telnet to the machine to then fsdb it.. :-). INN will safely not start up if the spool is not there. -Peter >-- >Heikki Suonsivu, T{ysikuu 10 C 83/02210 Espoo/FINLAND, >hsu@clinet.fi work +358-0-4375209 fax -4555276 home -8031121