I'm on Ubuntu 24.04 Pro
I have quotas enabled, file based like yourself. I can check if group and userquotas are in force here:
Bash:
root@laira ~ # mount | grep -E 'quota|usrquota|grpquota'
/dev/md2 on / type ext4 (rw,relatime,quota,usrquota,grpquota)
/dev/md7 on /home type ext4 (rw,relatime,quota,usrquota,grpquota)
Have a look in your
/etc/fstab file and see if quotas are enabled. Here's what mine looks like:
Bash:
# /dev/md/7
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /home ext4 defaults,usrquota,grpquota 0 0
Also check if quotas are on? You can use
sudo quotaon with the correct flags to turn it on for example
quotaon -a to turn on all the quotas listed in your
/etc/fstab
Bash:
root@laira ~ # quotaon -p -a
group quota on / (/dev/md2) is on
user quota on / (/dev/md2) is on
project quota on / (/dev/md2) is off
group quota on /home (/dev/md7) is on
user quota on /home (/dev/md7) is on
project quota on /home (/dev/md7) is off
When I check a user (These were created as a test with a 1GB space: res10 - Reseller , user4 - User) This tells me if the quota I allocated is correct.
Bash:
root@laira ~ # quota -u res10
Disk quotas for user res10 (uid 1012):
Filesystem blocks quota limit grace files quota limit grace
/dev/md7 356 1024000 1126400 37 0 0
root@laira ~ # quota -u user4
Disk quotas for user user4 (uid 1010):
Filesystem blocks quota limit grace files quota limit grace
/dev/md7 835732 1048576 1153433 39 0 0
# mount | grep -E 'quota|usrquota|grpquota'
/dev/mapper/vg0_web01-root on / type ext4 (rw,relatime,quota,usrquota,grpquota,stripe=16)
/dev/mapper/vg0_web01-home on /home type ext4 (rw,relatime,quota,usrquota,grpquota,stripe=16)
# quotaon -a
quotaon: using //aquota.group on /dev/mapper/vg0_web01-root [/]: Device or resource busy
quotaon: using //aquota.user on /dev/mapper/vg0_web01-root [/]: Device or resource busy
quotaon: using . on /dev/mapper/vg0_web01-home [/home]: File exists
quotaon: using . on /dev/mapper/vg0_web01-home [/home]: File exists
/dev/disk/by-id/ / ext4 defaults,usrquota,grpquota 0 1
# /home was on /dev/vg0_web01/home during curtin installation
/dev/disk/by-id/ /home ext4 defaults,usrquota,grpquota 0 1
# quota -u allezake
Disk quotas for user allezake :
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/vg0_web01-home
27974004 31457280 34603008 153021* 30 33 6days