quotacheck error

While enabling disk quota, it shows the below error message, i had analyzed myself and resolved those issues. See the below steps.





ERROR :
[email protected] [~]# quotacheck -auvm /home1
quotacheck: Cannot guess format from filename on /dev/xvdc1. Please specify format on commandline.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

1) Why qutoacheck shows the above error message ?

The above error message is clearly shows the results as,’can’t able to identified the quota file format’. It seem’s that the old quota file has been broken that’s why quotacheck it shows the above error message. So i’m just, forces the qutoacheck process with vfsv0 format.

2) What is disk quota ?

Disk quotas is to allocate limited disk space to every user in the system.

3) What is vfsv0 format ?

vfsv0 is qutoa file format which is used when the default detection might not work on system and corrupted quota files.

4) How to run qutocheck with force option ?

Use the below format to run the quota check with force option.

[email protected] [~]# quotacheck -cfmvF vfsv0 /home1
quotacheck: Scanning /dev/xvdc1 [/home1]
|/-|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
.
.
|/-|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
done
quotacheck: Checked 60202 directories and 495168 files

Details of above command.

quotacheck : Command.
c : create the aquota.user file.
f : Forces checking and writing of new quota files on filesystems with quotas enabled.
m : This flag forces checking of filesystem in read-write mode if a remount fails. Do this only when you are sure no process will write to a filesystem while scanning.
v : Display verbose status information as the quota check proceeds.
F : Format Name.
vfsv0 : quota version.

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...