On Sun, Jun 28, 2009 at 02:15:43PM +0100, Mikolaj Kucharski wrote:
> On Sun, Jun 28, 2009 at 10:08:47AM +0200, Joachim Schipper wrote:
> > > I'm looking for /forcefsck equivalent. I just wanted to be sure that
> > > after reading all manuals there is really no such option to mark fs as
> > > unclean.
> > 
> > That is not really an answer; what *are* you really truing to do? There
> > might be a good way to do it on OpenBSD, but we can't really help you.
> 
> I want to force fsck on reboot without console access. Now I'm thinking
> it would be not a good idea to have that option. For ppl which don't
> have console access they will try force fsck and end up with interactive
> prompt if something would go wrong. You really need to have console when
> you want to fsck a filesystem. For me it's EOT. Sorry for the noise.

You can try fsck -fn. It even works on mounted filesystems. It won't fix
any issues, but it might tell you if there are any.

Just kill all processes save sshd, wait a bit, call sync(8) a couple of
times, and run it.

                Joachim 

Reply via email to