MOUNT.EROFS(8)
π MOUNT.EROFS β the manual page, but make it slay π
okay bestie, sit down, hydrate, because we're about to talk about mount.erofs, a System Manager's Manual entry, section 8. she's part of erofs-utils and she's lowkey the most put-together tool in the whole friend group. π
β¨ NAME β¨
mount.erofs β manage EROFS filesystem
πΈ SYNOPSIS πΈ
mount.erofs [OPTIONS] SOURCE MOUNTPOINT
mount.erofs -u TARGET
mount.erofs --reattach TARGET
π¦ DESCRIPTION π¦
So. EROFS is an enhanced lightweight read-only filesystem with modern designs for scenarios that need high-performance read-only requirements. she's the girl who shows up, does the job, and doesn't need a whole personality crisis about it. π
mount.erofs is what you use to mount an EROFS filesystem from SOURCE (which can be an image file or a block device, she doesn't judge) onto a MOUNTPOINT. and the way that she supports multiple backends?? direct kernel mount, FUSE-based mount, and NBD (Network Block Device) for remote sources like OCI images. versatility, periodt. β¨
π OPTIONS π
-h,--helpβ display help message and exit. bestie just tells you what's up.-V,--versionβ display version information and exit. her little introduction moment.-ooptions β comma-separated list of mount options. see MOUNT OPTIONS below, i gotchu. π-ttype[.subtype] β specify the filesystem type and optional subtype. the type should beerofs. available subtypes are:fuseβ use FUSE-based mount viaerofsfuse.localβ force direct kernel mount (default if available).nbdβ use NBD backend for remote sources (e.g., OCI images).
-uβ unmount the filesystem at the specified target.--reattachβ reattach to an existing NBD device and restart the NBD service.
π MOUNT OPTIONS π
Standard mount options, the classics, the icons:
roβ mount the filesystem read-only (default).rwβ mount the filesystem read-write (not supported for EROFS).nosuidβ do not honor set-user-ID and set-group-ID bits.suidβ honor set-user-ID and set-group-ID bits (default).nodevβ do not interpret character or block special devices.devβ interpret character or block special devices (default).noexecβ do not allow direct execution of any binaries.execβ allow execution of binaries (default).noatimeβ do not update inode access times.atimeβ update inode access times (default).nodiratimeβ do not update directory inode access times.diratimeβ update directory inode access times (default).relatimeβ update inode access times relative to modify or change time.norelatimeβ do not use relative atime updates.
π OCI-SPECIFIC OPTIONS π
the following OCI-specific options are available (yes queen, containers too):
oci.blob=digest β specify the OCI blob digest to mount. the digest should be in the formatsha256:..... cannot be used together withoci.layer. pick a lane bestie πoci.layer=index β specify the OCI layer index to mount (0-based). cannot be used together withoci.blob. same energy, opposite direction.oci.platform=platform β specify the target platform (default:linux/amd64).oci.username=username β username for OCI registry authentication.oci.password=password β password for OCI registry authentication.oci.tarindex=path β path to a tarball index file for hybrid tar+OCI mode.oci.zinfo=path β path to a gzip zinfo file for random access to gzip-compressed tar layers.oci.insecureβ use HTTP instead of HTTPS to access the image registry. π
π NOTES π
- EROFS filesystems are read-only by nature. the
rwoption will be ignored. she said no and she meant it. π«Ά - When mounting OCI images via NBD, the mount process creates a background daemon to serve the NBD device. the daemon will automatically clean up when the filesystem is unmounted. self-sufficient queen, no notes. π
- The
--reattachoption is useful for recovering NBD mounts after a system crash or when the NBD daemon was terminated unexpectedly. she's giving resilience, she's giving comeback era. β¨ - Kernel direct mount is used when mounting a regular file without specifying a backend type. if file-based mounts is unsupported, loop devices will be set up automatically.
fr fr, read these notes before you come crying to the group chat. π
π§ SEE ALSO π§
mkfs.erofs(1), erofsfuse(1), dump.erofs(1), fsck.erofs(1), mount(8), umount(8)
β AVAILABILITY β
mount.erofs is part of erofs-utils.
and that's the whole page, bestie!! π mount.erofs, section 8 of the System Manager's Manual, shipped as part of erofs-utils β go mount something read-only and be iconic about it. πβ¨π¦
π¦ where this page comes from
- alpine 3.24: erofs-utils-doc 1.9.1-r0 Β· GPL-2.0-or-later
- 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.1-1.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-only OR Apache-2.0) AND (GPL-2.0-or-later OR Apache-2.0) AND (GPL-2.0-only OR BSD-2-Clause) AND (GPL-2.0-or-later OR BSD-2-Clause) 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
- nixos 26.05: erofs-utils 1.9.1
- Copyright (c) 2025 Chengyu Zhu <hudsonzhu@tencent.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms