f2fs for dietpi

What do you think about it, if we change the default filesystem of dietpi? Currently it is installed by default on Google Pixel 3 and since Kernel 4.19 they improved the performance especially if you use Database

Many thanks for your suggestion.

Also BTRFS has been improved with later kernel and supports swap files then, not sure if it was kernel 4.19 or 5.X though.

But for now we will leave it as shipped by the pre-images, especially since different SBCs come with different kernel versions, so it’s easier to stay with the most compatible file system.

If we’d do the change, then per-SBC and it requires that we change our image creation procedure to now use pre-installed images but create them from scratch. This is a larger tasks that I aim to start testing the next months.

I wonder if BTRFS as the main partition on the sd card would be better than ext4…

(well it would need the kernel to support BTRFS out of the box, not sure if it does)

Btrfs has many good features. Copy-on-Write, snapshots, extensive checksums, scrubbing, duplication, > self-healing data> , and many more useful improvements ensure data integrity. Btrfs lacks the RAID-Z features of ZFS, so RAID is still in the experimental state with Btrfs. However, for pure data storage, Btrfs is the winner over Ext4, but time will tell.


Big disadvantage if you use snapshots you normally doesn’t see the real free space, only with btrfs tools. Also you must control your free space and don’t feel over 70%, else you will crash the system. Raid is also a problem
I don’t know if that is a good idea for beginners.