E2SCRUB(8) System Manager's Manual E2SCRUB(8)

# [NAME](#NAME)

e2scrub\_all - check all mounted ext\[234] file systems for errors.

# [SYNOPSIS](#SYNOPSIS)

**e2scrub\_all \[OPTION]**

# [DESCRIPTION](#DESCRIPTION)

Searches the system for all LVM logical volumes containing an ext2, ext3, or ext4 file system, and checks them for problems. The checking is performed by invoking the **e2scrub** tool, which will look for corruptions. Corrupt file systems will be tagged as having errors so that fsck will be invoked before the next mount. If no errors are encountered, **fstrim** will be called on the file system if it is mounted. See the **e2scrub** manual page for more information about how the checking is performed.

# [OPTIONS](#OPTIONS)

[**-n**](#n)

Print what commands **e2scrub\_all** would execute to initiate the e2scrub operations. (Note: these commands will not actually be executed; however, since **e2scrub\_all** needs to run some additional, privileged commands to query the system to determine which **e2scrub** commands would be executed, it still needs to be run as root.)

[**-r**](#r)

Remove e2scrub snapshots but do not check anything.

[**-A**](#A)

Scrub all ext\[234] file systems even if they are not mounted.

[**-V**](#V)

Print version information and exit.

# [SEE ALSO](#SEE_ALSO)

[**e2scrub**(8)](/man/os/e2fsprogs/e2scrub.8)

# [AUTHOR](#AUTHOR)

Darrick J. Wong &lt;darrick.wong@oracle.com&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright ©2018 Oracle. License is GPLv2+. &lt;http://www.gnu.org/licenses/gpl-2.0.html&gt;

March 2025 E2fsprogs version 1.47.4

---

Document: e2scrub_all(8) from e2fsprogs 1.47.4-r3 (Chainguard OS)
Source: https://github.com/tytso/e2fsprogs
