I think everybody faced automatic filesystem checking invoked after it was mounted some certain number of times. It happens for me after 20 mounts of root filesystem with my Ubuntu Feisty (as well as any other distros that were installed), next time I boot up my laptop e2fsck starts.

It’s not a problem but very important feature and is highly recommended to be enabled in order to keep integrity of your data. But it’s possible to change number of mount times before checking is invoked by tune2fs Unix/Linux utility.

In order to get current state of maximum mount count after filesystem will be checked just execute:

sudo tune2fs -l /dev/sda2

where /dev/sda2 is Linux partition device name root filesystem is mounted at. The output of this command will show a lot of other filesystem information, but we need only line “Maximum mount count” (in my case it’s “Maximum mount count: 20“). To get total number of times filesystem was mounted execute: sudo tune2fs -l /dev/sda2 | grep “Mount count”.

To change maximum mount count to 25 please do: sudo tune2fs -c 25 /dev/sda2

 

Leave a reply

 

Your email address will not be published.