Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

SD cards in Raspberry Pi computers wear out and die after a while because they are not made for computer usage, and many write cycles. In addition, the SD cards can become corrupted if the Pi loses power without a proper shutdown. We have several possibilities to avoid this disaster. Only one is simple and cheap. But, unfortunately, it has its caveats. So let’s get an overview and use a nearly unknown Raspbian feature to help us solve the problem.

This video will officially air beginning of October. So I am ahead of (production) schedule to get some time for not-so-easy topics...

https://youtu.be/LKDC-Wjukk0

Files

Previews only

Simple Trick to protect your Raspberry SD card from Crashing

SD cards in Raspberry Pi computers wear out and die after a while because they are not made for computer usage, and many write cycles. In addition, the SD cards can become corrupted if the Pi loses power without a proper shutdown. We have several possibilities to avoid this disaster. Only one is simple and cheap. But, unfortunately, it has its caveats. So let’s get an overview and use a nearly unknown Raspbian feature to help us solve the problem. I am a proud Patreon of @GreatScott!, @ElectroBOOM , @Electronoobs , @EEVblog , and others. No Docker, No Microsoft Teams, Zoom Links: Raspberry Pi 4: https://amzn.to/3kBF5nv Barefoot method 1: https://medium.com/swlh/make-your-raspberry-pi-file-system-read-only-raspbian-buster-c558694de79 Barefoot Method 2: https://www.raspberry-pi-geek.de/ausgaben/rpg/2018/08/raspbian-im-read-only-modus/2/ Adafruit's method: https://learn.adafruit.com/read-only-raspberry-pi The links above usually are affiliate links that support the channel (no additional cost for you). Supporting Material and Blog Page: http://www.sensorsiot.org Github: https://www.github.com/sensorsiot My Patreon Page: https://www.patreon.com/AndreasSpiess Discord: https://discord.gg/JfgDSa8 If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission of your purchases to buy new stuff for the channel My Amazon.com shop: https://www.amazon.com/shop/andreasspiess For Banggood https://bit.ly/2jAQEf4 For AliExpress: http://bit.ly/2B0yTLL For Amazon.de: http://amzn.to/2r0ZCYI For Amazon UK: http://amzn.to/2mxBaJf For ebay.com: http://ebay.to/2DuYXBp https://www.facebook.com/profile.php?id=100013947273409 https://twitter.com/spiessa https://www.instructables.com/member/Andreas%20Spiess/ Please do not try to email me. This communication channel is reserved for my primary job As an Amazon Associate, I earn from qualifying purchases #no#midroll#ads

Comments

George Lindner

Does the Overlay File System make the user's home directory read-only as well? I'll try to Google an answer, but thought I'd ask here too. I don't recall the video mentioning the answer, but I may not have heard it ;)

George Lindner

Oh, cancel, your example file in the video was written to the user's home path and it wasn't there on a subsequent boot. My bad. I read that there are ways to put paths outside the "read only" file subsystem with mount points to allow for writeable directories, like /home. I'll have a look at this further for my concern, since it would be nice to have a user area that is still able to be persistent.

Maurice

Another simple solution to reduce write operations is the use of log2ram (https://github.com/azlux/log2ram). With the help of this tool all logs are written to RAM and then synced to disk or sd-card periodically.

AndreasSpiess

Hi Maurice, you are right, this is also a good solution for logging. I used it a few times, too. The advantage is that it preserves the log files if you need them.