Date: Sat, 1 Jun 2002 21:48:02 -0700 (PDT) From: Patrick Thomas <root@utility.clubscholarship.com> To: <freebsd-questions@freebsd.org> Subject: use of fsck -y Message-ID: <20020601214223.T18408-100000@utility.clubscholarship.com>
next in thread | raw e-mail | index | archive | help
I have the following lines that run at startup: vnconfig /dev/vn0 /prisons/1a mount /dev/vn0c /mnt/point /mnt/point/apachectl start ok. If the machine crashes, vnconfig runs ok, but `mount` fails, because the device is not clean - it needs to be fsck'd. When this happens I run `fsck /dev/vn0` and I answer yes to every question. QUESTION: would the same thing be accomplished if I put this in my startup script: vnconfig /dev/vn0 /prisons/1a fsck -y /dev/vn0 mount /dev/vn0c /mnt/point /mnt/point/apachectl start Or am I missing some arguments with fsck or otherwise doing something wrong ? (I know -y is risky) Also, if I reboot cleanly, can I assume there will be no bad effects to running `fsck -y /dev/vn0` even though nothing is wrong with vn0 ? thanks, PT 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?20020601214223.T18408-100000>