fsck on mounted system?

Liam Proven lproven at gmail.com
Fri Sep 7 13:16:12 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?

No, not AFAIK, because the system would have to drop from a multituser
runlevel down to single-user in order that the filesystems could be
remounted read-only. You mustn't try to fsck a mounted filesystem or
you *will* screw it up, badly.


-- 
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lproven at cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven at hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884




More information about the ubuntu-users mailing list