From owner-freebsd-questions Sun May 21 9:31:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id AD2B237B945 for ; Sun, 21 May 2000 09:31:15 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id MAA96919; Sun, 21 May 2000 12:29:01 -0400 (EDT) (envelope-from cjc) Date: Sun, 21 May 2000 12:29:00 -0400 From: "Crist J. Clark" To: "Ilia E. Chipitsine" Cc: questions@FreeBSD.ORG Subject: Re: fsck ? Message-ID: <20000521122900.E96573@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <20000521115902.C96573@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from ilia@cgu.chel.su on Sun, May 21, 2000 at 10:09:43PM +0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 21, 2000 at 10:09:43PM +0600, Ilia E. Chipitsine wrote: > > > > > > from man page I read that fsck could be run either with "-p" or "-y|n" > > > options. what about "-p -y" ?! > > > > I haven't tried, but they would seem to be mutually exclusive. The > > '-p' option specifies behavior like, > > I did, I put 'fsck -p -y' into /etc/rc, at least it didn't complain :-) > By the time I tried it, filesystems were umounted clearly. I don't see why you would include the '-p' with '-y.' It seems that all of the special behavior implied by -p is the opposite of that implied by -y. > > > > (2) Don't fsck at all and don't try to mount filesystems that could > > be unclean. > > That could be the option ! > What about _mounting_ those unclean partitions ? There is 'mount -f,' but like the manpage says, it's dangerous. > > The boot process drops into single user mode because a corrupted > > filesystem is a Very Bad Thing. If you are booting a system with > > corrupt filesystems, the drop into single user should be the least of > > your worries. > > that PC is supposed to work without a display, without a keyboard, > the nearest place where they can find anybody who ever heard about 'fsck' > is probably 5km away. Then it _needs_ a UPS that can tell it to shutdown cleanly when power goes out. There is also the option of mounting most filesystems read-only. That way, they never get corrupted in the first place. I don't know the function of this box, but you could have the root and usr partitions read-only, and then have var writable and possibly some /usr/data or whatever as well. Make it so the system can boot into multi-user from read-only filesystems. Anyway, that's just an idea. I know people set up boxes to run unattended and with limited failure modes. There may be someone out there with a good way to set up such a system. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message