Problem:
- Use fsck to run a filesystem check as preventive maintenance or when there is an issue with your system.
- One common problem fsck can diagnose is when the system fails to boot.
- Another one is when you get an input/output error when the files on your system become corrupt.
- You can also use the fsck utility to check the health of external drives, such as SD cards or USB flash drives.
Answer:
One can force a file system consistency check the following way:
Up on boot, hold the ESC and SHIFT key, this will then allow you to boot into the GRUB boot menu:
Press the "e" key to edit the Ubuntu boot options. Use the keyboard arrow keys to move the cursor to the line starting with linux:
Then press the END key on the keyboard. This will bring the cursor to the end of the linux boot line, add now a space.
And add: fsck.mode=force
Press CTRL and X, to save the boot parameter. It will now reboot and force an one time file system consistency check.