/dev/sdb1 /data ext4 defaults,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv1 0 0 Remount the filesystem to make it effective: $ sudo mount -vo remount /data Check the quotaNOTE: sudo is needed in order to temporally make the file system read-only. The option -cug will check both users & groups (REF). $ sudo quotacheck - cug /data $ sudo quotaon /data To check user-wise quota: $ sudo repquota /data To check group-wise quota, add the option -g: $ sudo repquota -g /data $ setquota <user> <soft-inode-limit> <hard-inode-limit> <soft-file-limit> <hard-file-limit> <file-system> Set the preferred editor (REF): $ export EDITOR="emacs -nw" $ sudo -E edquota tlee Disable quota check when bootingEditing /etc/default/grub: $ sudo emacs -nw /etc/default/grub Update grub: $ sudo update-grub Once reboot, check /proc/cmdline to verify the kernel options. Referenceshttps://wiki.archlinux.org/index.php/Disk_quota https://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/ch-disk-quotas.htmlhttps://www.linuxsecrets.com/archlinux-wiki/wiki.archlinux.org/index.php/Disk_quota.html#Usage
|
Memo-migrated >