Subject: Re: force fsck at boot time
To: Panagiotis G. Labropoulos <plabrop@phys.uoa.gr>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 06/14/2003 15:29:17
On Fri, Jun 13, 2003 at 12:29:15AM +0300, Panagiotis G. Labropoulos wrote:
> By default fsck runs in preen mode after improper shutdowns. If it finds
> serious errors it exits with code 1. The problem is that some times after
> abnormal shutdowns (ie power cut-off) the system has BLK errors. Because
> this is too often I modified /etc/rc.d/fsck to perform fsck -fy. But then
> the system halts and I cannot understand why. I have also tried fsck -fvy.

Hum, ok. This is different from what I understood in your original question.
Just change fsck -p to fsck -y, this should do the trick.

I did some tests, and fsck seems to always exit with a 0 status.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--