[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How often should I fsck my ext3 partition?



Brad Sawatzky wrote:
On Wed, 05 Apr 2006, Mike McCarty wrote:


Ali Milis wrote:

Johannes Wiedersich wrote:


The debian default of my sarge installations is that the ext3-FS are
fsck'ed about every 30 mounts or 180 days (whatever comes first).

This is just my  Euro 0.01 opinion:

180 days is reasonable for new disks.
Perhaps you would like to lower it when your disk goes old.

[ . . . ]

A related question is how to do it without taking the machine down
uncleanly or fiddling an arcane file somewhere. I've thought about
perhaps doing...

$ mount -o remount -o ro /dev/hda5
$ fsck /dev/hda5
$ mount -o remount -o rw /dev/hda5

(I have /dev/hda5 mounted as / on my machine.) Is there any
exposure in this? I'm pretty leery of running fsck on a
r/w file system.


Running fsck on a r/w file system is a Bad Plan(TM).  (I don't think fsck
will even do it without a force flag.)

You don't seem to be responding to what I wrote. Did you intend to?
My issue is whether remounting / as ro, doing the fsck, and the
remounting rw looks reasonable. I don't need confirmation that
a mounted rw file system should not be fsck'd.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!



Reply to: