Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 61 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

quotacheck




SYNOPSIS

       quotacheck [ -gubcfinvdMmR ] [  -F  quota-format  ]  -a  |
       filesystem


DESCRIPTION

       quotacheck  examines  each  filesystem,  builds a table of
       current disk usage, and compares this table  against  that
       recorded  in  the disk quota file for the filesystem (this
       step is ommitted if option -c is specified). If any incon­
       sistencies  are detected, both the quota file and the cur­
       rent system copy of the incorrect quotas are updated  (the
       latter  only  occurs  if  an  active filesystem is checked
       which is not advised).  By default, only user  quotas  are
       checked.  quotacheck expects each filesystem to be checked
       to have quota files named [a]quota.user and [a]quota.group
       located  at  the  root of the associated filesystem.  If a
       file is not present, quotacheck will create it.

       If the quota file is corrupted, quotacheck tries  to  save
       as  much  data  as  possible.  Rescuing data may need user
       intervention. With no additional options  quotacheck  will
       simply  exit in such a situation. When in interactive mode
       (option -i) , the user is asked  for  advice.  Advice  can
       also be provided from command line (see option -n) , which
       is useful when quotacheck is run automatically  (ie.  from
       script) and failure is unacceptable.

       quotacheck  should  be  run each time the system boots and
       mounts non-valid filesystems.  This is most likely to hap­
       pen after a system crash.

       It  is  strongly recommended to run quotacheck with quotas
       turned off on for the filesystem. Otherwise, possible dam­
       age  or loss to data in the quota files can result.  It is
       also unwise to run quotacheck  on  a  live  filesystem  as
       actual usage may change during the scan.  To prevent this,
       quotacheck  tries  to  remount  the  filesystem  read-only
       before  starting  the  scan.   After  the  scan is done it
       remounts the filesystem read-write. You can  disable  this
       with  option  -m.  You can also make quotacheck ignore the
       failure to remount the filesystem  read-only  with  option
       -M.


OPTIONS

       -b     Forces quotacheck to make backups of the quota file
              before writing the new data.

       -v     quotacheck reports its operation as it  progresses.
              Normally it operates silently.

       -d     Enable  debugging mode.  It will result in a lot of
              found.

       -f     Forces checking and writing of new quota  files  on
              filesystems with quotas enabled. This is not recom­
              mended as the created quota files  may  be  out  of
              sync.

       -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.

       -m     Don't try to remount filesystem read-only. See com­
              ment with option -M.

       -i     Interactive  mode. By default quotacheck exits when
              it finds an error.  In  interactive  mode  user  is
              asked for input instead.  See option -n.

       -n     If the quota files become corrupted, it is possible
              for duplicate entries for a single user or group ID
              to  exist.  Normally in this case, quotacheck exits
              or asks user for input. When this  option  is  set,
              the  first  entry found is always used (this option
              works in interactive mode too).

       -F format-name
              Check and fix quota files of specified format  (ie.
              don't  perform format auto-detection). This is rec­
              ommended as detection might not work well  on  cor­
              rupted  quota  files.   Possible  format names are:
              vfsold (version 1 quota), vfsv0 (version 2  quota),
              rpc (quota over NFS), xfs (quota on XFS filesystem)

       -a     Check all mounted non-NFS filesystems in /etc/mtab

       -R     When used together with the -a option, all filesys­
              tems except for the root filesystem are checked for
              quotas.


NOTE

       quotacheck should only be run  by  super-user.  Non-privi­
       leged  users  are  presumably  not allowed to read all the
       directories on the given filesystem.


SEE ALSO

       quota(1), quotactl(2), fstab(5), quotaon(8),  repquota(8),
       convertquota(8),    setquota(8),    edquota(8),   fsck(8),
       efsck(8), e2fsck(8), xfsck(8)


                         Fri Jul 20 2001            quotacheck(8)
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds