linux Study Notes: Scan



[-M] forced scan

quota must be an independent district, have quota.user and quota.group two files, / etc / fstab add the sentence:

/ Dev/hda3 / home ext3 defaults, usrquota, grpquota 1 2

chmod 600 quota * is set, the reset force

edquota edit user or group quota [u] users, [g] group, [p] Copy, [t] set the grace period

edquota-a yang edquota-p yang-u young Copy

quotaon open disk space limit quotaon-auvg start all the filesystem with quota

quotaoff closed disk space limit quotaoff-a closed quota restrictions

repquota-av access to the system all the filesystem with quota limits state

Quota filesystem support from preparation to the end of the set is probably the main steps:

1, set the partition's filesystem support quota parameters:

As the quota to make the above partition filesystem support for the job in general, support the degree of the best is ext2/ext3,

Filesystem types other birds Brother I have not tried it! Start filesystem quota support is the most simple editing / etc / fstab,

Making preparations to open the disk can support quota quota Luo;

2, establish quota log file:

Just in front of before, the entire quota for disk file record limit is aquota.user / aquota.group,

To create these two files must first use quotacheck scanning Caixing Oh!

3, edit quota limit information:

Again is to use edquota to edit each user or group can use the space Lo;

4, re-scan and start the quota:

After setting the quota, it is recommended to make another quotacheck, and then to quotaon to start it!