I am using my raspi for my smart home monitoring and I don't want any system crashes because the SD card fails. So is there a way to build a raid 1 with the SD card + an additional USB stick (or maybe 2 additional sticks with one hotspare)?

Maybe with mdadm?

Would be great because if the SD fails I have the USB stick as an backup an enough time to replace the card.

2 Answers 2


The best thing I know to prevent SD card corruption is using Raspberry in readonly mode.(You can poweroff without damage and backing it up 1 time per month)

You can use the USB stick to write data output because you cannot write on SD card in this mode.

Link here https://learn.adafruit.com/read-only-raspberry-pi/overview


Solved it. I use initramfs now to boot to md0 (mdadm raid). Works for now, thanks! :-)

  • 1
    It would be very nice if you explain how do yo setup the RAID. I would like to do the same.
    – Ingo
    Jan 17, 2019 at 20:24
  • you can simply check the scripts mentioned in this blogpost @Ingo
    – jonny
    Jan 17, 2019 at 20:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.