[CentOS] Force run of quotacheck at boot

Wed Aug 22 11:28:19 UTC 2007
Mogens Kjaer <mk at crc.dk>

Dogsbody wrote:
> Hi All,
> 
> I think I have managed to corrupt my quota files so I need to run
> `quotacheck` but that needs the partition to have quotas off or be
> unmounted which isn't ideal for a production system :-p
> 
> I was trying to find a way to force the system to do a full `quotacheck
> -cvuga` on a reboot but on looking in rc.sysinit it seems it will only
> force a quotacheck on boot when fsck finds problems with the disk.

Which CentOS?

In /etc/rc.d/rc.sysinit of CentOS 5 it seems to check for a file
/forcequotacheck

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk