Centos: Get a newer version of e2fsck

I got an error about e2fsck version. In my case the issue happened in Centos7, when I try to expand the disk of my VM in Cloudmin.

You will hit an error with your e2fsck version. You will need to download the latest source binary of e2fsprogs from your OS distributor and install it.

[ 17.0] Resizing (using virt-resize) to expand the disk to 8.0G
virt-resize: error: libguestfs error: resize2fs: e2fsck 1.42.9
(24-Dec-2024)
/dev/sda1 has unsupported feature(s): metadata_csum
e2fsck: Get a newer version of e2fsck!

Install newer version of e2fsck in CentOS 7

To install it from on CentOS 7. You will also need to install libguestfs-xfs on CentOS 7 to handle XFS file system with virt-builder utility. Otherwise you will hit below error. Get a newer version of e2fsck for virt-resize

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com