Linux Installation and Administration - Parkland    

Last Modified:
Monday, 13-Oct-2008 13:43:02 CDT

Disk Quotas in Linux


Background and Commands for Users

Implementing Quotas in Your own System

  1. Edit your /etc/fstab
  2. touch aquota.group and touch aquota.user etc. in the root of the mounted file system
  3. chmod 600 aquota.files Jason has these set at 644 on shaula but students have had it work with 600. But I am getting permission denied on some systems.
  4. remount your filesystem mount -o remount /var
  5. quotacheck -vagum (as root) shows quotas and tries to fix them if they are corrupted.
  6. edquota -g documents and the other edquota -u username
  7. quotaon -a
  8. Test the quotas
  9. Monitoring Quotas using repquota
    [root@gacrux ~]# repquota /tmp
    *** Report for user quotas on device /dev/hda7
    Block grace time: 7days; Inode grace time: 7days
    			Block limits                File limits
    User            used    soft    hard  grace    used soft  hard  grace
    ----------------------------------------------------------------------
    root      --   17908       0       0             40    0     0
    xfs       --       4       0       0              1    0     0
    smauney   --       4       0       0              1    11    15
    

Other Commands:

Links and Other Good Sources of Info. on Quotas

  • LinuxTopia
  • Hard Limit
  • Soft Limit
  • Enabling Disk Quotas
  • Quotas Mini-HOWTO at the LDP

  • | Top | Valid XHTML 1.0! Valid CSS!