Saturday, December 6, 2008

Controlling FSCK in Linux

It's annoying to have filesystem checks every once in a while when you boot your linux machine. I mean in the case everything is just fine, why run fsck? Now, how can you control the amount of mount before an fsck takes place? It's easy, if you are using Ext2 or Ext3 filesystem, just run tune2fs -c . This is the command:

me@machine $ tune2fs -c <number_of_mounts_before_fsck>

That's it. Just replace number_of_mounts_before_fsck with the value of your liking and it should be done.
Post a Comment

No comments: