I'm having the following problem:
Some text files (also some binary files) on my system are listed with the correct file size but when I open them, they appear empty.
>ls -la
-rw-rw-r-- 1 user user 652 Mar 12 16:17 summary.txt
>cat summary.txt
>
If I display them in midnight commander I get a list of dots (......
) and in vi
a list of ^@
. I'm not sure when it happened, but I guess since the last reboot.
System:
- Linux ubuntu 3.8.0-37-generic #53~precise1-Ubuntu SMP Wed Feb 19 21:37:54 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
- ext4
Is there a way to fix it?
Edit: I guess it most be somehow correlated with a system reboot. Can I somehow find out by looking at the log files what happened?
Thanks.