Ch 07 Disk Quotas

Vi /etc/fstab

The old /etc/fstab looked like

LABEL=/home       /home          ext3    defaults           1 2

but your new /etc/fstab should be

LABEL=/home       /home          ext3    defaults,usrquota  1 2

# mount –o remount /home

#cd /home

# touch aquota.user

#chmod 600 aquota.user

#quotacheck –vu /home

#quotacheck –vum /home (to force fully cheking)

#quotaon –a   or  #quotaon /home

to quota on to particular directory.

#quotaff –a

to quota off

#quotastaus

to know the status of quota

Assign Quota to User

#edquota –u username

this command needs to fill field below

Filesystem        blocks    soft        hard        indos    soft

Hard/dev/hda?   1572        0        0        199        0

#edquota –t

edit grace period an inode grace period

#rm –rf *

to remove all files from directory.

#reportquota –a

(to see how much of data uses)

#quotaoff –a

(to off quota service and remove from fstab )

#mount –o remount /home

(Remove entry from usrquota)