Sometimes you wish to make fsck run at the next time (after the computer is powered up/rebooted).
This can be achieved by
Passing F to shutdown
By passing the option “F” to shutdown it will force a file system check at the next boot up.
shutdown -rF now |
By creating a /forcefsck file
If the file “/forcefsck” exists then a fsck is forced at boot up.
touch /forcefsck |