Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Move DuetPi image to f2fs?

    Scheduled Pinned Locked Moved
    DSF Development
    6
    8
    474
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oliofundefined
      oliof
      last edited by

      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

      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

      1 Reply Last reply Reply Quote 4
      • A Former User?
        A Former User
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk
          last edited by

          +1 (my imaginary friend ran away 😞 )

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators
            last edited by

            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.

            Duet software engineer

            A Former User? 1 Reply Last reply Reply Quote 1
            • A Former User?
              A Former User @chrishamm
              last edited by A Former User

              @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

              1 Reply Last reply Reply Quote 0
              • oliofundefined
                oliof
                last edited by

                @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.

                <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                1 Reply Last reply Reply Quote 3
                • Stephen6309undefined
                  Stephen6309
                  last edited by Stephen6309

                  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

                  1 Reply Last reply Reply Quote 1
                  • oliofundefined
                    oliof
                    last edited by

                    Thanks, I am aware (-:

                    <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA