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. General Discussion
  3. Raspberry PI killing memory cards

Raspberry PI killing memory cards

Scheduled Pinned Locked Moved General Discussion
18 Posts 9 Posters 205 Views 5 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.
  • BearWithBeardB Offline
    BearWithBeardB Offline
    BearWithBeard
    wrote on last edited by
    #3

    I have no experience with it myself, but apparently, you can boot your RaspberryPi from an SSD if you want to. Considering how cheep they got recently, you might want to give this approach a try. You'll also need a SATA-to-USB3 adapter in this case.

    1 Reply Last reply
    1
    • I iancu

      Hi,

      Yesterday my controller (HA) went down, after some debugging it seems that there is a problem with the memory card. Then I remembered a colleague which had similar issues but with Domoticz. My Raspberry worked for about 1 year without issues. Do you guys have the same problem? I am thinking to switch to a device (for HA) that supports different types of memory (like this or this).

      Cheers!

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #4

      @iancu A solution I'm using is log2ram https://github.com/azlux/log2ram
      It writes logfiles to ram instead of SD and only flushes the logfiles to SD e.g. once every day.
      Works like a charm!

      http://yveaux.blogspot.nl

      I 1 Reply Last reply
      1
      • zboblamontZ Offline
        zboblamontZ Offline
        zboblamont
        wrote on last edited by
        #5

        HA should be blind to the storage source your Pi uses, the normal micro-SD is simply a write/write device, though many recommend the industrial versions as more resilient.

        MicroSD failures can be due to write fails or power cuts.
        After multiple fails here due to power cuts I found a method where the microSD is used as RO boot which then switches all read/write to a slim laptop external drive. The drive eventually corrupted after multiple power cuts, and a UPS finally solved that bizarre problem permanently. The beauty of that method is you can revert to a full blown micro-SD OS should you require it.
        As @BearWithBeard commented SSD can be used at considerably faster speed/lower energy load, and are very much cheaper nowadays. Read a review recently where a new Pi4 was fitted with a fast SSD giving blistering benchmarks.
        The technique of using the RO boot micro-SD makes it a reversible process.

        1 Reply Last reply
        1
        • YveauxY Yveaux

          @iancu A solution I'm using is log2ram https://github.com/azlux/log2ram
          It writes logfiles to ram instead of SD and only flushes the logfiles to SD e.g. once every day.
          Works like a charm!

          I Offline
          I Offline
          iancu
          wrote on last edited by
          #6

          @Yveaux for how long do you use it?

          YveauxY skywatchS 2 Replies Last reply
          0
          • I iancu

            @Yveaux for how long do you use it?

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by Yveaux
            #7

            @iancu I started with an alternative implementation called ramlog, but overall I have an rpi running for nearly 5 years now using this solution on a single SD card.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            1
            • I iancu

              @Yveaux for how long do you use it?

              skywatchS Offline
              skywatchS Offline
              skywatch
              wrote on last edited by skywatch
              #8

              @iancu I had problems and went down the SSD route. Once the pi was set up I copied all to the ssd and enabled ssd boot - it's been working like a charm since then.
              With SSD's at less than £20 now and £5 or less for a usb adaptor cable it is not that expensive. One other thing though is power supply, I cannot emphasise enough how important a quality power supply is to the pi. You could start there first.

              I 1 Reply Last reply
              1
              • skywatchS skywatch

                @iancu I had problems and went down the SSD route. Once the pi was set up I copied all to the ssd and enabled ssd boot - it's been working like a charm since then.
                With SSD's at less than £20 now and £5 or less for a usb adaptor cable it is not that expensive. One other thing though is power supply, I cannot emphasise enough how important a quality power supply is to the pi. You could start there first.

                I Offline
                I Offline
                iancu
                wrote on last edited by
                #9

                @skywatch i have the original charger. Does it matter if the SSD is external type?

                sundberg84S skywatchS 2 Replies Last reply
                0
                • I iancu

                  @skywatch i have the original charger. Does it matter if the SSD is external type?

                  sundberg84S Offline
                  sundberg84S Offline
                  sundberg84
                  Hardware Contributor
                  wrote on last edited by sundberg84
                  #10

                  @iancu - had the same issue, went with an old desktop and Proxmox VM instead. Might be more expensive unless you have spare parts.

                  Controller: Proxmox VM - Home Assistant
                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                  1 Reply Last reply
                  1
                  • I iancu

                    @skywatch i have the original charger. Does it matter if the SSD is external type?

                    skywatchS Offline
                    skywatchS Offline
                    skywatch
                    wrote on last edited by skywatch
                    #11

                    @iancu SSD will be external anyway as the pi lacks any connectors for internal drives. An external ssd is just an internal ssd with the usb converter in the case rather than in the cable. A bonus is that you can throw away the SD card too (probably a fake one anyway)....

                    As for the power supply, it took me many painful years to get to the point I am at now with a lot of quality supplies sourced from reliable UK companies. The old cheaper supplies are still in use, but for other things now that are less sensitive to defieiencies in the power.

                    zboblamontZ 1 Reply Last reply
                    1
                    • skywatchS skywatch

                      @iancu SSD will be external anyway as the pi lacks any connectors for internal drives. An external ssd is just an internal ssd with the usb converter in the case rather than in the cable. A bonus is that you can throw away the SD card too (probably a fake one anyway)....

                      As for the power supply, it took me many painful years to get to the point I am at now with a lot of quality supplies sourced from reliable UK companies. The old cheaper supplies are still in use, but for other things now that are less sensitive to defieiencies in the power.

                      zboblamontZ Offline
                      zboblamontZ Offline
                      zboblamont
                      wrote on last edited by zboblamont
                      #12

                      @skywatch Agreed entirely on the supply quality for the Pi, but disagree with the "bonus" of throwing away the SD. Murphy's Law applies, a RO card allows you to revert to a spare OS card if the drive ever fails...
                      The Pi3 has 4xUSB2, the Pi4 uprated to 2xUSB2 + 2xUSB3, the data transfer limits of the Pi3 are lower, but still plenty fast.
                      PS - I recall some USB adapters for SSD could cause issues for the Pi, fairly sure it was on a video by the "Swiss guy"...

                      skywatchS 1 Reply Last reply
                      0
                      • zboblamontZ zboblamont

                        @skywatch Agreed entirely on the supply quality for the Pi, but disagree with the "bonus" of throwing away the SD. Murphy's Law applies, a RO card allows you to revert to a spare OS card if the drive ever fails...
                        The Pi3 has 4xUSB2, the Pi4 uprated to 2xUSB2 + 2xUSB3, the data transfer limits of the Pi3 are lower, but still plenty fast.
                        PS - I recall some USB adapters for SSD could cause issues for the Pi, fairly sure it was on a video by the "Swiss guy"...

                        skywatchS Offline
                        skywatchS Offline
                        skywatch
                        wrote on last edited by
                        #13

                        @zboblamont said in Raspberry PI killing memory cards:

                        @skywatch Agreed entirely on the supply quality for the Pi, but disagree with the "bonus" of throwing away the SD. Murphy's Law applies, a RO card allows you to revert to a spare OS card if the drive ever fails...

                        No problem with your view on this, it gives the OP different ideas and approaches to the original issue. All my pi back themselves up to the SSD or server on a weekly or daily schedule. So I don't worry about reverting the system. I use kingston 20Gb SSD's with usb adaptor cables and all running smoothly.....just wait for something to happen now I have said that! ;)

                        The Pi3 has 4xUSB2, the Pi4 uprated to 2xUSB2 + 2xUSB3, the data transfer limits of the Pi3 are lower, but still plenty fast.

                        I just oreder my first pi4 (4Gb) - if it is as good as it seems then a few pi3's will be made into cameras and replaced by pi 4's during the rest of the year. I just wish they put a MCLK out on the pi 4 for pro audio use......ah well......

                        PS - I recall some USB adapters for SSD could cause issues for the Pi, fairly sure it was on a video by the "Swiss guy"...

                        Compatability is always going to be an issue is seems. ;(

                        zboblamontZ 1 Reply Last reply
                        2
                        • skywatchS skywatch

                          @zboblamont said in Raspberry PI killing memory cards:

                          @skywatch Agreed entirely on the supply quality for the Pi, but disagree with the "bonus" of throwing away the SD. Murphy's Law applies, a RO card allows you to revert to a spare OS card if the drive ever fails...

                          No problem with your view on this, it gives the OP different ideas and approaches to the original issue. All my pi back themselves up to the SSD or server on a weekly or daily schedule. So I don't worry about reverting the system. I use kingston 20Gb SSD's with usb adaptor cables and all running smoothly.....just wait for something to happen now I have said that! ;)

                          The Pi3 has 4xUSB2, the Pi4 uprated to 2xUSB2 + 2xUSB3, the data transfer limits of the Pi3 are lower, but still plenty fast.

                          I just oreder my first pi4 (4Gb) - if it is as good as it seems then a few pi3's will be made into cameras and replaced by pi 4's during the rest of the year. I just wish they put a MCLK out on the pi 4 for pro audio use......ah well......

                          PS - I recall some USB adapters for SSD could cause issues for the Pi, fairly sure it was on a video by the "Swiss guy"...

                          Compatability is always going to be an issue is seems. ;(

                          zboblamontZ Offline
                          zboblamontZ Offline
                          zboblamont
                          wrote on last edited by
                          #14

                          @skywatch :face_palm:
                          To be clear it's not system data integrity or recovery I was driving at rather than the OS if switched to an SSD or HDD only system.There is a minor delay in booting the micro-SD and switching over to the HDD, but it is a further escape route from Murphy's Law....

                          Plenty of advice to the OP anyway, which is the beauty of the forum.

                          skywatchS 1 Reply Last reply
                          1
                          • zboblamontZ zboblamont

                            @skywatch :face_palm:
                            To be clear it's not system data integrity or recovery I was driving at rather than the OS if switched to an SSD or HDD only system.There is a minor delay in booting the micro-SD and switching over to the HDD, but it is a further escape route from Murphy's Law....

                            Plenty of advice to the OP anyway, which is the beauty of the forum.

                            skywatchS Offline
                            skywatchS Offline
                            skywatch
                            wrote on last edited by
                            #15

                            @zboblamont No problem with your thoughts on that ;)

                            @iancu Hope the answers here have helped a little for you (or maybe confused the issue even more!).... Let us know what tou decied and how it works for you :)

                            I 1 Reply Last reply
                            2
                            • TmasterT Offline
                              TmasterT Offline
                              Tmaster
                              wrote on last edited by Tmaster
                              #16

                              my Domoticz its running on a PNY SD card for more than 2 years and didn't die yet. But i almost don't have power cuts . Any case i have another sandisk ultra sd with an clone from the running SD ready to replace this in case of fail.
                              You can buy and replace an raspberry by an fast and more expensive device...but this sd cards cost 3.75€ !!! power consumption of 1.5w- 1.9w in idle... what else can i want from my domotic system! :)

                              edit: i have 4 or 5 sensors transmitting and writing every 15min, so sd write, it's not too heavy,standart usage.

                              i'm a arduino fan .Even sometimes don't undestanding how to use it :P

                              1 Reply Last reply
                              1
                              • nagelcN Offline
                                nagelcN Offline
                                nagelc
                                wrote on last edited by
                                #17

                                I have domoticz and on a rpi with 3 serial gateways. It used to destroy SD cards pretty regularly.

                                I went with this power supply from Adafruit (It is actually 5.25V) and a UPS.
                                https://www.adafruit.com/product/1994

                                Also, I use log2ram.

                                That has finally made my rpi domoticz setup reliable. I have been running about a year without problems. I still back up often. : )

                                1 Reply Last reply
                                1
                                • skywatchS skywatch

                                  @zboblamont No problem with your thoughts on that ;)

                                  @iancu Hope the answers here have helped a little for you (or maybe confused the issue even more!).... Let us know what tou decied and how it works for you :)

                                  I Offline
                                  I Offline
                                  iancu
                                  wrote on last edited by
                                  #18

                                  Thank you all for the advice! I will try first with log2ram, but for long term I want to install an SSD.

                                  A nice week to all!

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


                                  24

                                  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