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 commands e2scrub_all would execute to kick off the e2scrub operations. ๐Ÿ‘€ (Note, and this part matters: those commands will not actually be executed. BUT โ€” plot twist โ€” since e2scrub_all still has to run some extra, privileged commands just to query the system and figure out which e2scrub commands would be executed, you still have to run it as root. sorry babe, root is root. ๐Ÿ˜ญ)
  • -r โ€” Remove e2scrub snapshots but do not check anything. just cleanup, no detective work. ๐Ÿงน
  • -A โ€” Scrub all ext[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 ยฉ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