F2FS in Home Assistant Operating System

F2FS is reportedly easier on SD cards than ext4 resulting in extended lifetime. The change would, AFAIK, involve:

  • Enabling F2FS in the kernel config file
  • Adding f2fs-tools to the base install (mkfs.f2fs, resize.f2fs, fsck.f2fs).
  • Reworking automatic fs growth as systemd-growfs doesn’t seem to support F2FS

I second this.

F2fs has two advantages over EXT4, at least on SD cards:

  • it is a log-based filesystem so all writes are on new sectors.
  • it supports realtime compression. This could greatly increase read- and writespeeds, since less data has to be moved to and from the SD card. Note that the squash-fs part of Homeassistant is already using this.

However there is/was an issue with f2fs: filesystem resize does not work.
That is a problem for the initial installation when the card is resized to fit the disk.