cPanel - edquota: Quota file not found or has wrong format.


Error:

After running /scripts/fixquotas it gives the following error message and showing unlimited disk space in
WHM >> Main >> List accounts.

==============================================================
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
==============================================================

Solution:

The error is due to no quota file. You can follow the steps shown below to fix this issue.

root@server [~]# touch /home/quota.user
root@server [~]# touch /home/quota.group
root@server [~]# chmod 600 /home/quota.user
root@server [~]# chmod 600 /home/quota.group
root@server [~]# quotacheck -acugvm

quotacheck: Scanning /dev/simfs [/] quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
done
quotacheck: Checked 16689 directories and 234323 files
quotacheck: Old file not found.
quotacheck: Old file not found.

root@server [~]# /scripts/fixquotas --force

Installing Default Quota Databases......Done
Quota Mode: Linux
journaled quota support: not available with vzaquota (disabled)
Quotas have been enabled, however they may not be up to date as quotacheck has been skipped.
Reading package Starter
Resetting quota for arun to 2000 M
.
..
...

Thanks...

Leave a Reply