fortypoundhead.com

QUOTACHECK

Posted On 2007-05-14 by FortyPoundHead
Keywords: Command Reference
Tags: Linux Commandline Linux
Views: 1551


Scan a file system for disk usage

SYNTAX

quotacheck [-g] [-u] [-v] -a
quotacheck [-g] [-u] [-v] filesys ...

Quotacheck performs a filesystems scan for usage of files and directories, used by either user or group. The output is the quota file for the corresponding filesystem. By default the names for these files are:

- A user scan: quota.user
- A group scan: quota.group

The resulting file consist of a struct dqblk for each possible id up to the highest existing uid or gid and contains the values for the disk file and block usage and possibly excess time for these values. ( for definitions of struct dqblk see )

Quotacheck should be run each time the system boots and mounts non-valid file systems. This is most likely to happen after a system crash.

The speed of the scan is proportional to the number of directories/files.

OPTIONS
-v This way the program will give some useful infor­
mation about what it is doing, plus some fancy
stuff.

-d This means debug. It will result in a lot of infor­
mation which can be used in debugging the program.
The output is very verbose and the scan will not be
fast.

-u This flag tells the program to scan the disk and to
count the files and directories used by a certain
uid. This is the default action.

-g This flag forces the program to count the the files
and directories used by a certain gid.

-a Check all of the quotas for the filesystems men­
tioned in /etc/fstab. Both user and group quotas
are checked as indictated by the /etc/fstab
options.

-R When used in conjunction with -a, all filesystems
except the root filesystem are checked for quotas.

NOTE Quotacheck should only be run as Super User. Non-priviliged users are presumably not allowed to read all the directories on the given file system.

Files
quota.user, quota.group, /etc/fstab


About the Author

FortyPoundHead has posted a total of 1974 articles.

 


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.161.79.96

Before you can post, you need to prove you are human. If you log in, this test goes away.



Recent Forum Posts

SSL Now Active
dwirch posted on June 16, 2017 at about 8:40 in Site News

SSL Now Active
dwirch posted on June 13, 2017 at about 7:59 in Site News

Coding Archive?
dwirch posted on June 3, 2017 at about 12:54 in Site News

Job Spammer: Bharti Jigyasi
dwirch posted on June 2, 2017 at about 16:57 in Spammers

Coding Archive?
dwirch posted on May 25, 2017 at about 12:38 in Site News

BWASL returns
dwirch posted on May 13, 2017 at about 15:24 in Site News