Command Line Quickies - force disk check on next reboot

Written by sean on July 29, 2008 – 6:30 am -

Ubuntu will occasionally run a filesystem check every 30th (or so) bootup. Usually that happens when I am working on something, and don’t want to wait. But I also like to make sure my disk is error free, so I will occasionally run it manually. The gotcha here is you should NEVER run fsck on a mounted file system. But a simple command can cause a fsck run on the next reboot:

\"Using touch to force a disk check\"

when the machine restarts, it will run fsck.


Tags: ,
Posted in Command Line Quickies | No Comments »