[Hampshire] Periodic filesystem checks

Top Page

Reply to this message
Author: Keith Edmunds
Date:  
To: hampshire
Subject: [Hampshire] Periodic filesystem checks
As we all know, by default Linux will run a periodic fsck at boot time if
the filesystem in question has been mounted X times without checking or
has not been checked for Y days, those parameters being set with
tune2fs(8).

Is it possible to establish, on a running system, how many mounts each
filesystem has had since the last check and what the tune2fs
-c parameter is? Similarly, is it possible to find out how many days have
elapsed since the last check and what the tune2fs -i parameter is?

I'm trying to establish which, if any, filesystems will be fsck'd if a
system is rebooted. For clarity: I'm not looking to change the interval or
the number of mounts between checks, nor am I looking to abort the check
if it starts. I just want to find out whether a check will take place.

Thanks!

Keith