Subject: Re: force fsck
To: None <port-mac68k@netbsd.org>
From: J. MacPhail <jrm@kw.igs.net>
List: port-mac68k
Date: 03/19/2004 10:06:07
On Wed, Mar 17, 2004 at 02:00:45PM -0500, Michael Lesniak wrote:
> Greetings,
> How do I force a fsck on every boot, whether the file system is clean 
> or not?
> 
> I changed rc to fastboot=no, but still, it skips doing a check of the 
> file system.

That is as expected, see fastboot(8) (man pages online at
www.netbsd.org, or extract man.tgz into any Unix-like system).  It
doesn't look from tunefs(8) as though you can get what you want by
editing the filesystem; from fsck(8) it looks as though you should
edit the startup script (the manual page says "/etc/rc", but I do not
at this moment have NetBSD booted to see if that is correct) to insert
the "-f" option in the call to /sbin/fsck.

Please also look at fstab(5) as (in circumstances where your
filesystems are getting messed up) you may save yourself grief by
using the "sync" mount option.

-- 
John