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:
- Install quota tools
- Add
usrquotato/etc/fstab quotacheckto create quota filesquotaonto activate- Use
quota/repquotato 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)
This application dpends of PM2 and Rclone
Install PM2
npm install -g pm2
pm2 startup
Install Static web server
npm install -g serve