Subscribe to the RSS feed by copy/paste the link below
RSS

Pi SDCard Live Extending, Probably

Posted by Admin on 10. October, 2021
MyBlog ยป

I have a pi that takes temperature reading every 5mins and receives rtl_433 as and when.  These data are compiled into a web page and served up by the same Pi.

Since SDcards do not like to be written to often, this needs to be avoided where possible. Mostly the data are put immediately into a separate database so no issue with that.  The rtl_433 gets written to a file though. In addition if ever the DB server is inacessable the data are written to temporary file storage on the SDcard. This is infrequent though.

The web site is mostly static but the weather charts are updated every 5 minutes, which is bad. I decided that often changing data would be stored in small ram disks to which the static html would have links to. This means that often changing data like charts and such never hits the SD card.

The same goes for temporary file storage.  This does mean that it's all lost on power off but since the remote DB stores the permenant data it's of no import.

Regular logging is taken care of by log2ram.

HOWTO Then

Requires two entries in /etc/fstab and the creating of the mount points is all. Also updating all the scripts obviously.

Last changed: 10. October, 2021 at 07:27

Back to Overview