1

I have a 2TB Seagate HDD that I believe has reached the end of its life in my primary Windows 11 box. It is the data drive - it contains things like video games, source code (backed by a remote repo), documents (backed by Google Drive), and lots of random stuff (e.g. Stable Diffusion checkout). For most intents and purposes, its loss would not result in a noticeable data loss, but I also don't want to re-create everything on it.

After noticing some performance issues with it I bought a new 4TB WD Red HDD and tried transferring all files to it using ROBOCOPY (for the reference, I think the first incantation was "robocopy D:\ H:\ /MIR /XD $RECYCLE.BIN "System Volume Information" although MIR is quite meaningless for a brand new drive).

That's when I discovered that the source drive had issues, with files failing the CRC32 check. I re-ran ROBOCOPY anyway with /R:0 /W:0 and it copied a bunch of data, easily 90% of the content, but now I don't know what's missing. Since I have WSL, I tried ddrescue on a few files with encouraging results (e.g. one wave file recovered without any noticeable issues) whereas a random Java file from one of the myriad Android SDKs appears to be a bit sus.

This gives rise to a number of questions:

  1. Given that I have evidence my drive has a non-trivial number of bad sectors to the point that it lead to (alleged) data loss, what is a strategy for meaningfully copying everything? My initial thought it trying to find the delta at a fairly high-level directory level and delete anything that is easily downloadable (it's better to not have an Android SDK 21 than to have random java files missing or corrupt). The trouble is that if feels tedious - I am guessing the problem is widespread and random. What would be a good tool (Windows or Linux) to give me a summary of discrepancies? What will have good usability?

  2. More importantly, I was obviously caught off-guard by bad sectors/data corruption. What are the best practices, on Windows, to prevent this? Is there a regular scan job I can do (maybe weekly, at night) to do a full check? chkdsk ok? A full HDD check is expensive to run, are there tools that can do this either randomly or incrementally?

  3. Now that I've established the HDD is "bad", how do I determine the amount of bad? Can it be repurposed for something more volatile if I do a full format, hopefully remapping bad sectors? For instance, I currently have another PC serving as a media center which uses an external HDD. For esthetical reasons, would it make sense to copy data to my bad HDD and keep using it until it fully dies? Or is it just begging for trouble? Should an HDD be tossed at the first corruption, meaning that whatever magic it was using for its sector remapping got pushed beyond breaking point?

Update: SMART screenshot: enter image description here

7
  • 1
    Bad sectors would result in errors, error messages, not silent corruption. I see no mention of read errors and such in your question so I have no idea why you're asserting bad sectors. Commented Aug 1, 2023 at 20:07
  • 1
    What CRC32 check are you referring to? Commented Aug 1, 2023 at 20:08
  • 1
    Please add SMART report / screenshot (CrystalDiskInfo or similar). Commented Aug 1, 2023 at 20:09
  • I am seeing "Data error (cyclic redundancy check)" when coping or tried to otherwise read a number of files - I was assuming bad sectors.
    – davidair
    Commented Aug 1, 2023 at 22:26
  • Added a SMART report from CrystalDiskInfo
    – davidair
    Commented Aug 1, 2023 at 22:31

2 Answers 2

-1

Answers :

  1. Use a disk-comparison tool such as WinMerge.
    For more tools and details see How to Compare Folders and Files in Windows 10.

  2. Keep backups and also keep an eye on the SMART attributes of the disks.

  3. A bad disk should only be repurposed to the bin.

6
  • If S.M.A.R.T. stats don't show an issue, corruption could have been caused by external issues, e.g., power glitches. In that case, after salvaging as much as feasible, I'd reformat the disk and test it (e.g., lifewire.com/free-hard-drive-testing-programs-2626183). And if it's bad, there are strong magnets inside, and the polished platters are good for experiments and for decoration. Commented Aug 1, 2023 at 17:45
  • Are there any tools that can do this on a scheduled basis (e.g. via Task Scheduler) and report warnings via the Windows Notification Center? I'd rather not add myself calendar reminders "make sure to check SMART every week or so" :)
    – davidair
    Commented Aug 1, 2023 at 22:35
  • @davidair, why would you want to test it periodically? If S.M.A.R.T. numbers are bad after removing all partitions and reformatting, they'll only get worse. Commented Aug 1, 2023 at 23:50
  • Not for the bad disk, for the good ones. All disks eventually die, I’d like an advanced warning beforehand.
    – davidair
    Commented Aug 2, 2023 at 2:26
  • For instance, found sourceforge.net/projects/smartmontools - I would suppose it would make sense to run in on a regular basis?
    – davidair
    Commented Aug 2, 2023 at 4:31
2

To detect sector corruption in an early stage use software like smartmontools upon noticing strange behaviour of your system. It is not expensive in the sens that it provides you with some bookkeeping values of your firmware. If you are paranoid you can run that software daily if you want to.

Use a file system that incorporates checksums, I think on Windows ReFS does. Otherwise, when p.e. using NTFS instead you have to manually checksum your files, save them and have to compare your file trees against your checksum in the future, update your checksum database for new files etc.

Follow the advice user Joep van Steen gives in his comment. That will yield a drive that only deals with logical errors instead of physical ones. Obviously a part or all pending sectors (as stated in your report picture) will not be readible. That will result either in file corruption and/or file system dammage.

Do duplicate your disk a second time to have a copy to play with. Do not rely on being able to be able to duplicate the faulty disk again as using a broken disk will most probably aggravate the dammage issue and resulting in a decreasing number of sectors being duplicated.

You can apply any recovery software you want to on your second duplicate to see what that gives. If you fail you can still consult a professional recovery lab. Depending on your budget and the importance of your data you might even consider having the lab doing their job without you duplicating your faulty drive first.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .