Quota

From Wiki
Revision as of 23:21, 7 April 2011 by Scott (talk | contribs)
Jump to navigation Jump to search

Set up

As root:

apt-get install quota quotatool

update /etc/fstab:

/dev/sdb1 /home ext4 usrquota,usrjquota=quota.user,jqfmt=vfsv0 0 0

Then run these commands:

touch /home/quota.user
chmod 600 /home/quota.user
mount -o remount /home
quotacheck -avum
quotaon -avu 

Manage

To see usage and quotas for all users:

repquota -a


References

http://www.ubuntugeek.com/how-to-setup-disk-quotas-in-ubuntu.html

notes on journaled quotas: http://ubuntuforums.org/showthread.php?t=1014051&page=2