FSCK.EROFS(1) General Commands Manual FSCK.EROFS(1)

# [NAME](#NAME)

fsck.erofs - tool to check an EROFS filesystem's integrity

# [SYNOPSIS](#SYNOPSIS)

**fsck.erofs** \[*OPTIONS*] *IMAGE*

# [DESCRIPTION](#DESCRIPTION)

fsck.erofs is used to scan an EROFS filesystem *IMAGE* and check the integrity of it.

# [OPTIONS](#OPTIONS)

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

Print the version number of fsck.erofs and exit.

[**-d #**](#d)

Specify the level of debugging messages. The default is 2, which shows basic warning messages.

[**-p**](#p)

Print total compression ratio of all files including compressed and non-compressed files.

[**--device=path**](#device=)

Specify an extra blob device to be used together. You may give multiple **--device** options in the correct order.

[**--extract\[=directory\]**](#extract)

Test to extract the whole file system. It scans all inode data, including compressed inode data, which leads to more I/O and CPU load, so it might take a long time depending on the image size.

Optionally extract contents of the *IMAGE* to *directory*.

[**--no-sbcrc**](#no-sbcrc)

Bypass the on-disk superblock checksum verification.

[**--nid=#**](#nid=)

Specify the target inode by its NID for checking or extraction. The default is the root inode.

[**--path=path**](#path=)

Specify the target inode by its path for checking or extraction. If both **--nid** and **--path** are specified, **--path** takes precedence.

**--\[no-]xattrs**

Whether to dump extended attributes during extraction (default off).

[**--xattr-inode-digest**](#xattr-inode-digest)

Verify per-inode digests recorded as extended attributes during image creation with **mkfs.erofs --xattr-inode-digest**.

[**-h**, **--help**](#h)

Display help string and exit.

[**-a**, **-A**, **-y**](#a)

These options do nothing at all; they are provided only for compatibility with the fsck programs of other filesystems.

# [AUTHOR](#AUTHOR)

This version of **fsck.erofs** is written by Daeho Jeong &lt;daehojeong@google.com&gt;.

# [AVAILABILITY](#AVAILABILITY)

**fsck.erofs** is part of erofs-utils package and is available from git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git.

# [SEE ALSO](#SEE_ALSO)

[**fsck**(8)](/man/os/erofs-utils/fsck.8).

---

Document: fsck.erofs(1) from erofs-utils 1.9.4-r1 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/linux/kernel/git/xiang/erofs-utils.git
