Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doc:installationguide:basic-quota [2015/11/23 23:45] crafty Added the need to install the quota package |
doc:installationguide:basic-quota [2016/10/02 20:49] gradator usrjquota is not necessary anymore, change ext3 to ext4 |
||
---|---|---|---|
Line 2: | Line 2: | ||
* First install the quota tools | * First install the quota tools | ||
- | # apt-get install quota | + | # apt-get install quota libquota-perl |
* Then, enable the quota kernel module | * Then, enable the quota kernel module | ||
Line 12: | Line 12: | ||
* Enable quota on /data partition | * Enable quota on /data partition | ||
- | # /dev/md2 /data ext3 defaults,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 0 | + | # /dev/md2 /data ext4 defaults,grpjquota=aquota.group,jqfmt=vfsv0 0 0 |
* remount partition | * remount partition | ||
Line 18: | Line 18: | ||
# mount -o remount /data | # mount -o remount /data | ||
- | * Create quota files | + | * Generate quota files |
- | # touch /data/aquota.user | + | # quotacheck -cmg /data |
- | # touch /data/aquota.group | + | |
# chmod 600 /data/aquota.* | # chmod 600 /data/aquota.* | ||
- | |||
- | * Generate quota files | ||
- | |||
- | # quotacheck -cm /data | ||
* Enable quota | * Enable quota |