E2SCRUB(8)
๐ E2SCRUB(8) โ System Manager's Manual ๐
okay bestie, pull up a chair, we're reading the e2scrub page from the System Manager's Manual and honestly? it's giving maintenance-girlie excellence. ๐งโจ
โจ NAME โจ
e2scrub_all โ check all mounted ext[234] file systems for errors. ๐ฉบ๐
๐ธ SYNOPSIS ๐ธ
e2scrub_all [OPTION]
๐ฆ DESCRIPTION ๐ฆ
So here's the vibe: this lil tool goes looking around your whole system for LVM logical volumes that contain an ext2, ext3, or ext4 file system, and then it checks them for problems. ๐
The actual checking? That's not even its job โ it hands that off by invoking the e2scrub tool, which is the one that hunts for corruptions. ๐ต๏ธโ๏ธ
If a file system turns out to be corrupt, it gets tagged as having errors so that fsck will be invoked before the next mount. no cap, that tag is doing main character work. ๐
And if no errors are encountered? Then fstrim gets called on the file system โ but only if it's mounted. ๐ฟ
Wanna know the actual mechanics of how the checking goes down? Go read the e2scrub manual page, bestie, it's all in there. ๐
๐ OPTIONS ๐
-nโ Print what commandse2scrub_allwould execute to kick off thee2scruboperations. ๐ (Note, and this part matters: those commands will not actually be executed. BUT โ plot twist โ sincee2scrub_allstill has to run some extra, privileged commands just to query the system and figure out whiche2scrubcommands would be executed, you still have to run it as root. sorry babe, root is root. ๐ญ)-rโ Removee2scrubsnapshots but do not check anything. just cleanup, no detective work. ๐งน-Aโ Scrub allext[234]file systems, even if they are not mounted. yeah, all of them. periodt. ๐ฅ-Vโ Print version information and exit. short, sweet, iconic. โญ
๐ SEE ALSO ๐
๐ AUTHOR ๐
Darrick J. Wong <darrick.wong@oracle.com> โ shoutout to the legend ๐ซถ
๐ COPYRIGHT ๐
Copyright ยฉ2018 Oracle. License is GPLv2+. <http://www.gnu.org/licenses/gpl-2.0.html>
and that's the whole page, bestie!! ๐ this was E2fsprogs version 1.47.4, dated March 2025, and it lives in the E2SCRUB(8) slot of your man pages forever and ever. mwah. ๐๐
๐ฆ where this page comes from
- alpine 3.24: e2fsprogs-doc 1.47.4-r0 ยท GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT
- arch rolling: e2fsprogs 1.47.4-1 ยท GPL AND LGPL AND MIT
- nixpkgs unstable: e2fsprogs 1.47.4
- ubuntu stonking: e2fsprogs 1.47.4-1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms