How To Install e2scrub on Fedora 34
Introduction
In this tutorial we learn how to install e2scrub
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install e2scrub.
Install e2scrub on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install e2scrub
using dnf
by running the following command:
sudo dnf -y install e2scrub
Install e2scrub on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the e2scrub
package we can use the following command:
sudo dnf remove e2scrub
e2scrub Package Contents on Fedora 34
/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 34 using yum and dnf.