Way to ignore the contents of a thread and post an irrelevant answer.
I may not be good at software but I have been in hardware for decades, including working for Toshiba as a field applications engineer specifically in memory and micros.
http://www.snia.org/sites/default/educa ... 1-0-nc.pdf
http://www.zdnet.com/article/how-does-f ... rage-fail/
Google will find much more info.
Wear leveling is only as good as the controller inside the card.
I may have been too sarcastic? Sorry
But this sounded exactly like a typical failure mode issue.
Lucky the solution is easy, replace the card.
This is NOT a weakness of the Pi's, this is the strength of going this way.
Anyone designing CM's into products and are using eMMC should or would be aware of this issue.
It could still be a software issue but swapping cards can give a clue to this.
Pi's do run very complex software and SD cards are made for low prices.
There are now lots of Pi's and SD cards working out there, I am suggesting the OP has reached his card's limit of of endurance.
I have had cards do weird things on Raspbian, when I put PiCore OS on them I get more life out of them.
I now use Ultibo so my memory requirements have gone down to SLC based card sizes.
I can pull power on PiCOre and Ultibo at anytime as the OS's run from ram, I may lose data but not the OS.
There are very good reasons for me going this way, number one is SD card reliability
But that is just based on my 6 years experience of using Pi's.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges