What's the frequency of filesystem check on boot?

What is the maximum number of times the root filesystem on this computer can be mounted before it is automatically checked?


Solution 1:

From https://help.ubuntu.com/community/Fstab:

default is every 30 mounts

Run this to see your current setting:

sudo dumpe2fs -h /dev/sda1 | grep "Maximum mount count"

I have a value of -1 instead of the 30 that help.ubuntu.com is telling me. You can use sudo tune2fs -c XXX /dev/sdXY to change the frequency.

See this thread on ubuntuforums.org.