How to run fsck after reboot


If you want to manually run filesystem check after server reboot then please follow the below commands.

Create forcefsck file:

The file /etc/rc.sysinit is used to run fsck command.

[root@server ~]# touch /forcefsck

Now reboot the system:

[root@server ~]# shutdown -r now

Some of modern distribution linux does not support above command. For that, use -F options,

[root@server ~]# shutdown -rF now