Force fsck on next Reboot in Linux

By creating /forcefsck file, you will force the linux file system to do a complete file system check on next reboot or in the boot sequence.

To do this, login as root to the / directory and touch a file named forcefsck.

touch /forcefsck

Now you can reboot the system by the reboot command.

One thought on “Force fsck on next Reboot in Linux”

Leave a Reply

Your email address will not be published. Required fields are marked *