Date: Sun, 21 May 2000 11:59:03 -0400 From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: Ilia Chipitsine <ilia@cgu.chel.su> Cc: questions@FreeBSD.ORG Subject: Re: fsck ? Message-ID: <20000521115902.C96573@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <Pine.BSF.4.10.10005211638320.285-100000@jane.cgu.chel.su>; from ilia@cgu.chel.su on Sun, May 21, 2000 at 04:39:35PM %2B0600 References: <Pine.BSF.4.10.10005211638320.285-100000@jane.cgu.chel.su>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 21, 2000 at 04:39:35PM +0600, Ilia Chipitsine wrote: > -----BEGIN PGP SIGNED MESSAGE----- > > Dear Sirs, > > what would be you suggestions about fsck ? > I want to run it from /etc/rc so that it WON'T ASK me any questions. > > 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, These are the only inconsistencies that fsck with the -p option will cor- rect; if it encounters other inconsistencies, it exits with an abnormal return status and an automatic reboot will then fail. > second question: it is said that if fsck cannot fix the filesystem > it brings "signle user" mode up. How can I prevent fsck from dropping > me into a "single user" mode ??? Two ways I can think of, (1) Unmount your filesystems cleanly at shutdown. (2) Don't fsck at all and don't try to mount filesystems that could be unclean. 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. -- Crist J. Clark cjclark@home.com 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?20000521115902.C96573>