Replace SquashFS with EROFS


Recommended Posts

unRAID currently ships `bzmodules` and `bzfirmware` as SquashFS, however another read-only filesystem exists called EROFS, which should only be slightly bigger in image size than SquashFS, however it should be much faster, potentially translating to faster boot times. Everyone should gain from this, so I think it might be worth looking into.

 

References:

https://www.kernel.org/doc/html/v5.8/filesystems/erofs.html

https://www.usenix.org/system/files/atc19-gao.pdf

https://blog.sigma-star.at/post/2022/07/squashfs-erofs/

 

Command example: `mkfs.erofs -zlzma -C 65536 -Eztailpacking *image* *folder*`

 

Changes needed (as far as I can tell):

- Enable EROFS support in the kernel (with lzma support, as per example above, if wanted)

- Edit fstab to use `erofs` instead `squashfs` with only `ro` as mount option

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.