Single Blog

Is it necessary to run fsck after every 180 days or 38 umounts?

February 24, 2015, Written by 0 comment

By default, a fsck is forced after 38 mounts or 180 days.

To avoid issues such as this, we recommend scheduling fsck to run a basic weekly check on your server to identify and flag errors. Doing so can prevent unwanted, forced fsck from running in situations such as this. You can then, plan for a time at which a full system fsck is run.

This filesystem will be automatically checked every 38 mounts or
 180 days, whichever comes first. Use tune2fs -c or -i to override.

Or you can disable the fsck to be activated by itself by editing fstb, by updating the last digit of the mounted volume to zero “0” instead of 1.

/dev/mapper/vg_centos-lv_root /       ext4    defaults        1 0
martin