1 .TH quotacheck 8 "Fri Jul 20 2001"
3 quotacheck \- scan a filesystem for disk usage, create, check and repair quota files
18 examines each filesystem, builds a table of current disk usage, and
19 compares this table against that recorded in the disk quota file for the
20 filesystem (this step is ommitted if option
22 is specified). If any inconsistencies are detected, both the quota file
23 and the current system copy of the incorrect quotas are updated (the
24 latter only occurs if an active filesystem is checked which is not advised).
25 By default, only user quotas are checked.
27 expects each filesystem to be checked to have quota files named
31 located at the root of the associated filesystem. If a file is not
36 If the quota file is corrupted,
38 tries to save as much data as possible. Rescuing data may need user
39 intervention. With no additional options
41 will simply exit in such a situation. When in interactive mode (option
43 , the user is asked for advice. Advice can also be provided from command
46 , which is useful when
48 is run automatically (ie. from script) and failure is unacceptable.
51 should be run each time the system boots and mounts non-valid filesystems.
52 This is most likely to happen after a system crash.
54 It is strongly recommended to run
56 with quotas turned off for the filesystem. Otherwise, possible damage
57 or loss to data in the quota files can result. It is also unwise to
60 on a live filesystem as actual usage may change during the scan. To
63 tries to remount the filesystem read-only before starting the scan.
64 After the scan is done it remounts the filesystem read-write. You can
65 disable this with option
69 ignore the failure to remount the filesystem read-only with option
76 to make backups of the quota file before writing the new data.
80 reports its operation as it progresses. Normally it operates silently.
81 If the option is specified twice, also the current directory is printed (note
82 that printing can slow down the scan measurably).
85 Enable debugging mode. It will result in a lot of information which can
86 be used in debugging the program. The output is very verbose and the
90 Only user quotas listed in
92 or on the filesystems specified are to be checked. This is the default action.
95 Only group quotas listed in
97 or on the filesystems specified are to be checked.
100 Don't read existing quota files. Just perform a new scan and save it to disk.
102 also skips scanning of old quota files when they are not found.
105 Forces checking and writing of new quota files on filesystems with quotas
106 enabled. This is not recommended as the created quota files may be out of sync.
109 This flag forces checking of filesystem in read-write mode if a remount
110 fails. Do this only when you are sure no process will write to a
111 filesystem while scanning.
114 Don't try to remount filesystem read-only. See comment with option
118 Interactive mode. By default
120 exits when it finds an error. In interactive mode user is asked for
121 input instead. See option
124 .B -n, --use-first-dquot
125 If the quota files become corrupted, it is possible for duplicate
126 entries for a single user or group ID to exist. Normally in this case,
128 exits or asks user for input. When this option is set, the first entry found
129 is always used (this option works in interactive mode too).
131 .B -F, --format=\f2format-name\f1
132 Check and fix quota files of specified format (ie. don't perform format
133 auto-detection). This is recommended as detection might not work well on
134 corrupted quota files. Possible format names are:
136 Original quota format with 16-bit UIDs / GIDs,
138 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits,
140 Quota format with 64-bit quota limits and usage,
144 (quota on XFS filesystem)
147 Check all mounted non-NFS filesystems in
150 .B -R, --exclude-root
151 When used together with the
153 option, all filesystems except for the root filesystem are checked for
158 should only be run by super-user. Non-privileged users are presumably
159 not allowed to read all the directories on the given filesystem.
167 .BR convertquota (8),
178 .B aquota.user or aquota.group
179 located at filesystem root with quotas (version 2 quota, non-XFS
182 .B quota.user or quota.group
183 located at filesystem root with quotas (version 1 quota, non-XFS
187 names and locations of mounted filesystems
189 Jan Kara \<jack@suse.cz\>
195 Edvard Tuinder \<ed@elm.net\>
197 Marco van Wieringen \<mvw@planets.elm.net\>