Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Raspberry Pi SD Card wear out?

Raspberry Pi SD Card wear out?

Scheduled Pinned Locked Moved Hardware
29 Posts 14 Posters 10.6k Views 12 Watching
  • 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.
  • N napo7

    @gohan If you are using dietPi, you just have to run the command "dietpi-drive-manager" (sorry not sure of exact spelling, I'm not near a dietpi !)
    Then, you'll have a menu that will allow you to choose per-partition read only or read-write.

    @dbemowsk That's a good point to avoir SD wear-out, but it didn't avoided me the corrupted ext4 partition on a power-fail.
    That's why I did choose to set the root partition as RO, so I'm sure the system will not hang at startup because of "partition not clean, cannot mount it" ;)

    dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #17

    @napo7 corrupted ext4 on what? the SD card or the HDD? If it is just a corrupted sd card, all you need to do is create another one and point it to the HDD for boot and you should not loose anything. If it is an ext4 on the HDD that is corrupted from a power failure, there are ways of repairing it e.g. fsck.

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    1 Reply Last reply
    0
    • N Offline
      N Offline
      napo7
      Hardware Contributor
      wrote on last edited by
      #18

      Yes, I know that fsck repair the partition, but it's not really convenient to run a fsck at 4' AM because the server has crashed and doesn't want to startup because of corrupted FS ;)

      dbemowskD gohanG 2 Replies Last reply
      0
      • N napo7

        Yes, I know that fsck repair the partition, but it's not really convenient to run a fsck at 4' AM because the server has crashed and doesn't want to startup because of corrupted FS ;)

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #19

        @napo7 That is true with any server. So if you want to prevent those things from happening when there is a power failure, you put a UPS on it. Otherwise you live with the FSCK option. Simple math.

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        1 Reply Last reply
        1
        • N napo7

          Yes, I know that fsck repair the partition, but it's not really convenient to run a fsck at 4' AM because the server has crashed and doesn't want to startup because of corrupted FS ;)

          gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #20

          @napo7 https://www.aliexpress.com/item/10W-3-7V-4-2V-Charger-5V-6V-9V-12V-Discharger-Board-DC-DC-Converter-Boost/32816412117.html

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #21

            Has anyone looked at using f2fs? Support is supposedly available for Raspberry pi now. It's on my list of things to investigate, but I haven't gotten aroud to it yet.

            Guide: http://whitehorseplanet.org/gate/topics/documentation/public/howto_ext4_to_f2fs_root_partition_raspi.html

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vikasjee
              wrote on last edited by
              #22

              Try using Berryboot on SD card with a USB /pen drive. It will help in SD card wear out and power out cases. I am running multiple Raspis with multi boot option on Berryboot (added advantage ) for the last 2+years. Not much of a problem till date. Lots of power outages here... No UPS support!

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #23

                Do you mean to have all the operating system on the USB drive?

                V 1 Reply Last reply
                0
                • gohanG gohan

                  Do you mean to have all the operating system on the USB drive?

                  V Offline
                  V Offline
                  vikasjee
                  wrote on last edited by
                  #24

                  @gohan Yes!

                  1 Reply Last reply
                  0
                  • gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #25

                    BTW, I noticed dietpi already has a 460MB tempfs mounted as /tmp so I changed domoticz script to use that for log and it is working

                    1 Reply Last reply
                    2
                    • Nca78N Offline
                      Nca78N Offline
                      Nca78
                      Hardware Contributor
                      wrote on last edited by
                      #26

                      After a failure with a cheap sd card, I've been running Domoticz for around 3 years on a Sandisk SD card with strictly no change to file system/partitions/..., I've probably had around 100 power cuts during that time (it's Vietnam...) and everything is still fine.
                      I think it's related to the fact that's it's a Pi 1 Model B, so it's still using SD card and not micro SD, I'll soon move to a Pi3 so it might not end up with the same experience :)

                      1 Reply Last reply
                      1
                      • gohanG Offline
                        gohanG Offline
                        gohan
                        Mod
                        wrote on last edited by
                        #27

                        There are adapters from microsd to standard SD if you feel a little nostalgic 😁

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          MagnusF
                          wrote on last edited by
                          #28

                          Perhaps not the best solution but easy for a beginner.
                          It's possible to use "Win32 Disk Imager" to make an image of the a RPi SD card and save on e.g. Windows PC. Explained here: https://computers.tutsplus.com/articles/how-to-clone-your-raspberry-pi-sd-cards-with-windows--mac-59294
                          If you make an image, e.g. after changes in openHAB or at selected times, can't this be used to restore the system?
                          I'm aware of that data colected since the last made image will be lost and the system is down during the process.

                          1 Reply Last reply
                          0
                          • gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #29

                            Actually yes, if you make an image from a SD card and you flash it back you get a system working at that previous state. I actually use dietpi that has a built in backup/restore feature that I already used few times and it even worked to restore to another RPI also running the same dietpi

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            19

                            Online

                            11.7k

                            Users

                            11.2k

                            Topics

                            113.1k

                            Posts


                            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • MySensors
                            • OpenHardware.io
                            • Categories
                            • Recent
                            • Tags
                            • Popular