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.