2025-03-14 21:59:59 -06:00
|
|
|
# mkfs.erofs
|
|
|
|
|
|
|
|
|
|
> Create an EROFS filesystem in an image.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/mkfs.erofs>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create an EROFS filesystem based on the root directory:
|
|
|
|
|
|
|
|
|
|
`mkfs.erofs image.erofs root/`
|
|
|
|
|
|
|
|
|
|
- Create an EROFS image with a specific UUID:
|
|
|
|
|
|
|
|
|
|
`mkfs.erofs -U {{UUID}} image.erofs root/`
|
|
|
|
|
|
|
|
|
|
- Create a compressed EROFS image:
|
|
|
|
|
|
|
|
|
|
`mkfs.erofs -zlz4hc image.erofs root/`
|
|
|
|
|
|
|
|
|
|
- Create an EROFS image where all files are owned by root:
|
|
|
|
|
|
|
|
|
|
`mkfs.erofs --all-root image.erofs root/`
|