QUOTAON(8)
πΈ NAME πΈ
okay so bestie, meet the iconic twin duo: quotaon and quotaoff β they turn filesystem quotas on and off. That's it, that's the gig. They live in section 8 of the System Manager's Manual, so yeah, they're admin-core π
β¨ SYNOPSIS β¨
quotaon [ -vugfp ] [ -F format-name ] filesystem...
quotaon [ -avugPfp ] [ -F format-name ]
quotaoff [ -vugPp ] [ -x state ] filesystem...
quotaoff [ -avugp ]
π¦ DESCRIPTION π¦
π quotaon
quotaon</p> announces to the system that disk quotas should be enabled on one or more filesystems. The filesystem quota files must be present in the root directory of the specified filesystem, and they have to be named one of these, no exceptions:
aquota.userβ for version 2 user quotaquota.userβ for version 1 user quotaaquota.groupβ for version 2 group quotaquota.groupβ for version 1 group quota
XFS filesystems are a special case, bestie, they do their own thing. XFS considers quota information as filesystem metadata and uses journaling to provide a higher level guarantee of consistency. There are two components to the XFS disk quota system: accounting and limit enforcement. XFS filesystems require that quota accounting be turned on at mount time. It is possible to enable and disable limit enforcement on an XFS filesystem after quota accounting is already turned on. The default is to turn on both accounting and enforcement. π
The XFS quota implementation does not maintain quota information in user-visible files β nope β but rather stores this information internally. π€«
π quotaoff
quotaoff</p> announces to the system that the specified filesystems should have any disk quotas turned off. Bye bye quota era. π«Ά
π OPTIONS π
π quotaon
-F,--format=format-nameβ Report quota for specified format (ie. don't perform format autodetection). Possible format names are:vfsoldOriginal quota format with 16-bit UIDs / GIDs,vfsv0Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits,vfsv1Quota format with 64-bit quota limits and usage,xfs(quota on XFS filesystem)-a,--allβ All automatically mounted (nonoautooption) non-NFS filesystems in/etc/fstabwith quotas will have their quotas turned on. This is normally used at boot time to enable quotas.-v,--verboseβ Display a message for each filesystem where quotas are turned on.-u,--userβ Manipulate user quotas. This is the default.-g,--groupβ Manipulate group quotas.-P,--projectβ Manipulate project quotas.-p,--print-stateβ Instead of turning quotas on just print state of quotas (ie. whether. quota is on or off)-x,--xfs-command enforceβ Switch on limit enforcement for XFS filesystems. This is the default action for any XFS filesystem. This option is only applicable to XFS, and is silently ignored for other filesystem types.-f,--offβ Makequotaonbehave like being called asquotaoff.
π quotaoff
-F,--format=format-nameβ Report quota for specified format (ie. don't perform format autodetection). Possible format names are:vfsold(version 1 quota),vfsv0(version 2 quota),xfs(quota on XFS filesystem)-a,--allβ Force all filesystems in/etc/fstabto have their quotas disabled.-v,--verboseβ Display a message for each filesystem affected.-u,--userβ Manipulate user quotas. This is the default.-g,--groupβ Manipulate group quotas.-P,--projectβ Manipulate project quotas.-p,--print-stateβ Instead of turning quotas off just print state of quotas (ie. whether. quota is on or off)-x,--xfs-command deleteβ Free up the space used to hold quota information (maintained internally) within XFS. This option is only applicable to XFS, and is silently ignored for other filesystem types. It can only be used on a filesystem with quota previously turned off.-x,--xfs-command enforceβ Switch off limit enforcement for XFS filesystems (perform quota accounting only). This is the default action for any XFS filesystem. This option is only applicable to XFS, and is silently ignored for other filesystem types.-x,--xfs-command accountβ This option can be used to disable quota accounting. It is not possible to enable quota accounting by quota tools. Usemount(8)for that. This option is only applicable to XFS filesystems, and is silently ignored for other filesystem types.
π₯ NOTES ON XFS FILESYSTEMS π₯
To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota option to enable both accounting and limit enforcement. The quotaon utility cannot be used for this purpose. sorry bestie, that's just how XFS is π
Turning on quotas on an XFS root filesystem requires the quota mount options be passed into the kernel at boot time through the Linux rootflags boot option.
To turn off quota limit enforcement on any XFS filesystem, first make sure that quota accounting and enforcement are both turned on using repquota -v filesystem. Then, use quotaoff -v filesystem to disable limit enforcement. This may be done while the filesystem is mounted. π«Ά
Turning on quota limit enforcement on an XFS filesystem is achieved using quotaon -v filesystem. This may be done while the filesystem is mounted. β¨
π FILES π
aquota.useroraquota.groupβ quota file at the filesystem root (version 2 quota, non-XFS filesystems)quota.userorquota.groupβ quota file at the filesystem root (version 1 quota, non-XFS filesystems)/etc/fstabβ default filesystems
π SEE ALSO π
quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8)
and that's the whole page, bestie π§ this one came from the 4th Berkeley Distribution, and yeah it's QUOTAON(8) β go forth and quota responsibly πβ¨
π¦ where this page comes from
- alpine 3.24: quota-tools-doc 4.11-r0 Β· GPL-2.0-or-later
- centos-stream 10: quota 1:4.09-10.el10 Β· GPL-2.0-only AND GPL-2.0-or-later
- centos-stream 9: quota 1:4.09-4.el9 Β· GPLv2 and GPLv2+
- debian bookworm: quota 4.06-1+b2
- debian trixie: quota 4.09-1+b1
- fedora 43: quota 1:4.10-2.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: quota 1:4.11-2.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later
- nixpkgs unstable: quota 4.11
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- ubuntu jammy: quota 4.06-1build2
- ubuntu noble: quota 4.06-1build6
- ubuntu questing: quota 4.09-1
- ubuntu resolute: quota 4.09-1build1
- ubuntu stonking: quota 4.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms