fsck and tunefs

By Hal Canary, 2009-03-12 19:58:09 (link)

My desktop does a fsck too foten for my tastes. Let's find out why

hal@sloop:~$ sudo dumpe2fs /dev/sda1 | grep 'heck\|nt count'
dumpe2fs 1.40.8 (13-Mar-2008)
Mount count: 9
Maximum mount count: 35
Last checked: Tue Mar 3 17:38:44 2009
Check interval: 15552000 (6 months)
Next check after: Sun Aug 30 18:38:44 2009

I want it to check every three months or 150 boots. That's easy to do.

sudo tune2fs -i 3m /dev/sda1
sudo tune2fs -c 150 /dev/sda1

UPDATE (2011-04-11): I later realized that the fscks were being triggered at mount time by /ets/fstab. “The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time.”