Set User Quota
User Quota on Fedora 9/10, RHEL 5
Activate User Quota Temporarily:-
mount -o remount,usrquota <your-mounted-directory :-Remember By executing this command quota will activate temporarily.
Activate Quota Permanantly:-
backup your fstab file by this way cp /etc/fstab /etc/fstab.bkp
now open your fstab file in your favorite editor i am using vim as my editor
vim /etc/fstab
Make permanent entry of your mounted directory like this way
Add this line with your matching information.
<partition-number> <mounted-directory> ext3 defaults,usrquota 0 0
save & exit
Now execute this two command in correct order.
1. umount -a
2. mount -a
quotacheck <your-mounted-directory> :- by Executing this command one file will create in your quota applied directory with file name aquota.user
quotaon <your-mounted-directory> :- by executing this command quota will turn on on your mounted directory.
edquota <username-on-which-you-want-to-apply-quota> :- By executing this command one file will open & in that file you need to make changes as per your requirement.
Below Example will show you how that file look like.
Example of quota file :-
Disk quotas for user <user-name> (uid 500):
Filesystem blocks soft hard inodes soft hard
<partition number> 36 0 0 9 0 0
Change Blocks’s Soft & Hard as per your requirement.Do the same for inodes’s soft and hard as per your requirement.
After made changes in that
Save & Exit.
That’s it. Quota Applied Successfully.
What is blocks & inodes ? Read below for small description.
Description of Blocks & Inodes:-
blocks: 1k blocks
-
inodes: Number of entries in directory file
What is Soft & hard ? Read below for small description.
Description of Soft & Hard:-
Soft: Max number of blocks/inodes user may have on partition before warning is issued and grace period countdown begins.If set to “0″ (zero) then no limit is enforced.
- hard: Max number of blocks/inodes user may have on partition.
If set to “0″ (zero) then no limit is enforced.
You can see quota report by using below command
repquota <your-mounted-directory>
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.







[...] Click on Below link to Continue Reading at Ask4 IT Solutions ( IT Solutions Provider India) Click on this link to continue reading :- http://blog.ask4itsolutions.com/2009/01/01/set-user-quota/ [...]
Dear Tejas Barot,
This is great instruction about user quota. A very nice step-by-step instructions given by you.This will helps to so many people that who wants to set up simple user quota.
Right now I don’t want to set user quota.but whenever i need user quota instruction i will come to your blog only. No one can instruct like this way which done by you
again many thanks to you
keep sharing good things