The death and rebirth of my home server

27 points by steinuil


xgbi

I have a RpiZero in my electrical closet reading the serial trames I get from my power distributor, and I set it up AGES ago (probably >8 years). I set it up so that the entire FS is read only, and it has been working lile a charm. It's been handling many (many) reboots due to power outages, and has come up every time.

I can switch it to R/W in ssh to update packages (recently did it to upgrade node-red), but it runs 99.9% of the time in RO.

This is the way, having read-only filesystem makes sur the SD card is still read, but very rarely written.

*edit:

pi@linky(ro):/var/lib/dpkg/info$ ls -lrt *.list | head
-rw-r--r-- 1 root root 412 18 avril 2018 gcc-4.6-base:armhf.list
pi@linky(ro):~$ cat /sys/fs/ext4/mmcblk0p2/lifetime_write_kbytes
17702665

Coming on 8.5 years and only 17G written on an 8G SD card !