I am working on a project that will use a Raspberry Pi or similar as an IOT device and am concerned about the life and reliability of the SD Card. I hope other users will post their experiences for everyone's benefit. The two most common issues I have read about are corruption of the card and wearing out the card by writing to it too often. There are probably other issues I have yet to consider.
Corrupt Cards. Many internet postings complain about corrupt SD cards that won't boot. I read one warning that removing or inserting an SD card while the device is powered up will corrupt the card. Are there other ways too?
Worn Out. A high frequency of IOT loggings and a high number of devices being logged could wear out an SD drive before the intended life of the product. Here are a few ideas to extend that life:
- Use a bigger SD card. Some sites say the Raspberry Pi is limited to 32 GB. This site lists cards up to 512 GB that are reported to work in a PI.
- Always use transactions to avoid individual writes to disk.
- Consider using a ramdisk or in-memory SQLite database. Also consider what happens if there is a power failure.
- Send everything to the cloud instead of storing it locally.
- Add storage with a USB flash drive.
Please post your good and bad experiences with SD cards and any other issues that may affect them.