I have a Raspberry Pi which is run from a micro SD card. It boots fine and dandy, but there's something peculiar going on. If I for instance create a new file and reboot, the file is not there. For example:
$ ls $ echo 'bar' > foo.txt $ ls foo.txt // HERE BE REBOOT // $ ls $
When I run other commands, e.g.
sudo apt-get update && sudo apt-get upgrade, it always installs the same updates. For some reason there's no persistence whatsoever - the file system has frozen in-place.
How do I fix this? There's nothing of value on the SD card, so I'd be comfortable with wiping it and re-installing the OS. However, when I tried to
dd a new image to the card, it proceeded as expected, but when I booted up the Pi, the old OS still persists.