OS: Ubuntu 16.04
I have installed the quota
commandline tool from apt and found some instructions to enable quota on the root partition by appending rootflags=uquota,gquota
to GRUB_CMDLINE_LINUX
within the file /etc/default/grub followed by update-grub
and rebooting.
This seems to only effect my root partition as repquota -a
gives the following output.
*** Report for user quotas on device /dev/sda5
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 2791432 0 0 176163 0 0
daemon -- 52 0 0 1 0 0
etc.
etc.
As i would like to check the /var (/dev/sda6) partition aswel i tried to fill in either of ,usrjquota=quota.user,grpjquota=quota.group
or ,uquota,gquota
to /etc/fstab for /var but mount
keeps outputting noquota:
(rw,noatime,attr2,inode64,noquota)
Rebooting with either of those mount options leaves me with a boot error when trying to mount /var.
How can i achieve quota control on my other partitions?
The problem was the naming of the options. The correct options were
usrquota
andgrpquota
. Appending these two options to the mountpoint enabled me to watch quota statistics under my /var partition too.