fsck on mounted system?

Colin Law clanlaw at googlemail.com
Sat Sep 8 20:09:17 UTC 2012


On 7 September 2012 11:26, oxy <oxyopes at googlemail.com> wrote:
>>
>> sudo touch /forcefsck
>>
>> and then the filesystem should be checked at the next reboot.
>>
>
>
> is there a way to force fsck on shutdown?

Yes, with a little manual intervention.  In a terminal run
sudo touch /forcefsck
then initiate a shutdown.  Watch carefully and when the power light
goes out immediately press the power button, a filesystem check will
be initiated soon after.

Colin




More information about the ubuntu-users mailing list