FSCK as needed

Andrew McNabb amcnabb at mcnabbs.org
Thu Jul 16 15:02:39 MDT 2009


On Thu, Jul 16, 2009 at 02:39:08PM -0600, Charles Curley wrote:
> I do regular offsite backups via two external hard drives which I
> alternate weekly. I use a script to mount them.
> 
> I'd like to add a provision to fsck the file systems but only if they
> need it, either by time since the last fsck, or by count. Is there a
> simple way to do that?

There are options to tune2fs such as -c and -i that you can use to set
the fsck interval.  For ext3, most people now seem to recommend
disabling forced checks.  The idea is that the journal should usually be
good enough, and the forced checks can be really annoying.

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868



More information about the PLUG mailing list