quotaoff – Turn off the disk quota function of the specified file system

The quotaoff command is used to turn off the disk quota function of a specified file system in the Linux kernel. Disk quotas are used to limit the amount of disk space that users or groups can use on a file system. This command is useful when you want to disable the disk quota feature on a file system.

Overview

The quotaoff command can be used to turn off the disk quota function of a specified file system. To use this command, you must have superuser privileges. The syntax for the quotaoff command is as follows:

quotaoff [-vug] <filesystem>

Where:

  • -v – Verbose output. This option displays additional information about the operation.
  • -u – Turn off user quotas.
  • -g – Turn off group quotas.
  • <filesystem> – The file system for which you want to turn off the disk quota function.

Examples

To turn off the disk quota function for the /home file system, you would run the following command:

sudo quotaoff /home

To turn off user quotas for the /home file system, you would run the following command:

sudo quotaoff -u /home

Options

The following table lists the available options for the quotaoff command:

Option Description
-v Verbose output. Displays additional information about the operation.
-u Turn off user quotas.
-g Turn off group quotas.

Troubleshooting tips

If you encounter issues when using the quotaoff command, try the following troubleshooting tips:

  • Verify that you have superuser privileges. The quotaoff command requires superuser privileges to run.
  • Check that the file system for which you want to turn off the disk quota function is mounted.
  • Ensure that the disk quota feature is enabled on the file system. If it is not enabled, you cannot turn it off.

Notes

  • The quotaoff command is the opposite of the quotaon command, which is used to turn on the disk quota function of a specified file system.
  • If you turn off the disk quota function for a file system, all existing quotas will be removed.