Question
How do I enable quotas on UEFI systems?
Answer
If you have attempted to enable quotas following the guides listed under "Additional Resources" with no success, then it likely means you have a system that utilizes UEFI firmware.
-
Run the following command as root to verify that the server is a UEFI System.
# [ -d '/sys/firmware/efi/' ] && echo "UEFI System" || echo "Standard BIOS System"
-
Create a backup of your EFI grub configuration.
# cp -avx /boot/efi/EFI/centos/grub.cfg /boot/efi/EFI/centos/grub.cfg.$(date +%s)
-
Rebuild the Grub configuration
# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
-
Confirm that quotas show as enabled in the new configuration using the following command.
# grep quota /boot/efi/EFI/centos/grub.cfg
If quotas are configured, the output of the above command should be similar to the following.
CONFIG_TEXT: linux /vmlinuz root=UUID=bc7453b1 ro rd.auto crashkernel=auto vga=normal nomodeset rdloaddriver=raid1 rootflags=uquota
linux /vmlinu root=UUID=bc7453b1 ro rd.auto crashkernel=auto vga=normal nomodeset rdloaddriver=raid1 rootflags=uquota - Reboot the server.
Comments
0 comments
Article is closed for comments.