Anyone got any idea how I could test if an SD card is starting to fail?

I use many cards in various Raspberry Pi projects some run 24/7

Up until now I have been swapping out the cards as a precaution ever year or so.

This is getting a little annoying so I would like to run some sort of stress test on cards to try and tell if they are failing.

I have about 3 cards that have slowed down a lot so suspect they might be dying (they are not fake i don’t buy cards online I use my local stores that are authorized resellers) they have been in service for a long time.

What software can do this. Guess I need something that’s read and writes constantly and check for inconsistencies

If nothing is available what sort of test should I do and perhaps I could make something in Python.

  • Pvt-Snafu@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    SD cards are not the most reliable media in general. I would just go with an SSD at this point.

    • raymate@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Agreed but I’m doing raspberry pi projects with SSD it’s not cost affective I have currently 9 raspberry Pis that run 24-7 so I would need 9 SSD and 9 USB to SATA adapters. So we are talking about $200 for the cheapest SSD and another $140 for adapters.

      9 SD cards about $50