QUOTACHECK(8) UNIX Programmer's Manual QUOTACHECK(8) NAME quotacheck - filesystem quota consistency checker SYNOPSIS quotacheck [ -v ] _f_i_l_e_s_y_s_t_e_m ... quotacheck [ -v ] -a DESCRIPTION Quotacheck examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota file for the filesystem. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated (the latter only occurs if an active filesystem is checked). Available options: -a If the -a flag is supplied in place of any filesystem names, quotacheck will check all the filesystems indicated in /_e_t_c/_f_s_t_a_b to be read-write with disk quotas. -v quotacheck reports discrepancies between the calculated and recorded disk quotas. Parallel passes are run on the filesystems required, using the pass numbers in /_e_t_c/_f_s_t_a_b in an identical fashion to fsck(8). Normally quotacheck operates silently. Quotacheck expects each filesystem to be checked to have a quota files named _q_u_o_t_a_s located at the root of the associ- ated file system. These defaults may be overridden in /_e_t_c/_f_s_t_a_b. If a file is not present, quotacheck will create it. Quotacheck is normally run at boot time from the /_e_t_c/_r_c._l_o_c_a_l file, see rc(8), before enabling disk quotas with quotaon(8). Quotacheck accesses the raw device in calculating the actual disk usage for each user. Thus, the filesystems checked should be quiescent while quotacheck is running. FILES _q_u_o_t_a_s at the filesystem root /_e_t_c/_f_s_t_a_b default filesystems Printed 11/24/99 January 24, 1996 1 QUOTACHECK(8) UNIX Programmer's Manual QUOTACHECK(8) BUGS The _q_u_o_t_a_s file may be named arbitrarily but must reside in the filesystem for which it contains quota information. Quotacheck will give the error: %_s _d_e_v (_0_x%_x) _m_i_s_m_a_t_c_h %_s (_0_x%_x) if the _q_u_o_t_a_s file is not in the filesystem being checked. This restriction is enforced by the kernel but may be lifted in the future. SEE ALSO quota(1), quotactl(2), fstab(5), edquota(8), fsck(8), quo- taon(8), repquota(8) HISTORY The quotacheck command appeared in 4.2BSD. Printed 11/24/99 January 24, 1996 2