Search

How to turn on and turn off Linux disk quota using quotaon and quotaoff commands

To turn Linux disk quotas on for an already mounted filesystem, the quotaon utility can be used. A root, use the following to enable user and group quotas:

quotaon -vug <devicename>

[root@RHEL03 ~]# quotaon -vug /dev/sdb1
/dev/sdb1 [/home]: group quotas turned on
/dev/sdb1 [/home]: user quotas turned on

To temporarily turn off Linux disk quotas, execute the following command as root:

quotaoff -vug <devicename>

[root@RHEL03 ~]# quotaoff -vug /dev/sdb1
/dev/sdb1 [/home]: group quotas turned off
/dev/sdb1 [/home]: user quotas turned off

Related Tutorials
• Introduction to Linux Disk Quota
• How to create Linux disk quota database files (aquota.group and aquota.user) using quotacheck command
• How to manage Linux disk quota using edquota and repquota commands