<div dir="ltr">Magnetometer users,<div><br></div><div>This is a note that I sent to a user who ran out of space on a local SD card in a Raspberry Pi that uploads magnetometer data to the Linode server. </div><div><br></div><div><i><font color="#cc0000">Anyone using a Grape or Grape2 who might have similar concerns should consult with John Gibbons first as these instructions are inappropriate for those settings.<br></font></i><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><b>No, the upload process is not set to delete log files once they are uploaded.  </b><br>But the SD cards can be as big as Raspberry Pi OS will support.  <br>I recently purchased some Samsung PRO Endurance 128GB SD cards for my home doorbell camera.  Those should work for a long time in this setting.<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You should be able to use Raspberry Pi Imager or some similar tool such as Balena Etcher (or lots of other things) to make a backup image to a local .iso file. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><b><i>Keep that and the original SD card somewhere safe.</i></b><br>Then use the same tool - (RPi Imager, etc.) to 'restore' that file to the new larger SD card. <br>Put the new card in the RPi and boot it and make sure that it works correctly<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Check with 'df -h' of the file manager that the entire space is usable.  It may not be.<br>If not, use some tool that will resize the filesystem to use the entire space on the card.<br>I usually use gparted, but that may have to be installed using 'sudo apt install gparted'.  There are other tools that may be more familiar to Pi users.<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Once the File System is expanded, reboot and make sure everything works. <br> <br>Let the system run for 12 hours or so and be sure that any old log files have been transferred that were missed in the past. (Compare to <a href="https://picomation.org/JENNYJUMP/JennyJump/" target="_blank">https/picomation.org/JennyJump/</a>)<br>Now you can use gzip or some other tool to compress the existing files.  You can then delete the existing files with names ending in '.log' (only if you want).<br>That should provide LOTS of space.<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">But be sure and check it often at first and every couple of weeks in perpetuity if you don't want to lose data.<br>If is OK, it should be possible to use compression tool </blockquote><div><br></div><div>Dave Witten, KD0EAG</div><div></div></div></div>