Move DuetPi image to f2fs?



  • Hi,
    Please consider offering the DuetPi image using f2fs rather than ext4. It's a filesystem written for use on SD cards and is much more resilient to power loss and sd card style faults. More info at https://www.kernel.org/doc/html/v5.7/filesystems/f2fs.html



  • +2 (me and my imagninary friend; because post had to be longer than just +1)



  • +1 (my imaginary friend ran away 😞 )


  • administrators

    For the moment we're following Raspbian and their choice is ext4. From my experience ext4 is a mature FS and I haven't had a single corrumption with it since I started using it years ago (including Pi setups). So there are no plans to move over to F2FS in near future.

    Only if there are significant benefits compared to ext4, we'll consider changing it. But in any case feel free to give it a try and report back if you see improvements compared to ext4.



  • @chrishamm said in Move DuetPi image to f2fs?:

    For the moment we're following Raspbian and their choice is ext4. From my experience ext4 is a mature FS and I haven't had a single corrumption with it since I started using it years ago (including Pi setups). So there are no plans to move over to F2FS in near future.

    Only if there are significant benefits compared to ext4, we'll consider changing it. But in any case feel free to give it a try and report back if you see improvements compared to ext4.

    I think the fact there is a large amount of people having provable issues with the Duet-3 when used in conjunction with a SBC is a use case in itself.

    And if being more resilient to power loss and resisting SD card faults is not a "significant" benefit I dont know what is......

    Sometimes we are seeing change for change sake and in this case we are seeing stubbornness



  • @chrishamm it's well documented that ext4 is not suitable for sd cards, and I know many cases from various users where power events corrupted an ext4 filesystem beyond recovery on an SD card -- Raspberry Pi or no.

    I did link to the official documentation for F2FS which is a mainline kernel file system (since 2012), which outlines the advantages of it on flash based storage. F2FS also had time to mature over the last couple years.

    According to my reading, F2FS does not suffer from performance degradation over time on SD cards like ext4 does. That alone would be an advantage in my opinion.

    Raspbian has put out an f2fs based image this year (see https://www.raspberrypi.org/forums/viewtopic.php?t=273490), and it seems the results were performance neutral at worst in some initial testing.

    I understand that you are currently not looking into providing a DuetPi image based on f2fs. I'll convert mine and see how it fares.



  • From a different post: The cvt2f2fs script will convert a Raspian ext4 filesystem on an SD card to F2FS.

    https://www.raspberrypi.org/forums/viewtopic.php?t=47769&p=1285848#p1285848



  • Thanks, I am aware (-:


Log in to reply