How to Run quotacheck command

Linux Add comments
326

When each quota-enabled file system is remounted, the system is now capable of working with disk quotas. However, the file system itself is not yet ready to support quotas. To do this, you must first run quotacheck.

The quotacheck command examines quota-enabled file systems, building a table of the current disk usage for each one. This table is then used to update the operating system’s copy of disk usage. In addition, the file system’s disk quota files are updated (or created, if they do not already exist).

In our example, the quota files (named aquota.group and aquota.user, and residing in /home/) do not yet exist, so runningquotacheck will create them. Use this command:

quotacheck -avug

The options used in this example direct quotacheck to:

 

  • Check all quota-enabled, locally-mounted file systems (-a)
  • Display status information as the quota check proceeds (-v)
  • Check user disk quota information (-u)
  • Check group disk quota information (-g)

Once quotacheck has finished running, you should see the quota files corresponding to the enabled quotas (user and/or group) in the root directory of each quota-enabled file system (which would be /home/ in our example):

total 44
drwxr-xr-x    6 root     root         4096 Sep 14 20:38 .
drwxr-xr-x   21 root     root         4096 Sep 14 20:10 ..
-rw-------    1 root     root         7168 Sep 14 20:38 aquota.user
-rw-------    1 root     root         7168 Sep 14 20:38 aquota.group
drwx------    4 deb      deb          4096 Aug 17 12:55 deb
drwx------    9 ed       ed           4096 Sep 14 20:35 ed
drwxr-xr-x    2 root     root        16384 Jan 20  2002 lost+found
drwx------    3 matt     matt         4096 Jan 20  2002 matt

Tags:, , , , , , , , , , , , , ,

Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email

Not Getting



Leave a Reply



This Howtos posted under" Linux

How to Run quotacheck command


Find Free Howtos and tutorials on apache, Linux, windows, php, Networking, MySQL, Cisco, open source, Nas, Virtualization, voip, vpn, email,send mail, lamp, security, SEO, squid, Anti virus, Backup, Database and many more