Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2000 14:07:49 -0400
From:      "Bill Sandiford" <sysop@interlinks.net>
To:        "David Scheidt" <dscheidt@enteract.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Reboots without fsck at console
Message-ID:  <000801bfb6bc$d324e2a0$0fa06bcf@interlinks.net>
References:  <Pine.NEB.3.96.1000505120103.50539A-100000@shell-1.enteract.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi :

I made the modification as you suggested in the /etc/rc file but it still
doesn't work

The error I get is

WARINING: R/W mount of / denied. Filesystem is not clean - run fsck
mount: Operation not permitted
Filesystem mount failed, startup aborted
Enter full pathname of shell or RETURN for /bin/sh:

At this point I have to hit enter at the console and run fsck manually

This is what I want to avoid

Bill
----- Original Message -----
From: "David Scheidt" <dscheidt@enteract.com>
To: "Bill Sandiford" <sysop@interlinks.net>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Friday, May 05, 2000 1:02 PM
Subject: Re: Reboots without fsck at console


On Fri, 5 May 2000, Bill Sandiford wrote:

> I'm having a small problem with a few of my FreeBSD machines.  These
> machines are located at a remote location with bad power and not
sufficient
> enough of a UPS system.  If the power goes out to these machines, they
> sometimes don't boot up all the way and instead kick out in single user
mode
> asking for fsck to be run manually.  This must be done from the console.
My
> question is, is there anyway to configure these boxes so that the fsck
will
> be run automatically (without requiring any console input) so that these
> boxes will reboot on there own?

Change the line that does an fsck -p to
fsck -p || fsck -y

If the fsck -p fails it will do an fsck -y, which should take care of
things.


David




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801bfb6bc$d324e2a0$0fa06bcf>