I used tar to archive some important files. After converting all my files to .tar
I tested it and there was no problem so I deleted all my files. Next day I tried it again and I got this error:
tar -xvf my_file.tar
/*
* tar lists all my files here but extract just some of them
*/
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: my_file.tar: Cannot read: Input/output error
tar: Too many errors, quitting
tar: Error is not recoverable: exiting now
Even when I try to copy my tar file to another directory I get this error:
Error splicing file: Input/output error
My files were stored on an NTFS
partition and on an external hard drive. Ubuntu Disks
program says SELF-TEST FAILED
when I press Start Self-test
. What can I do now to recover my files? They are important stuff of my university.
Thank heavens I could recover all my files except two of them using a Windows system and Winrar. The problem was bad sectors. I could extract my files individually. I found that both Winrar and Tar don't extract the rest of an archive when they face a bad sector. I couldn't extract my files one by one by Tar but Winrar could do the job.