I had a pretty scary moment today, when a folder I was editing a LaTeX report in simply disappeared!
Here's the system log:
pedro@X230t:~$ cat /var/log/syslog | grep sda1
Apr 13 13:59:59 X230t kernel: [ 1.163585] sda: sda1 sda2 < sda5 >
Apr 13 13:59:59 X230t kernel: [ 2.133568] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Apr 13 13:59:59 X230t kernel: [ 17.023928] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
I have been googling around about this and eventually found my data in the "trash" folder for reasons completely unknown to me. Even if I had erased the files by mistake, the OS should have complained that I was currently using a given file, right?
Why did this happen? How to prevent it from happening again?
I ran the disk utility and my hard drive seems healthy from the tests there.
I also ran sudo badblocks -v /dev/sda1
and got nothing.