Skip to content
WJunction - Webmaster Forum

How to enable quotas on an ext4 file system. Centos 6 (Works with WHM)

Status
Not open for further replies.

Sp32

Active Member
3,652
2009
1,326
If you are receiving the following error when trying to enable quotas in WHM:

quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option
You should first try doing both of the following via SSH:
Code:
[B][COLOR=SeaGreen]/scripts/fixquotas[/COLOR]
[COLOR=RoyalBlue]/scripts/fixcommonproblems[/COLOR][/B]
Then try to enable quotas, if the error is still occurring you may need to edit your fstab file, this can be tricky. First you will need to run:
Code:
[B][COLOR=SeaGreen]nano /etc/fstab[/COLOR][/B]
or
Code:
[B][COLOR=RoyalBlue]vi /etc/fstab[/COLOR][/B]
Then you will need to locate where your directories are mounted on. For example, if you have this line:
Code:
[B][COLOR=SeaGreen]/dev/mapper/vg-root / ext4 discard,noatime 1 1[/COLOR][/B]
You will need to replace it with:
Code:
[B][COLOR=RoyalBlue]/dev/mapper/vg-root / ext4 discard,noatime,usrquota 1 1[/COLOR][/B]
You should now reboot your system and once booted go into WHM and click Enable Quotas or run:
Code:
[B][COLOR=SeaGreen]/scripts/fixquotas[/COLOR][/B]
via SSH.
 
Status
Not open for further replies.

About the author

Sp32
Active Member · Joined
3,652
Messages
1,326
Reactions
113
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom