tomclegg.net


Diary
Examples
    256-router
    adzap
  >debian-quota<
    diskonmodule
    dynip
    fbsdhabits
    freebsdclone
    maildirpop3d-awfulhak
    mandy
    md
    mrtg
    net-snmp
    oracle9i
    oracle9i-bsd5
    oracle9i-client
    oracle9i-nat
    php-cgi
    php-commandline
    php-image
    php-kics
    php-mini_httpd
    pinouts
    plesk-symlink-php
    pxe
    qmail-linux
    qmail-qfilter
    racoon-sonicwall
    redundant-vpn
    rewriterule
    smalldog
    spamassassin
    squid-tproxy
    supfile
    suse73
    svc-nmbd
    svc-smbd
    svc-smtpd
    toyotastereo
    vm
    vn-file
    wmp-invalid
    xcode-remote-install
    xen-eth0-renamed
    xen3-ubuntu-dapper
Hire Tom
Mostly Mozart
Patches
School
Scrapbook
Software
Telephones




colocation
comments
davidireland
edsgranola
faq
funsites
goodmovies
liberating
nodefaultroute
resume
shopping
snacks
university

Set up disk quotas in ubuntu
Posted March 19, 2008

Add usrquota to mount options in /etc/fstab.

/dev/hda1 / ext3 defaults,usrquota,errors=remount-ro 0 1

Remount the filesystem to enable quotas.

sudo mount -o remount,usrquota /

Create the quota file ("-m" forces quotacheck to do this while the filesystem is mounted read/write, so you don't have to disrupt any services in order to do this step).

sudo quotacheck -F vfsv0 -c -a -v -m

quotacheck will say something like this.

quotacheck: Scanning /dev/hda1 [/] done
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Old group file not found. Usage will not be substracted.
quotacheck: Checked 19055 directories and 136735 files
quotacheck: Old file not found.

Turn on quota checking.

sudo quotaon -a

Edit a user's quota.

sudo edquota username