Hacker News new | past | comments | ask | show | jobs | submit login
Pi Reliability: Reduce writes to your SD card (dzombak.com)
2 points by kuba-orlik 10 months ago | hide | past | favorite | 1 comment



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: