What is Fsck ?
The system utility fsck (for "file system check" or "file system consistency check") is a tool for checking the consistency of a file system in the Unix system and clones thereof.
Generally, fsck is run automatically at boot time when the system detects that a file system is in an inconsistent state, indicating a non-graceful shutdown, such as a crash or power loss. Typically, fsck utilities provide options for interactively repairing damaged file systems (the user must decide how to fix specific problems), allowing fsck to decide how to fix specific problems (so the user doesn't have to answer any questions), or reviewing the problems that need to be resolved on a file system without actually fixing them.
Install showfsck in Ubuntu
sudo apt-get install showfsck
This will complete the installation
If you want to see the number of reboots before next forced fsck using the following command
output looks similar to the following
15/30 mount(s) until fsck for /dev/disk/by-uuid/edadb298-aae6-4549-b5dc-55c6184fdbc4
You can also use bonager tool for this if you want to check how to do this using bonager check here
Incoming search terms:
- configure fsck to run after specific number of reboots
- force fsck ubuntu
- FSCK WILL BE FORCED ON NEXT MOUNT