Create a partition and format.

Mount with /home directory.

Permanent mount in —  /etc/fstab
/dev/sda10   /home   ext3   defaults,usrquota    0   0

#  mount  -o  remount  /home

#  quotacheck  -c  -u  /home {a file “aquota.user” is created in /home directory}.

#  quotaon  -av

#  edquota  -u  [username] {edit quota for a user}.

set the soft OR hard values :

Filesystem    blocks  soft  hard  inodes  soft  hard

/dev/sda10      5         0      0         5         0        0

No. of files = soft – inode / hard – inode / soft – blocks / hard – blocks

Eg. 10 – 5 = 5 OR 20 – 5 = 15

Soft – Gives only warning , one time.

Hard – Deletes files after 7 days.

Hard – Prevents from making files or writing blocks.

Advertisements