Disk quota plugin error

I can’t enable disk quota. my os is Ubuntu 24.04. during the fresh installation i got an error that it wasn’t enabled, now from panel when i try to enable the plugin i get “Installing required kernel modules for quota support…”
during fresh installation:

quotaon: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated. quotaon: using //aquota.group on /dev/sda1 [/]: No such process quotaon: Quota format not supported in kernel. quotaon: using //aquota.user on /dev/sda1 [/]: No such process quotaon: Quota format not supported in kernel. Error: quota can't be enabled in /

when i try to enable from panel i get “Installing required kernel modules for quota support…”
is there any way to fix this for per user quota ?

Show the output of these commands:

find "/lib/modules/$(uname -r)" -type f -name '*quota_v*.ko*'
dpkg -l | grep -E '^ii\s*quota'
grep -Ev '^$|^#' /etc/fstab
root@server:/home# find “/lib/modules/$(uname -r)” -type f -name ‘quota_v.ko*’
dpkg -l | grep -E ‘^ii\s*quota’
grep -Ev ‘^$|^#’ /etc/fstab
ii  quota                                 4.06-1build6                             arm64        disk quota management tools
LABEL=cloudimg-rootfs / ext4 defaults,noatime,discard,commit=30,errors=remount-ro,usrquota,grpquota,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
LABEL=BOOT      /boot   ext4    defaults        0 2
LABEL=UEFI      /boot/efi       vfat    umask=0077      0 1

You don’t have the quota modules.

Try to install them and show the output:

apt update
apt install linux-image-extra-virtual
find "/lib/modules/$(uname -r)" -type f -name 'quota_v.ko*'

Fetched 1013 kB in 2s (653 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
11 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@server:/home# apt install linux-image-extra-virtual
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-image-extra-virtual is already the newest version (6.8.0-87.88).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
root@server:/home# find "/lib/modules/$(uname -r)" -type f -name 'quota_v.ko*'
root@server:/home#


the module still not there and no new packages installed

root@server:/home# ls /lib/modules/$(uname -r)/kernel/fs/quota/
ls: cannot access '/lib/modules/6.14.0-1016-oracle/kernel/fs/quota/': No such file or directory
root@server:/home# grep QUOTA /boot/config-$(uname -r)
CONFIG_NFT_QUOTA=m
CONFIG_NETFILTER_XT_MATCH_QUOTA=m
CONFIG_XFS_QUOTA=y
CONFIG_BCACHEFS_QUOTA=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=m
CONFIG_QUOTACTL=y
CONFIG_TMPFS_QUOTA=y

I see you are using a specific kernel from Oracle, check whether an extra package for that kernel provides the modules.

apt install apt-file
apt-file update
apt-file search -x '6.14.0-1016-oracle.*quota_v.*.ko'

It should be a package with this name (or similar) linux-modules-extra-6.14.0-1016-oracle

yes, it’s an oracle image

root@server:/home/ai# apt-file search -x '6.14.0-1016-oracle.*quota_v.*.ko'
linux-modules-extra-6.14.0-1016-oracle: /lib/modules/6.14.0-1016-oracle/kernel/fs/quota/quota_v1.ko.zst
linux-modules-extra-6.14.0-1016-oracle: /lib/modules/6.14.0-1016-oracle/kernel/fs/quota/quota_v2.ko.zst
linux-modules-extra-6.14.0-1016-oracle-64k: /lib/modules/6.14.0-1016-oracle-64k/kernel/fs/quota/quota_v1.ko.zst
linux-modules-extra-6.14.0-1016-oracle-64k: /lib/modules/6.14.0-1016-oracle-64k/kernel/fs/quota/quota_v2.ko.zst

Then install the right package and you should be able to use quotas:

apt install linux-modules-extra-6.14.0-1016-oracle
1 Like

it worked. thank you

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.