carta
e2scrub_all(8)

e2scrub_all8

Check all mounted ext[234] file systems for errors.

Usage

e2scrub_all [OPTION]

Overview

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

-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

Remove e2scrub snapshots but do not check anything.

-A

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

-V

Print version information and exit.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)

Author

Darrick J. Wong <[email protected]>

From e2fsprogs 1.47.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.