0

A friend gave me an external hard drive that had been performing terribly to see what I can diagnose and fix.

First step was shucking the drive to eliminate the USB controller as a variable. Then I chucked it into an old PC and ran chkdsk. It took 2 full days (>40 hrs runtime), but it eventually completed with ~8000 bad sectors. The event viewer additionally reports controller issues - The driver detected a controller error on \Device\Ide\IdePort4.

I did run the HDD manufacturer's diagnostic tool (it only detected the drive when the enclosure controller was attached, but eh). It reported an error and stopped, and there is no documentation on the internet that says what the error code means.

Copying is nearly impossible as the transfer starts and the device starts thrashing immediately, rw heads clicking, while transfer is stalled. I do however suspect that the problem is only limited to a certain area of the hard drive.

So I wonder - is there some application out there that will map the problem areas and then create a partition around them or fill that area with hidden files or some tool to mark all slow areas as bad blocks or any other method to recover some functionality?

4
  • 2
    Yeah, as someone's who's actually managed that in the past... that's very much an ex-hard drive
    – Journeyman Geek
    Commented Nov 16, 2021 at 11:24
  • If you can find a controller board from the same make and model HD, I have had some success swapping that out. Otherwise... what @Journeyman Geek said, that is an ex hard drive. Commented Nov 16, 2021 at 11:31
  • 😄 Oh, I'm well aware the drive is likely toast. I'm not looking for data recovery (whatever needed saving has already been saved or lost) or regaining the use of the enclosure. At this point it's more of a hobby project / adventure in the land of storage technology. I'm already knee-deep in research on the Microsoft storage technology pages. @JourneymanGeek Since you said you already accomplished what I'm asking for: How did you do it?
    – martixy
    Commented Nov 16, 2021 at 11:40
  • Its a bit of a minor SE legend - I reformatted the drive with a full format. Its been years but I think I used the ridgecop fat32 formatter, then formatted it back to NTFS. Ran it till it errored, and reformatted it every time stuff went bad...
    – Journeyman Geek
    Commented Nov 16, 2021 at 11:47

3 Answers 3

1

So I wonder - is there some application out there that will map the problem areas and then create a partition around them or fill that area with hidden files or some tool to mark all slow areas as bad blocks or any other method to recover some functionality?

ddrescue will provide you with that information about unreadable areas with its log file. Creating a partition around defective areas is not a smart concept but it shows up irregularly on this site. Why splitting the space of hard drive in potentially small unsuable areas when FAT and NTFS file systems can store information about bad sectors? Invoking chkdsk with the right parameters does the job.

Unless the defective drive is the last one available and assuming you work on the European Space Station and the pizza shuttle has already left for the day there is no need to waste time on broken drives.

1
  • It might seem like a waste of time normally, but it did present an excellent learning opportunity. The results of which I detailed in my own answer.
    – martixy
    Commented Nov 17, 2021 at 12:02
0

Modern hard drives reserve some fraction of their space as replacement blocks. New drives typically have a small number of bad blocks, which, when found, are replaced out of this pool.

As a drive ages, a few more blocks may go bad and are replaced.

Eventually, the drive may collect damage caused by debris floating around in the drive. When this occurs, it will rapidly gain new bad blocks and the replacement pool will be quickly exhausted. The SMART algorithms and internal diagnostics will pick up on this before the pool is exhausted and make warnings available to the operating system and the BIOS before the drive fails -- although this is not always relayed to the user.

By the time that tools like chkdsk are needed to find bad blocks, the drive has exhausted all of its replacement pool and the drive is well on the way to its final death and data loss is inevitable. Attempts to "repair" the drive with chkdsk will only make things worse as it will spread the debris around inside the drive and cause new scrapes on the surface until even the internal calibration tracks are damaged and the drive will then fail to even initialize properly on power up.

The drive you have is basically now bricked. It is long past being fixable. Any "refurbishing" would basically need to be done at the factory and would involve a thorough cleaning and replacement of the internal magnetic media and likely the drive heads as well, and probably most of the rest of the internal active parts too.

3
  • This is a reasonable answer, but also lazy and boring. After a few hours of research and a fortuitous find, I believe I have a better solution. It is currently running, and if it comes to fruition I will come back and post it here.
    – martixy
    Commented Nov 16, 2021 at 14:06
  • Boring but still very true, been there tried similar things... ;.)
    – Hannu
    Commented Nov 16, 2021 at 17:35
  • This answer comes from years of experience with old tired drives that died. I've taken apart drives like this to see the physical damage. I've have people ask me to try to recover data from drives like this. Data recovery is rarely possible, and requires expensive services that use microscopes. Continued use of the drive is dumb, because even if it sort of works now, in a week or two it will stop.
    – user10489
    Commented Nov 17, 2021 at 0:40
0

This is obviously not a new problem and people have thought about the same solutions I had in mind before.

Some research revealed the following resources:

Repartition Bad Drive [Windows Program] - does almost exactly what I wanted on the tin. Will scan your drive and create partitions around the bad areas. Can be configured with min partition size and buffers, to avoid making too many partitions. Creates MBR partitions and RAW volumes. Says IDE mode is faster than AHCI. When I ran the program, it ended up a bit buggy, with numbers going out of bounds (>100% progress, negative sector counts), but the run ended successfully.

HDDScan [Windows program] - can create a list of bad LBAs.

ddrescue [Linux program] - r2d3 says:

ddrescue will provide you with that information about unreadable areas with its log file.

Basic and dynamic disks [Article] - Since you might end up with many scattered partitions, you might need to convert your disk to a dynamic disk, to allow one volume to span across multiple non-contiguous partitions. Also explains differences between MBR and GPT.

Hide Data in Bad Blocks [Article] - A security article, that nonetheless deals with exactly the techniques required to isolate bad blocks manually. Written from a linux perspective. Can be combined with any method that gives you a list of your bad blocks.


Initially, based on the pattern of chkdsk activity (lower numbered sectors being slow to scan, while being fast at the end) I suspected that the latter sectors were in a fully usable state. Ultimately the drive I have ended up completely bricked, as the pattern of the RW head audibly thrashing/clicking extended to all areas of the drive when I tried to apply the techniques above. I suspect it's a controller issue or a head crash or something more global at this point.

1
  • All the bits have fallen off your platters. If they are glass (which some are), on a clear disk you can seek forever.
    – user10489
    Commented Nov 17, 2021 at 12:06

You must log in to answer this question.

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