Unsure what you are asking, but if you choose to put things into tmpfs or ramdisk then 'you' have to do something manually to copy any such data out to physical read-write media somehow. In a past $job I did this with a cron job that mounted a partition, copied the file out, then unmounted the partition. That didn't eliminate issues, but it minimized the risk of taking a power hit at the wrong time.
That said, you really don't have to do this with a pi3/3+/4 and a good SD card unless you really want to. My pi3 and later have never corrupted a SD card. On Tuesday, October 5, 2021 at 1:21:36 PM UTC-7 [email protected] wrote: > OK Vince- sounds like a plan. Do they eventually get written to perm > storage? Perhaps during a reboot? > > On Tuesday, October 5, 2021 at 11:07:02 AM UTC-4 vince wrote: > >> On Tuesday, October 5, 2021 at 5:33:38 AM UTC-7 [email protected] wrote: >> >>> Any information about using the RaspberryPi Overlay Filesystem to >>> facilitate lower read/writes to the SD card? I have lost one SD card so >>> far- granted that was over a 2-year period of running WEEWX. Just curious. >> >> >> You'll need your syslog(s), and the archive and public_html trees >> someplace weewx can write to. >> >> You can get most of the way there in alternate ways by setting up a tmpfs >> and writing the most chattery things there. I do this on my model-B pi >> which 'do' have occasional SD failures. >> >> #---- /etc/fstab snippet --- >> #---- 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 >> >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4a102551-8e17-4735-9407-7029ec656bc6n%40googlegroups.com.
