首页
首页 » 磁盘管理 » quotacheck

quotacheck

quotacheck
功能说明:检查磁盘的使用空间与限制。
语  法:quotacheck [-adgRuv][文件系统...]
补充说明:执行quotacheck指令,扫描挂入系统的分区,并在各分区的文件系统根目录下产生quota.user和quota.group文件,设置用户和群组的磁盘空间限制。
参  数:
  -a   扫描在/etc/fstab文件里,有加入quota设置的分区。
  -d   详细显示指令执行过程,便于排错或了解程序执行的情形。
  -g   扫描磁盘空间时,计算每个群组识别码所占用的目录和文件数目。
  -R   排除根目录所在的分区。
  -u   扫描磁盘空间时,计算每个用户识别码所占用的目录和文件数目。
  -v   显示指令执行过程。

quotacheck

quotacheck [options] [filesystems]

System administration command. Audit and correct quota information by building a table of current disk usage and comparing it to the recorded usage in both the kernel and the quota files. quotacheck will update quota information when possible and prompt the user if it requires input. Most systems that support quotas run this command at system startup. To prevent damage to filesystems or loss of quota data, turn off quotas with quotaoff and umount the system. quotacheck will attempt to remount any mounted filesystem as read-only before scanning.

Options

-a

Check all non-NFS filestystems in /etc/mtab.

-b

Back up quota files before writing new data to them.

-c

Skip reading existing quota information; just write new files.

-f

Force checking on filesystems with quotas currently enabled.

-F format

Check quota files for the specified format. (See quota for valid formats.)

-g

Only check group quotas.

-i

Prompt user for input upon finding errors.

-m

Don't try to remount mounted filesystems.

-M

Force check to run in read-write mode if it cannot successfully remount the filesystem in read-only mode.

-n

If multiple entries for a user or group are found in a corrupt quota file, use the first entry found.

-R

Don't check the root filesystem when using the -a option.

-u

Only check user quotas. This is the default.

-v

Print information on the progress of the command.