I had a tar file which was of size 3.5gb which held all my programming code.
I was working with git trying to learn the repositories, so I created this file as a backup, so I could work my code directory and if anything were to go wrong I could just delete and extract it.
I did this a few times and it worked great, then I restarted and remounted my drive and the tar file was not 10kb instead of 3,5gb and all its contents were gone.
What could have happened?
What filesystem do you use? It can be a FS failure. Try
fsck
on that partition.And learn how to press the "accept answer" button, or you'll never get any responces.