←back to thread

518 points LorenDB | 1 comments | | HN request time: 0.201s | source
Show context
hiAndrewQuinn ◴[] No.46177153[source]
Tiny Core Linux has a version for Raspberry Pis called piCore [0] that I wish more people would look at, because it loads itself entirely into RAM and does not touch the SD card at all after that until and unless you explicitly tell it to.

Phenomenal for those low powered servers you just want to leave on and running some tiny batch of cronjobs [1] or something for months or years at a time without worrying too much about wear on the SD card itself rendering the whole installation moot.

This is actually how I have powered the backend data collection and processing for [2], as I wrote about in [3]. The end result is a static site built in Hugo but I was careful to pick parts I could safely leave to wheedle on their own for a long time.

[1]: https://til.andrew-quinn.me/posts/consider-the-cronslave/

[2]: https://hiandrewquinn.github.io/selkouutiset-archive/

[3]: https://til.andrew-quinn.me/posts/lessons-learned-from-2-yea...

replies(4): >>46177389 #>>46177624 #>>46177929 #>>46179999 #
lukan ◴[] No.46177389[source]
"Phenomenal for those low powered servers you just want to leave on and running some tiny batch of cronjobs [1] or something for months or years at a time without worrying too much about wear on the SD card itself rendering the whole installation moot."

Yes, this is exactly what I want, except I need some simple node servers running, which is not so ultra light. Would you happen to know, if this still all works within the ram out of box, or does this require extra work?

replies(2): >>46178741 #>>46179917 #
1. fsagx ◴[] No.46178741[source]
on a pi?

You can run nodejs fine on a pi with "Raspberry Pi OS Lite". In the configs, look for "Overlay File System" and enable it on the boot partition and main partition. The pi will boot from the sd card and run entirely in ram.

Be sure to run something to clear your logs occasionally or reboot once in a while or you'll run out of RAM. Still, get a quality sd card and power supply. You can get years out of a setup like this.