1E2SCRUB(8) System Manager's Manual E2SCRUB(8)
2
3
4
6 e2scrub - check the contents of a mounted ext[234] file system
7
9 e2scrub [OPTION] MOUNTPOINT | DEVICE
10
12 e2scrub attempts to check (but not repair) all metadata in a mounted
13 ext[234] file system if the file system resides on an LVM logical vol‐
14 ume. The block device of the LVM logical volume can also be passed in.
15
16 This program snapshots the volume and runs a file system check on the
17 snapshot to look for corruption errors. The LVM volume group must have
18 at least 256MiB of unallocated space to dedicate to the snapshot or the
19 logical volume will be skipped. The snapshot will be named lv‐
20 name.e2scrub and udev will not create symbolic links to it under
21 /dev/disk. Every attempt will be made to remove the snapshots prior to
22 running e2scrub, but in a dire situation it may be necessary to remove
23 the snapshot manually.
24
25 If no errors are found, fstrim can be called on the file system if it
26 is mounted. If errors are found, the file system will be marked as
27 having errors. The file system should be taken offline and e2fsck run
28 as soon as possible, because e2scrub does not fix corruptions. If the
29 file system is not repaired, e2fsck will be run before the next mount.
30
32 -n Print what commands e2scrub would execute to check the file sys‐
33 tem. (Note: the commands will not actually be executed; how‐
34 ever, since e2scrub needs to run some commands to query the sys‐
35 tem to determine what commands would be executed, it still needs
36 to be run as root.)
37
38 -r Remove the e2scrub snapshot and exit without checking anything.
39
40 -t Run fstrim(1) on the mounted file system if no errors are found.
41
42 -V Print version information and exit.
43
45 The exit codes are the same as in e2fsck(8)
46
48 e2fsck(8)
49
51 Darrick J. Wong <darrick.wong@oracle.com>
52
54 Copyright ©2018 Oracle. License is GPLv2+. <http://www.gnu.org/li‐
55 censes/gpl-2.0.html>
56
57
58
59E2fsprogs version 1.46.5 December 2021 E2SCRUB(8)