quotacheck(8) — Maintenance
NAME
quotacheck − Checks file system quota consistency
SYNOPSIS
/usr/sbin/quotacheck [−guv] filesystem ...
/usr/sbin/quotacheck −a [−guv] [−l number]
DESCRIPTION
The quotacheck command examines each specified filesystem, builds a table of current disk usage, and compares this table against that stored in the disk quota file for the file system. 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 file system is checked). The quotacheck command only checks file systems that have the userquota or groupquota option specified in the /etc/fstab file.
The quotacheck command must be run by a user with superuser authority.
By default both user and group quotas listed in /etc/fstab are checked. The −g flag specifies that only group quotas should be checked; the −u flag specifies that only user quotas should be checked.
The quotacheck command does not report on any inconsistencies, or any of its activities, unless you use the −v flag.
The quotacheck command runs parallel passes on file systems using the pass numbers specified in the /etc/fstab file in the same way that the fsck command runs the passes. The quotacheck command expects each file system to be checked to have quota files named quota.user and quota.group in the root directory. (These default file locations can be overridden in the etc/fstab file.) If these files do not exist, quotacheck creates them.
The quotacheck command is normally invoked before enabling disk quotas with the quotaon command.
The quotacheck command accesses the raw device in calculating the actual disk usage for each user. Thus, the file systems checked should be quiescent while quotacheck is running.
FLAGS
−aChecks all file systems identified in /etc/fstab as read/write with disk quotas.
−gChecks group quotas only.
−l numberSpecifies the number of times to perform disk quota checking.
−uChecks user quotas only.
−vReports discrepancies between the calculated and recorded disk quotas.
FILES
/usr/sbin/quotacheck
Specifies the command path
/usr/sbin/fsck
Specifies the file systems check program
[filesystem_root]/quota.user
Contains user quotas for filesystem
[filesystem_root]/quota.group
Contains user quotas for filesystem
/etc/fstabContains filesystem names and locations
RELATED INFORMATION
Commands: edquota(8), fsck(8), quota(1), quotaon(8), repquota(8).
Functions: quotactl(2).
Files: fstab(4).