man > e2scrub(8)

๐Ÿ“ NAME

e2scrub โ€” check the contents of a mounted ext[234] file system

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ” Check file system on LVM logical volume e2scrub /dev/vg/lv Snapshot the LV and run metadata integrity check on the snapshot
๐Ÿ“‹ Dry-run (show what would be done) e2scrub -n /dev/vg/lv Print commands that would be executed without actually running them
๐Ÿงน Check and trim if no errors found e2scrub -t /dev/vg/lv Run fstrim automatically after a clean check
๐Ÿ—‘๏ธ Remove a leftover snapshot e2scrub -r /dev/vg/lv Remove the .e2scrub snapshot and exit immediately
โ„น๏ธ Show version e2scrub -V Print version information and exit

๐Ÿ“‹ SYNOPSIS

e2scrub [OPTION] MOUNTPOINT | DEVICE

๐Ÿ“– DESCRIPTION

e2scrub attempts to check (but not repair) all metadata in a mounted ext[234] file system if the file system resides on an LVM logical volume. The block device of the LVM logical volume can also be passed in.

This program snapshots the volume and runs a file system check on the snapshot to look for corruption errors. The LVM volume group must have at least 256โ€ฏMiB of unallocated space to dedicate to the snapshot or the logical volume will be skipped. The snapshot will be named lvname.e2scrub and udev will not create symbolic links to it under /dev/disk. Every attempt will be made to remove the snapshots prior to running e2scrub, but in a dire situation it may be necessary to remove the snapshot manually.

If no errors are found, fstrim can be called on the file system if it is mounted. If errors are found, the file system will be marked as having errors. The file system should be taken offline and e2fsck run as soon as possible, because e2scrub does not fix corruptions. If the file system is not repaired, e2fsck will be run before the next mount.

โš™๏ธ OPTIONS

EXIT CODE

The exit codes are the same as in e2fsck(8).

๐Ÿ”— SEE ALSO

e2fsck(8)

๐Ÿ‘ค AUTHOR

Darrick J. Wong <darrick.wong AT oracle.com>

ยฉ๏ธ COPYRIGHT

Copyright ยฉ 2018 Oracle. License is GPLv2+. <http://www.gnu.org/licenses/gpl-2.0.html>


E2fsprogs version 1.46.5 โ€” December 2021
e2scrub(8)
๐Ÿ“ NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ OPTIONS EXIT CODE ๐Ÿ”— SEE ALSO ๐Ÿ‘ค AUTHOR ยฉ๏ธ COPYRIGHT

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-02 02:49 @216.73.217.9
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format