Force fsck on next reboot

fsck Let’s say you run a headless server and you want to fsck the main partition. The easy solution in this case is (if possible) to force fsck to run on the next boot.

If you run slackware than all you really need is to create an empty file in /etc called forcefsck

You could do this by running:

touch /etc/forcefsck

Other linux distributions might check for this file elsewhere, for example in the root directory so the command would be

touch /forcefsck

Checking the documentation will always help.