Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2016 20:16:11 +0100
From:      Patrick Hess <patrickhess@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: "fsck -y /" keeps saying "Disk is still dirty" no matter how many times I run it
Message-ID:  <1553395.JCnJngLWQk@desk8.phess.net>
In-Reply-To: <CAA2O=b_gsMDb%2BtZt657YN%2B_Yf6NN-kiOUdhNifE%2B=PzS9Ej%2BcQ@mail.gmail.com>
References:  <569017FF.9060509@rawbw.com> <569E6F7E.6000705@rawbw.com> <CAA2O=b_gsMDb%2BtZt657YN%2B_Yf6NN-kiOUdhNifE%2B=PzS9Ej%2BcQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Patrick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1553395.JCnJngLWQk>