Force Fsck On The Next Reboot

It’s normal for fsck to automatically check the Linux file system after a predetermined amount of reboots. However some times the Linux administrator may need to force fsck to check and repair the Linux file system prematurely. To do so is very easy and only requires root privileges. I consider this to be the universal way.

touch /forcefsck

Then reboot the system and behold fsck working it’s magic.

shutdown -r now