Stable permanent online Raspberry / SD-Card based

Posted by Matthias 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Stable permanent online Raspberry / SD-Card based
August 17, 2015 06:12PM
Hey all,
I want to kick off the discussion about long running SD card based computers.
Currently, our image has no special adjustments to not harm the SD Cards, so I encountered problems with the SD Cards for more then 2 times on my long running PirateBox on the Freifunk network.

The problems are usually:
* Silent data corruption (rare)
* Filesystem errors, which end up
* in a freezing system or
* not rebooting system

An SD Card Problem usually isn't fixable anymore from the system and doing filesystem checks end up in a mess.

I want to initiate a better image with that discussion and share experiences on this topic.

I start off with a first article about that topic:
zdnet , extending the life of the SD card. it already covers alot of my first ideas.

What are your experiences?
Matthias


This is only my signature.
Re: Stable permanent online Raspberry / SD-Card based
August 23, 2015 10:35AM
I had an RPi running with pretty much only IRC on it and a 8GB SSD card, sometimes using it as an sh tunnel. the SD card never lasted more than ~200 days before getting corrupted and unusable.

tmpfs sounds like a good option, could the chat work with that as well? Also, file upload was previosuly done in chunks and then were combined by droopy and put to a new file (or similar, if I recall correctly). Maybe this could also be mitigated to the tmps/RAM so it won't be written twice to the card. Not sure how it would work if file >> RAM.

Ubuntuhak, playing and tinkering with Ubuntu!
Re: Stable permanent online Raspberry / SD-Card based
August 28, 2015 12:48PM
What about just running from a usb instead? I've changed most of my cmdline's to boot from usb after copying the files from the sd card.
Re: Stable permanent online Raspberry / SD-Card based
September 07, 2015 05:11AM
@USB Stick, interesting idea, but I guess that won't help much too. It is the same technique in the background with similiar problems
Re: Stable permanent online Raspberry / SD-Card based
September 11, 2015 06:17AM
I found a very good summary about the configuration needed to be done on stackexchange today: How can I extend the life of my sd-card.
The top rated answer covers all the things I found so far, excluding the idea of do a special mount of the /var/log filesystem to reduce tha amount of logwrites.


This is only my signature.
Re: Stable permanent online Raspberry / SD-Card based
October 29, 2015 01:41PM
[gist.github.com]


This is only my signature.