Settings

Theme

Pi Reliability: Reduce writes to your SD card

dzombak.com

2 points by kuba-orlik 2 years ago · 1 comment

Reader

eternityforest 2 years ago

My SD protection script, a few months old and may need some updates since a lot seems to have changed in Pi OS:

https://github.com/EternityForest/KaithemAutomation/blob/mas...

Current version doesn't disable swap, that's in a separate optional file, but the next version will probably have it all in one file.

It can't be done in a one size fits all script unless you're launching chromium the same way, but do something like: ``` mkdir -p /dev/shm/kiosk-temp-config mkdir -p /dev/shm/kiosk-temp-cache export XDG_CONFIG_HOME=/dev/shm/kiosk-temp-config export XDG_CACHE_HOME=/dev/shm/kiosk-temp-cache ```

In your launch script and you should be able to stop the worst offender on kiosk systems.

Certain apps just love writing to disk, which is part of what keeps me from moving to Home Assistant for a lot of things.

I typically leave fake hwclock alone since it's only once an hour, but having a hardware RTC would really be ideal.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection