FSCK.EROFS(1)
π FSCK.EROFS(1) π
okay so bestie, welcome to the General Commands Manual, section 1, where we're talking about fsck.erofs β yes that's the actual command name, no I will not be abbreviating it, it's iconic and it knows it. π
β¨ NAME β¨
fsck.erofs β the tool that checks an EROFS filesystem's integrity. it's literally the vibe check for your filesystem, no cap. π¦
β¨ SYNOPSIS β¨
fsck.erofs [OPTIONS] IMAGE
that's it. that's the whole summoning ritual. OPTIONS go in the front, your IMAGE goes in the back, and the fsck does its thing. π
β¨ DESCRIPTION β¨
so what does fsck.erofs actually do? it scans an EROFS filesystem IMAGE and checks the integrity of it. that's the whole job. it looks at your image, it's like "hmm let me see", and it tells you if everything's chill or not. main character energy honestly. π
β¨ OPTIONS β¨
here's where it gets juicy. every single one, in order, no skips:
-V,--versionβ prints the version number offsck.erofsand then exits. like "hi, here's who I am, bye". π-d #β sets the level of debugging messages. the default is2, which shows you basic warning messages. turn it up if you want the tea, turn it down if you want peace. π₯-pβ prints the total compression ratio of all files, including both the compressed and the non-compressed ones. receipts for your compression. β¨--device=pathβ specify an extra blob device to be used together with your image. and listen, you can give multiple--deviceoptions, but they have to be in the correct order. order matters bestie, don't play. π--extract[=directory]β tests by extracting the whole file system. it scans all inode data, including compressed inode data, which means more I/O and more CPU load, so depending on how big your image is, this might take a long time. π
optionally, it'll extract the contents of the IMAGE to directory. so --extract alone is just the test, --extract=somewhere actually drops the files there. π«Ά
--no-sbcrcβ bypasses the on-disk superblock checksum verification. like skipping the bouncer at the door. sometimes you gotta. π--nid=#β specify the target inode by its NID, for checking or for extraction. the default target is the root inode. β--path=pathβ specify the target inode by its path, for checking or for extraction. and heads up: if you specify both--nidand--path, then--pathtakes precedence. path wins, always, periodt. π--[no-]xattrsβ whether to dump extended attributes during extraction. this is default off, so don't come for me when your xattrs aren't there. πΈ--xattr-inode-digestβ verifies the per-inode digests that get recorded as extended attributes during image creation withmkfs.erofs --xattr-inode-digest. it's giving detective work. π§-h,--helpβ displays the help string and exits. the classic. π-a,-A,-yβ okay so real talk: these options do nothing at all. zero. nada. they're provided only for compatibility with thefsckprograms of other filesystems. they're here for the vibes and the vibes alone. π
lowkey important: --extract is the one that'll eat your time and your CPU. it scans everything, including compressed inode data. more I/O, more load, potentially a very long wait depending on image size. plan accordingly bestie. β³
β¨ AUTHOR β¨
this version of fsck.erofs was written by Daeho Jeong <daehojeong@google.com>. absolute legend, we stan. π
β¨ AVAILABILITY β¨
fsck.erofs is part of the erofs-utils package and is available from:
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git
go get it, it's free, it's open, it's iconic. π
β¨ SEE ALSO β¨
fsck(8)β the og. the blueprint. iykyk. π
okay that's the whole page bestie, we did it, we made it to the end π this was the FSCK.EROFS(1) manual page from the General Commands Manual (section 1), part of the erofs-utils package β love that for us. now go check your filesystem's integrity, you deserve it. π¦β¨π
π¦ where this page comes from
- arch rolling: erofs-utils 1.9.4-1 Β· Apache-2.0 AND GPL-2.0-or-later
- fedora 43: erofs-utils 1.9.4-1.fc43 Β· GPL-2.0-only AND (BSD-2-Clause OR GPL-2.0-only) AND (BSD-2-Clause OR GPL-2.0-or-later) AND (GPL-2.0-or-later OR MIT) AND MIT AND Unlicense
- fedora 44: erofs-utils 1.9.4-1.fc44 Β· GPL-2.0-only AND (BSD-2-Clause OR GPL-2.0-only) AND (BSD-2-Clause OR GPL-2.0-or-later) AND (GPL-2.0-or-later OR MIT) AND MIT AND Unlicense
- nixpkgs unstable: erofs-utils 1.9.4
- ubuntu stonking: erofs-utils 1.9.4-1 Β· GPL-2.0-or-later OR MIT
- Copyright (c) 2021 Daeho Jeong <daehojeong@google.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms