Skip to main content

System Setup

Project quota setup on EXT4

warning

Supports on ubuntu >= 24.04

Linux kernel version > 4.4

Here’s a concise summary for enabling and checking user quotas on an Ubuntu 24 Server using ext4 👇


🧩 Enable & Check User Quotas (ext4, Ubuntu 24)

1️⃣ Install quota tools

sudo apt update
sudo apt install quota

2️⃣ Enable quotas in /etc/fstab

Edit:

sudo nano /etc/fstab

Find your main filesystem line (e.g. /dev/sda1 or /) and add usrquota,grpquota to the mount options:

UUID=xxxx-xxxx  /  ext4  defaults,usrquota,grpquota  0  1

Then remount:

sudo mount -o remount /

3️⃣ Create quota files

sudo quotacheck -cum /

Creates:

/aquota.user

4️⃣ Turn quotas on

sudo quotaon -v /

✅ Output should say:

/dev/sda1 [/]: user quotas turned on

5️⃣ Verify quotas are active

sudo repquota -a

or for one user:

sudo quota -u username

6️⃣ (Optional) Set user quota

sudo setquota -u username 2000000 2500000 0 0 /

(soft = 2 GB, hard = 2.5 GB)


7️⃣ View user quota

quota -u username

Summary:

  1. Install quota tools
  2. Add usrquota to /etc/fstab
  3. quotacheck to create quota files
  4. quotaon to activate
  5. Use quota / repquota to check usage

Would you like me to add a short script to automate these steps for new Ubuntu servers?

Some helpful commands to debug

df -Th # show file system type and mount point
lsblk # list block devices
fdisk -l # list partitions
lsattr # list file attributes
edquota # list project quota
setquota # set project quota
repquota # show project quota
du -sh # show disk usage
quotaon -ap # show quota status

Dependencies

sudo apt update
sudo apt install -y build-essential
Zip - Unzip
apt install zip -y
apt install unzip -y
Wget
apt install wget -y
Create a nonroot user to avoid some classic issue that conflicts with ECP user
useradd ehm

Install Nodejs using Node Version Manager (NVM)

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04#option-3-installing-node-using-the-node-version-manager

This application dpends of PM2 and Rclone

Install PM2

npm install -g pm2
pm2 startup

Install Static web server

npm install -g serve