You are not logged in.

#1 2009-10-28 18:20:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

syncing forced fsck runs at system boot for all partitions

I know how to change the interval (number of mounts) that fsck uses to force a check.  What I'd like to know is how I can get all my partitions to be in sync with each other?  In other words, my (/) partition is queued to get checked at the next boot.  /home is in queue for 2 boots, /var isn't on the list.  I'd like all three of these to be in sync'ed such that all three will get checked together.  Ideas?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-10-28 18:52:51

Engelbrekt
Member
Registered: 2007-11-17
Posts: 38

Re: syncing forced fsck runs at system boot for all partitions

You could use the -C option in tune2fs to set the mount-count:
tune2fs -C 0  /dev/sda1 

Check the result with:
dumpe2fs /dev/sda1 | more

If you set the same mount-count and the same max-mount-counts on all volumes I guess they should be checked at the same time.

Offline

Board footer

Powered by FluxBB