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
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