I came across this problem with my RPi 2 model B many times this last month, and I wanted to ask your opinion about it. The problem occurred with Raspbian Jessie Lite, both the 23/09/2016 version and the previous one. I connect to the RPi via
ssh from my laptop. The RPi is adequately powered.
Basically, when I edit a file with
nano and I reboot or shutdown/start the RPi, I often find out that the file has been corrupted. This happened with configuration files for
samba, but also with
crontab. With corrupted I mean that usually half or more of the file has been overwritten by random sequences of
^@ and last time I even noticed that half of the
crontab had been copy-pasted to the file
/etc/transmission/daemon/settings.json which I previously edited. Another time the RPi failed to boot altogether.
My question is: is this a known bug/problem with either
nano or Raspbian? Or maybe it is a failing micro SD? Or, worse, could it be the RPi itself?
Currently I don't have a different micro SD to try out, I will edit the question as soon as I get one.