Yup. Bad power and writes are a bad combination. Surge suppressors help there.
I simply put /var/log into tmpfs and other than writing the archive db and html files once per 5 minutes there are no writes to disk at all. You do lose the logs on a reset but it's a minor thing. Typically you don't ever look at them. I typically add this to /etc/fstab on all my pi and have never had a failure since. You do sometimes need to add something to rc.local to make subdirectories under /var/log that daemons expect (/var/log/nginx to name one) but that's minor stuff. #---- put logs and tmp dirs in ramdisk --- tmpfs /tmp tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0 tmpfs /var/log tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0 tmpfs /var/tmp tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0 On Monday, September 9, 2024 at 2:11:46 AM UTC-7 Graham Eddy wrote: the way it was explained to me is that the bane of the SD card is power loss during write cycle. if that can be done without a UPS, then great *⊣GE⊢* On 9 Sep 2024, at 5:22 PM, Karen K <kk44...@gmail.com> wrote: some comments about UPSs some posts before saying they are not really necessary -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/094cc054-a2ca-420f-96a8-1814fdbb7eean%40googlegroups.com.