- SD card reliability
- techniques for reliably using what we have
?
Given that people are using these for all kinds of stuff there must be some advanced techniques being used (or some basic I have missed).
- SD card reliability
- techniques for reliably using what we have
?
Given that people are using these for all kinds of stuff there must be some advanced techniques being used (or some basic I have missed).
I am logging everything to ram instead of writing it to the card and that's about it. I never encountered any issue with SD Card reliability, despite me sometimes just pulling the plug instead of properly shutting it down.
Here is a simple guide: https://raspberrypi.stackexchange.com/a/62536
I do have a couple of other raspberries for other uses (e.g. a small rc car) which are also running on their first SD card. Might be just luck, but I do think that it's not necessary to go to extreme lengths to have them run reliably.
Does anyone have any info on this that's more substantial than hearsay? Experiments, measurements or at least a more technical explanation than "bad power source"?
I'm persistently hearing this story that power supply quality affects SD card life. As an electrical engineer, and given what I know about R. Pi design, I fail to see how an SD card could get physically damaged by any reasonable power supply that would otherwise run the rest of the R.Pi.
I suspect people are confusing filesystem corruption due to brownouts/OS not shutting down cleanly with physical damage to the flash (i.e. unreadable sectors on SD card)
Not SD card life indeed (in my case at least), merely IO failing, hosing the filesystem long term because of b0rked writes. The SD card is fine, it's just the data that eventually becomes inconsistent garbage.
I noticed the power LED showed the undervoltage behaviour, measured the power output which indeed showed the voltage not being stable on power spikes, so bought a better power supply, problem gone. Got the same kind of issue with greedy USB devices, so either went the powered hub route or used self-powered hard disks.
I was originally going to recommend checking out this¹ article for instructions on how to do it. However, much of the instructions are no longer valid (as of two weeks ago!) since they assume that the Raspberry Pi 4 doesn’t natively support booting from USB, which finally isn’t the case (although only if you use the current beta bootloader²). I’d still recommend reading it though, as it also mentions known working 2.5″ SATA to USB 3.0, M.2 NVMe to USB 3.0, M.2 SATA to USB 3.0, and mSATA to USB 3.0 adapters. In addition, I’d recommend checking out this³ article with some recommended SSDs; in particular, this⁴ 120 GB Kingston A400 SATA 3 2.5” Solid State Drive coupled with this⁵ StarTech 2.5″ SATA to USB 3.0 Adapter, which also has the added bonus of giving you far better speeds than a microSD card would! As the author of that article mentions:
“The Kingston A400 drive performs really well in the Raspberry Pi Storage Benchmarks⁶. It’s a great drive and is cheaper than many mid-range MicroSD cards.
The 2.5″ SATA to USB adapter above allows us to do this. There is no power adapter needed as SSDs are low power and are powered by the Pi through USB.”
――――――
¹ — https://jamesachambers.com/raspberry-pi-4-usb-boot-config-gu...
² — https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb
³ — https://jamesachambers.com/raspberry-pi-storage-benchmarks-2...
⁴ — https://www.amazon.com/dp/B01N6JQS8C/
――――――
¹ — https://www.jeffgeerling.com/blog/2020/im-booting-my-raspber...
The whole time I had 1 or 2 broken SD cards. Temperature was never an issue.
I put on all SBCs just a passive heatsink (about 30x30x20mm). I installed packs with 4 boards vertical. On the bottom I had 2 large fans for all the SBCs. (sorry no picture)
Debian wiki has a (pretty bad and outdated) page on the subject https://wiki.debian.org/ReadonlyRoot#Enable_readonly_root
https://www.raspberrypi.org/forums/viewtopic.php?p=1158010
I've been using them for the last couple years and haven't had any dead Pis, unlike what happened with a couple other "regular" sd cards.