18.9.1 Enabling Disk Quotas on File Systems

To enable user or group disk quotas on a file system:

  1. Install or update the quota package:

    # yum install quota
  2. Include the usrquota or grpquota options in the file system's /etc/fstab entry, for example:

    /dev/sdb1       /home        ext4    usrquota,grpquota   0 0
  3. Remount the file system:

    # mount -o remount /home
  4. Create the quota database files:

    # quotacheck -cug /home

    This command creates the files aquota.user and aquota.group in the root of the file system (/home in this example).

For more information, see the quotacheck(8) manual page.