"fsck -y /" keeps saying "Disk is still dirty" no matter how many times I run it

Patrick Hess patrickhess at gmx.net
Sat Jan 23 19:16:23 UTC 2016

Anton Sayetsky wrote:
> Would be much more convenient if fsck had an option "to run until clean".
> Maybe something like this will work (completely untested):
> while(result);do fsck ...; result=$?; done

This should do the trick:

    until fsck ...; do :; done

Matt Smith wrote:
> When I had SU+J enabled I could never get fsck to ever mark the 
> disk as clean.

I've been using SU+J since the early days of 9.x and never encountered
any such issues.


More information about the freebsd-questions mailing list