fsck.erofs1
Tool to check an erofs filesystem's integrity
Usage
fsck.erofs [OPTIONS]
IMAGE
Overview
fsck.erofs is used to scan an EROFS filesystem IMAGE and check the integrity of it.
Options
-
-V, --version -
Print the version number of fsck.erofs and exit.
-
-d # -
Specify the level of debugging messages. The default is 2, which shows basic warning messages.
-
-p -
Print total compression ratio of all files including compressed and non-compressed files.
-
--device=path -
Specify an extra blob device to be used together. You may give multiple
--deviceoptions in the correct order.
-
--extract[=directory] -
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 -
Bypass the on-disk superblock checksum verification.
-
--nid=# -
Specify the target inode by its NID for checking or extraction. The default is the root inode.
-
--path=path -
Specify the target inode by its path for checking or extraction. If both
--nidand--pathare specified,--pathtakes precedence.
--[no-]xattrs-
Whether to dump extended attributes during extraction (default off).
-
--xattr-inode-digest -
Verify per-inode digests recorded as extended attributes during image creation with mkfs.erofs --xattr-inode-digest.
-
-h, --help -
Display help string and exit.
-
-a, -A, -y -
These options do nothing at all; they are provided only for compatibility with the fsck programs of other filesystems.
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.
--nid since Arch Linux 2026-11-01;
--no-sbcrc since Arch Linux 2026-11-01;
--path since Arch Linux 2026-11-01;
--version since Debian 13 (Trixie);
--xattr-inode-digest since Arch Linux 2026-11-01;
-A since Debian 13 (Trixie);
-a since Debian 13 (Trixie);
-h since Debian 13 (Trixie);
-y since Debian 13 (Trixie).