Disk quotas

Disk quotas can be implemented by a system administrator as a way to manage restrictions on storage for users or groups of users. They allow the administrator to balance storage resources so that it is possible to manage finite capacity in a suitable way. An example of disk quotas in use would be, for example, a web hosting provider that allocates a certain amount of disk storage space per customer, or to limit certain users from consuming the full resources of the file-system, thereby preventing the file-system filling up and starving other users or the system of storage. There are two types of restrictions that can be put in place, one is which controls the number of files/directories, and  which can restrict based on storage blocks (size). When set limits are reached, it is possible to notify the system administrator or user consuming the resources in question, informing them to take appropriate action.

Kernel
Kernel support is required for disk quotas, if support for journaled quotas is also required, the option "Quota formats vfsv0 and vfsv1 support" needs to be enabled too.

fstab
(Explain how to configure the package/software/tool/utility in this section.)

To enable quotas, some configuration is required by editing and enabling  and/or  for each file-system upon which quotas need to be managed. If journal quota is required the mount options needs to be specified. Quotas are set and edited by which manages configuration files in the root of each file-system.

After has been edited accordingly, the file-systems need to be remounted. Repeat the mount command for every file-system that has been edited.

Group quotas
TODO: this is incomplete

It is possible to apply quotas to groups of users, if this is desired a group has to be present to assign the quota to. This creates a new group and adds two users to the group, assuming there are users alice and bob.

Creating the quota files
After the configuration has been completed, the quota files have to be created. This is accomplished with the command. The following command checks user and group quotas and creates the quota files as neccessary for. After the quota files are created, a simple check with can verify the quota files are actually there.

Usage
(Explain how to use the package/software/tool/utility in this section.)

Invocation
(Remove this section if not applicable.)

Troubleshooting
(Troubleshoot issues in this section. Separate issues by best describing the error with a new section name. Remove if no issues are known.)

Issue 1
When X happens, Y is how you fix it.

Removal
(Explain how to properly remove the software. If this section needs more than an 'emerge -C' command each step should be explained in detail so that no trace of the software remains on the system.)

External resources

 * (Link to external resources (outside the Wiki) using bullet points in this section. It is common for the information in this section to full sentences that are links.)