Force a filesystem check (fsck) on next boot

You can force a filesystem check of the automatically mounted partitions on the next boot by creating a file with the name forcefsck in the root directory. You could simply use:
touch /forcefsck
as root. The file will be automatically removed after a successful fsck during the boot process.

PS: actually I do not know how "standard" this behaviour is ... it works on Debian and Ubuntu though.

Syndicate content