<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I have had class 10 cards fail in much less than a year on 2 weather stations.  I can't tell you why, but the file system did go read only on each of them.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I also routinely turn off the Swap storage if I know that I will never surpass the RAM storage available without issue.  Since my RPI's are built for a single purpose they don't come close to over running maximum RAM.  </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I really don't require the /data directory, so I will move that to a ramdisk.  Should I ever need it, I can turn it back on to debug as required.   I managed to go 5 years without looking at it at all.  :)  The DXSpider code is pretty solid so it is rare it might be needed.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I found log2ram some time ago <a href="https://github.com/azlux/log2ram" style="font-family:Arial,Helvetica,sans-serif">https://github.com/azlux/log2ram</a> and that made it pretty easy to configure.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks for the input.  Mike va3mw</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 30, 2020 at 6:55 PM JOSEPH REED <<a href="mailto:joe@n9jr.com">joe@n9jr.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">A Class 10 SD card doesn’t fail in 6-9 months, but it will fail.  You have two USB 3 ports on the Pi 4.  The best and easiest way I know it to acquire an inexpensive USB SSD drive.  Attach it and clone the SD to the SSD but with different partition IDs.  Edit /boot/boot.txt and replace the partition ID of rootfs with the rootfs partition of the SSD.  You will boot from the SD, but after boot everything is on the SSD.<div><br></div><div>And you do not want to turn off swap!</div><div><br></div><div>Joe N9JR</div><div><br></div><div><br><div><br><blockquote type="cite"><div>On Mar 30, 2020, at 7:36 AM, Michael Walker via Dxspider-support <<a href="mailto:dxspider-support@tobit.co.uk" target="_blank">dxspider-support@tobit.co.uk</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi All<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">A few weeks ago I moved my Cluster over to a RPI4 where it hums along nicely.  </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I know from many weather stations that the SD card will go into a read only state in about 6-9 months as writes start to fail.  Running IOTOP tells me what we do significant writes to the card.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Does anyone have a list of things they do to minimize the writes?  </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">On my list I have:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><ol><li>Turn off the swap space</li><li>Move /spider/data to a RAM disk</li></ol><div>Anything else?</div></div></div></div></blockquote></div><br></div></div></blockquote></div>