How To Install e2scrub on Fedora 36

In this tutorial we learn how to install e2scrub in Fedora 36. e2scrub is Online Ext4 metadata consistency checking tool and service

Introduction

In this tutorial we learn how to install e2scrub on Fedora 36.

What is e2scrub

This package includes e2scrub script that can check ext[234] file system metadata consistency while the file system is online. It also containes a systemd service that can be enabled to do consistency check periodically. The file system consistency check can be performed online and does not require the file system to be unmounted. It uses lvm snapshots to do this which means that it can only be done on file systems that are on a lvm managed device with some free space available in respective volume group.

We can use yum or dnf to install e2scrub on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install e2scrub.

Install e2scrub on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install e2scrub using dnf by running the following command:

sudo dnf -y install e2scrub

Install e2scrub on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install e2scrub using yum by running the following command:

sudo yum -y install e2scrub

How To Uninstall e2scrub on Fedora 36

To uninstall only the e2scrub package we can use the following command:

sudo dnf remove e2scrub

e2scrub Package Contents on Fedora 36

/etc/e2scrub.conf
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/e2scrub_all.service
/usr/lib/systemd/system/e2scrub_all.timer
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/e2scrub_reap.service
/usr/lib/udev/rules.d/96-e2scrub.rules
/usr/lib64/e2fsprogs/e2scrub_fail
/usr/sbin/e2scrub
/usr/sbin/e2scrub_all
/usr/share/man/man8/e2scrub.8.gz
/usr/share/man/man8/e2scrub_all.8.gz

References

Summary

In this tutorial we learn how to install e2scrub on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).