[CentOS] unattended fsck on reboot

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Jan 6 17:52:12 UTC 2010


> Hey folks,
>
> I searched the list archives and found this :
>
> echo "AUTOFSCK_TIMEOUT=5" > /etc/sysconfig/autofsck
> echo "AUTOFSCK_DEF_CHECK=yes" >> /etc/sysconfig/autofsck
>
> http://lists.centos.org/pipermail/centos/2006-November/029837.html
> http://lists.centos.org/pipermail/centos/2009-September/thread.html#81934
>
> Will this do all disks?
>
> I want to do a reboot of a couple of systems during our maintenance
> window and fsck them, but would rather try it from home first and not
> go to the data center.  Then of course rush there like a madman if
> they don't come back up :-)
<snip>
Two things: make sure that the sixth field in /etc/fstab isn't zero, or it
won't be checked.

The other thing to consider is how long will the fsck take - minutes,
hours, days? How big are the filesystems?

       mark



More information about the CentOS mailing list