How to Install Quotas

  1. Home
  2. Knowledge Base
  3. Applications
  4. Quotas
  5. How to Install Quotas

About the Quota installer

Users can now directly edit their fstab to ensure a proper mount for quotas, this is especially great for those with mount points such as /mnt /media /somethingweird. So in short, QuickBox Pro now lifts the limitations seen in QuickBox Community when it comes to handling custom mount points.

Setting your primary mount point for Quotas

If you have installed QuickBox Pro using the setup binary as of v0.5.6, then you have entered your mount partition on the GUI setup. If this is the case, you can skip the next segment and move on to Example of editing your fstab from the Quota installer.

Finding your Primary Partition for mounting quotas

To find your primary partition is a simple task, from shell as sudo or root, run the command df. This will have an output such as the following:

# df
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs          tmpfs     1.6G  156M  1.4G  10% /run
/dev/md2       ext4      205G   79G  117G  41% /
tmpfs          tmpfs     7.8G  8.0K  7.8G   1% /dev/shm
tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs          tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/md0       ext4      464M  109M  327M  26% /boot
overlay        overlay   205G   79G  117G  41%

What you are looking for is typically the drive with the most space available. In this case, it’s the /(root) mount.

Entering your Primary Partition for mounting quotas

Now that you know your primary partition, navigate to the General Settings page and locate the field titled Disk Mount. Within this field you will enter the partition for quotas to make use of. For purposes of our demo, we will enter / for the root mount.

Next, click the Submit Changes button and proceed to install quotas from your dashboard’s Application Management Center on the Apps Dashboard.

Example of editing your fstab from the Quota installer

When installing quotas, you’ll notice there is a field entered with the specific string that needs to be added…

usrjquota=aquota.user,jqfmt=vfsv1,errors=remount-ro

…thus, if you’re using Hetzner, you may see somethin like the following:

proc /proc proc defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 defaults 0 0
/dev/md/3 /home ext4 defaults 0 0

In this for instance, your primary mount point is on /root. Therefore, as per the suggested string that is posted for change, you’re updated fstab field will look like the following edit:

proc /proc proc defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 usrjquota=aquota.user,jqfmt=vfsv1,errors=remount-ro 0 1
/dev/md/3 /home ext4 defaults 0 0

Was this article helpful?

On Friday, March 29, 2019 all License Keys previous to the new API system will be expired.