Summary
My Pi has crashed a few times recently. I'm investigating ways to make it stop, but I'm also concerned that there are immediate implications to my file system.
Background
After one crash, I couldn't boot the Pi properly. It complained of filesystem corruption, so I ran fsck
on both SD card partitions. It could then boot, but several services didn't run. For example, apache2
wouldn't start, complaining that there was no group www-data
.
I noticed that /etc/groups
was now a symlink pointing to ../init.d/<something_I_forget>
. I restored it, and the Pi now started fine.
How could this file get corrupted in such a strange way? Also, I am now concerned that other files are similarly corrupted, and I'll only notice later down the track. Is this possible? Can I check, or should I restore an older backup?