Today I finally figured out why some weird things have been happening to one of my camera Pi's (unfortunately I'm nowhere near it).
Every time I reboot the thing, all changes since December 2016 are lost. It's super weird. I can write to a file, read it back and it works just fine. (Though possibly the file is read back from cache of course). Reboot the pi and it is magically back to December 2016??? New/changed files are gone.
I know it is possible to do this on purpose if you should want to, with a ramdisk and overlayfs. This is not what's happening here, I checked. /boot/cmdline.txt loads /dev/mmcblk0p2 (the right partition) and mounts it directly through /dev/root.
Has anyone ever seen this before? I'm wondering if the card is broken but when I search for it I mainly find stories about cards that are corrupted. Not doing something like this.
Just wondering if I'm missing anything. Perhaps the filesystem is mounted readonly? Doesn't seem to be the case though when I check with mount. It says rw.
I just don't get this... I didn't notice until now because it does its thing pretty well (taking photos and submitting them to a remote web server) and I rarely make changes. But I made one recently and then I noticed.
PS: Image was written with dd and then expanded, but that's pretty standard practice and I've done it on many other pis. It's a pi 2 with a microSD card (not sure which brand etc as I'm 1,5 hours by plane away )