Konubinix' opinionated web of thoughts

How to Set Up Automatic Filesystem Checks and Repair on Linux

Fleeting

To force filesystem check for every 30 mounts (i.e., trigger filesystem check after filesystem has been mounted 30 times), run the following command.

$ sudo tune2fs -c 30 /dev/sda1

To force filesystem check for every 3 months, use the command below.

$ sudo tune2fs -i 3m /dev/sda1

https://www.xmodulo.com/automatic-filesystem-checks-repair-linux.html