I know there was a fairly common corruption issue with older versions of software. I believe that has been fixed with new ones (I don't recall which piece of software, exactly.) Make sure everything is up to date when you reinstall:
Code: Select all
sudo apt-get update
sudo apt-get upgrade
These steps may take quite a while if your software is very far out of date. Especially the upgrade step.
The only sure way to keep your data from being lost is to keep a backup. Flash memory, especially the cheaper cards, are not known for their longevity. In fact, some are known for dying early and often. Flash has a life expectancy of about a million write cycles. You'd be surprised how fast you can chew through that number when you're running an OS on it. Even faster if you're using a cheap card that starts out with sectors marked bad. (The cheaper models are usually just good models that didn't score high enough in the quality control tests.)