Author Topic: Raspberry PI 4 SDXC life concern  (Read 471 times)

0 Members and 1 Guest are viewing this topic.

Offline Wayne Orwig

  • Member
  • *
  • Posts: 18
Raspberry PI 4 SDXC life concern
« on: April 17, 2020, 10:43:51 AM »
I have a Raspberry PI 4, that pulls the data from my weather station off of ambientweather.net once a minute. I make a copy of that data, once every fifteen minutes to look for trends. The Raspberry PI is a web server that also randomly displays a new photo from a directory once per minute. So in the end, I have a web page that is a 'digital picture frame', that also displays my weather. The scripts that do this, mostly rename files, manipulating directories, not actually copying or moving a lot of data.

The question I have is related to the life of the SDXC card. I have a 64GB card, that is mostly empty. I am hoping the card is smart enough to spread the wear out.
Does anyone have a clue about how long those cards last?
Should I start working on putting the file system onto an external hard disk?

I keep it backed up well, so data loss isn't the issue, just the annoyance of setting everything back up.

Offline vreihen

  • El Niņo chaser
  • Forecaster
  • *****
  • Posts: 1098
  • K2BIG
Re: Raspberry PI 4 SDXC life concern
« Reply #1 on: April 17, 2020, 11:31:47 AM »
WeeWX has this page about using RAM disks for scratch files:

https://github.com/weewx/weewx/wiki/Minimize-writes-on-SD-cards

I have been using these strategies along with clone/rotate my weather Pi's onto fresh SD cards every year, and have not had a data loss so far.  The last round of SD cards that I bought were dashcam-grade, which will hopefully provide a little bit of extra insurance.....
WU Gold Stars for everyone! :lol:

Offline rosegeek

  • Member
  • *
  • Posts: 31
    • Canton MI USA PWS
Re: Raspberry PI 4 SDXC life concern
« Reply #2 on: April 25, 2020, 08:37:29 PM »
I save my data on a USB drive instead.  This includes CRONTAB log files, automatic timelapse video creation.  That way, I won't wear the SD Card where the OS resides.
Davis VP2, Meteobridge TPLink, PWS linked to Rachio Sprinkler System.
http://weather.gloryhomemi.com
http://weatherconsole.gloryhomemi.com

Offline Wayne Orwig

  • Member
  • *
  • Posts: 18
Re: Raspberry PI 4 SDXC life concern
« Reply #3 on: April 29, 2020, 06:07:08 PM »
I got some USB memory sticks. Now to move everything that I can that is written to to the USB stick.

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7480
    • Eagle Bay Weather
Re: Raspberry PI 4 SDXC life concern
« Reply #4 on: April 29, 2020, 06:26:37 PM »
Install your OS to USB and use a copy/copy to another USB for backup.
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7480
    • Eagle Bay Weather
Re: Raspberry PI 4 SDXC life concern
« Reply #5 on: April 29, 2020, 06:27:33 PM »
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7480
    • Eagle Bay Weather
Re: Raspberry PI 4 SDXC life concern
« Reply #6 on: April 29, 2020, 06:28:32 PM »
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 620
    • Wilmslow Astro
Re: Raspberry PI 4 SDXC life concern
« Reply #7 on: April 30, 2020, 06:54:49 AM »
I use a small USB 3.0 SSD disk, you can pick up 120GB SSDs pretty cheap. The SSD is more durable, and the extra size means more wear levelling as well. And yes redirect all your temporary/transient files to a memory disk.

Only slight issue is the pi 4 unlike the 3 cannot currently boot from a USB disk, so you still need a boot partition on an SD card.
Mark

Offline Wayne Orwig

  • Member
  • *
  • Posts: 18
Re: Raspberry PI 4 SDXC life concern
« Reply #8 on: May 01, 2020, 03:50:21 PM »
Well poo.

I moved most of my scripts and working files to the external memory stick. I have a script that runs in the middle of the night that backs everything up to a NAS drive. Now, that hangs up randomly.

Always something.