Ok. Solved it. You are right @n.m. Your comment worked for me.
Your expert is wrong. The reason of the inconsistent behaviour may be broken hardware. Try running memtest86 and whatever disk check utility your filesystem normally uses. – n.m.
Thanks.