yesterday night my laptop executes a hard shutdown because my battery was out of charge. After the reboot
Xorg hangs and the troubleshooting was pretty hard. A first file system check of my
ext4 partition yields no error. Further I began to check the related
logs and found nothing irregular. Since i use
xdm i eventually looked in
/var/log/xdm.log where i found the following line, that i had overlooked several times before
/usr/bin/X: symbol lookup error: /usr/lib/libpciaccess.so.0: undefined symbol: gzopen64
Then i invoked
apt-get install --reinstall libpciaccess
and after a reboot everything was fine again.
I know that a hard shutdown can corrupt data because the disc cache can't be physically written anylonger. Since i have no deeper understanding of the file systems interna i wonder why
/usr/lib/libpciaccess.so.0 was harmed by the shutdown? Particularly given that the system only reads from a shared library so probably corruption is less likely to occur in those sectors where those are located.
Furthermore i would like to know which filesystems are more resistant to hard shutdowns and which are less.
Thanks for your time and best regards