Skip to content
experience

Seven dead SD cards in two years. Here is what finally fixed it

Matt O'Brien@pi_tinker_matt

May 9, 2026 · 3 min read

G'day legends. Went through the shed drawer on the weekend and counted seven dead microSD cards, all out of Pis that run 24/7. The weather station, the chook house door, the Pi-hole, the garage camera. Every one died the same way: fine for months, then one morning it boots read-only or doesn't boot at all.

Parts I use now (AUD, roughly): second hand 120GB SATA SSD ($20 at the tip shop / marketplace), a USB 3 to SATA adapter ($15, see the warning below), the official Pi power supply ($15ish), and for the one Pi that has to stay on SD, a "high endurance" card ($18).

Why they die

Flash wears out with writes. A cheap card has a tiny controller with not much wear levelling, and Raspberry Pi OS out of the box writes a fair bit: journald, swap, apt, plus whatever your own app logs. Then there's the real killer, power. Pull the plug (or cop a brownout in a Brisbane storm) mid-write and you can corrupt the card's own mapping table, not just one file.

What fixed it, most useful first

  1. Stop booting from SD. Pi 4 and Pi 5 boot from USB no dramas now. Easiest way is sudo raspi-config → Advanced Options → Boot Order → USB Boot. If you'd rather see what it's doing, sudo rpi-eeprom-config --edit and on a Pi 4 you want BOOT_ORDER=0xf14 (read it right to left: USB, then SD, then start again).
  2. Watch the adapter. Some cheap SATA adapters misbehave with UAS on the Pi and you get random I/O errors under load. Find the ID with lsusb and add usb-storage.quirks=XXXX:YYYY:u (your vendor and product ID) to the front of the single line in /boot/firmware/cmdline.txt. Slower, but stable. Two of my three adapters needed it.
  3. Proper power. Phone chargers droop under load. If vcgencmd get_throttled gives you anything other than throttled=0x0, or dmesg says undervoltage, fix that before you blame anything else.
  4. Log less, and log to RAM. In /etc/systemd/journald.conf set Storage=volatile and RuntimeMaxUse=30M. You lose logs on reboot, which on a sensor Pi I genuinely don't care about. Turn swap off if you don't need it: sudo dphys-swapfile swapoff then sudo systemctl disable dphys-swapfile.
  5. Read-only root for the ones that matter. raspi-config → Performance Options → Overlay File System. Everything writes to RAM and vanishes on reboot. The weather station has run like this for 14 months without a hiccup. Remember to turn it off before you apt upgrade or you'll be very confused why nothing stuck (ask me how I know 😅).
  6. If it has to be SD, buy endurance. The cards sold for dashcams. Not magic, but noticeably better wear levelling than the bargain bin.

Pi OS already mounts root with noatime, so that old tip is done for you. Check it if you're on another distro.

Would I do it again?

SSD on everything that runs 24/7: absolutely. The three Pis I moved over in January haven't missed a beat. The Zero 2 W in the letterbox stays on SD because there's nowhere to put an SSD, so it's overlay FS plus an endurance card and I've made my peace with it.

cheers, Matt 🍓

Get the best of #raspberry_pi_lab weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.

Comments

10

Sign in to join the conversation.

Sign in to comment
Graham Whitfield@greybeard_graham#7 in Pi Lab
Good list. One thing from the old days: once a card is set up the way you like it, take an image of it. sudo dd if=/dev/sdX of=weather.img bs=4M status=progress, or whatever tool you prefer. The card is cheap. The four hours of rebuilding it from memory are not. Cheers, G.
4 net votes
Matt O'Brien@pi_tinker_matt#1 in Pi Lab
Too right Graham. I use rpi-clone on the live ones now, clones the running system to a USB stick without pulling the card. Saved my bacon twice already
4 net votes
Lena Hoffmann@arch_btw_lena3 rep in Pi Lab
overlay fs is so underrated. one thing about log2ram if people go that way instead: check the size, default is small and when /var/log fills the ram disk your services start doing very funny things. been there
2 net votes
Karl Lindqvist@kernel_karl2 rep in Pi Lab
Storage=volatile is the one that matters. The rest is decoration.
4 net votes
Matt O'Brien@pi_tinker_matt#1 in Pi Lab
Ha, harsh but not wrong Karl. Power is the other one though. My worst corruptions were all storms
2 net votes
S. Ramanathan@ramanathan_retd#6 in Pi Lab
Dear Matt, Thank you for this. I am a new member and was about to buy my first Pi with a 16GB card from the shop. Kindly advise whether a USB pen drive is acceptable in place of an SSD, as the shop near my house does not stock SSDs. With regards, S. Ramanathan
1 net votes
Matt O'Brien@pi_tinker_matt#1 in Pi Lab
G'day Mr Ramanathan, welcome! A decent USB 3 pen drive works, it's better than a cheap SD card for sure. Just avoid the tiny no-name ones, they've got the same weak controllers as cheap cards. Any brand name 32GB or 64GB stick will see you right. Post your build when it's running!
3 net votes
Nguyễn Minh Hiếu@homelab_hieu#4 in Pi Lab
+1 for SSD. in my experience power cut kill more card than writes. HCMC rainy season = 3 power cut a week sometimes. a small UPS for the Pi is cheap and save a lot of headache. hope this help :)
4 net votes
Jaxon Pearce@j4x0n_mods#9 in Pi Lab
bro this is literally why my pi wont boot 💀 found this from google. ordering an ssd adapter rn
4 net votes
Matt O'Brien@pi_tinker_matt#1 in Pi Lab
Good on ya mate. Check the quirks bit if it throws errors, and send me a message if it fights you
3 net votes