|
Thats a well known issue with standard distributions, and there are fairly well known ways around it... Basically, don't do continuous writing to the card, turn off atime updates,possibly even work entirely from the initrd if possible.
Also, use proper industrial sd cards, these have proper wear-levelling and bad-block management unlike the consumer cards. In other words, treat it as an embedded system and tailor it to your use-case. |
I've found that the only working recipe for a stable Raspberry Pi is a USB hard drive (prefer SSD but mechanical also fine), and a UPS.
My simple advice is: do not try to run Raspberry Pi from SD cards in "production" under any circumstances on a large scale, as you will run into filesystem corruption and create a lot of work for yourself.