2
Or do I have to find a backup?
It had thousands of reallocated sectors.
I ran badblocks
on one partition but not others. Does that change the result?
I'm using Ubuntu. Some partitions are ntfs and some are ext4, if that matters.
Edit:
I believe the the bad sectors are because of it fell down to the floor for many times.
The first partition is a Ubuntu installation (for boot repair, or using Ubuntu on someone else's computer, etc), which has nothing important and I didn't use it for maybe at least a year. I didn't feel anything strange until one day I failed to boot a computer using it.
I ran badblocks
on two partitions, and found thousands of errors mostly only on that partition. But it is very slow when reading some files on the second partition, which is why I'm concerned.
I didn't check other partitions yet because it becomes obvious I will replace this disk, and I'm afaid of making things worse by reading and writing for more times.
2If you are asking if those files are corrupt, only you can answer that, by verifying if the files are not corrupt yourself. – Ramhound – 2015-08-27T11:43:14.677
@Ramhound Did you mean that, if the files are corrupt, it may return garbage data silently without reporting any errors? Then what are the ECC for? Only for correction, but I cannot know whether it is possibly corrupted? – user23013 – 2015-08-27T12:32:15.590
ECC only works if corruption can be detected and correct. A bad sector that isn't guaranteed. You can detect corruption by comparing it to a known good copy. – Ramhound – 2015-08-27T12:36:52.880
@Ramhound Is there any technical informations about how it is likely undetectable and corrupted? I don't have known good copies for every file. And some files are from hundreds of old CD-ROMs I wanted to get rid of, and I really don't want to backup those again. – user23013 – 2015-08-27T12:45:01.940
I don't know where your confusion is with my statements so I can't help. There are soft sector failures and hard sector failures. In the case of a soft sector failure, the HDD thinks the sector is bad, when it actually isn't. In the case of a hard failure, no amount of attempts to trick the HDD, will make the sector good. In a hard failure you normally have mechanical problems also. – Ramhound – 2015-08-27T12:47:25.213
@user23013: ECC detects and sometimes corrects errors. Undetected errors on modern drives are extremely rare to the point that they may as well never happen. The whole reason a bad sector exists is because the ECC detected corruption. – qasdfdsaq – 2015-08-27T12:51:22.660