[TriLUG] scheduling a forced fsck
Lance A. Brown
lance at bearcircle.net
Thu Sep 9 12:13:22 EDT 2004
You can use tune2fs to change mount-count numbers on a filesystem to
control when the computer will fsck it at boot time.
tune2fs -c max-mount-counts fsdevice
sets the maximal mounts count between two fsck runs.
tune2fs -C mount-count fsdevice
sets the mount-count on fsdevice to the specified number.
Using these, you can write a script to adjuste the mount count numbers
and prevent unwanted fsck operations.
Joseph Mack NA3T wrote:
> I have a laptop with a usb v1.0 port. I use an external 120G usb disk for
> backup and moving files between computers. After mounting 23 times (or
> whatever), the external disk has a forced fsck, which takes about 2hrs on
> the usb v1.0 machine, derailing any attempt to use the disk for the rest
> of the evening.
> I could set the disk to never require a forced fsck, but I'm afraid that
> might have other repercussions (although I'm not sure what).
> Running fsck on the disk before mounting it doesn't reset the counter for
> the number of mounts to be counted towards the forced fsck (although I
> would have hoped it did) and I still have to wait for a forced fsck when
> the disk wants, rather than when I want.
> I was hoping that I could do something on my schedule (eg run fsck on the
> disk when I know I'm not going to use it) to avoid this problem.
> Any suggestions?
> Thanks Joe
Celebrate The Circle: http://www.celebratethecircle.org/
Carolina Spirit Quest: http://www.carolinaspiritquest.org/
My LiveJournal: http://www.livejournal.com/users/labrown/
GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
More information about the TriLUG