The fastest way to force hdd to reallocate bad sectors and discard the data

hard drivehard-drive-failure

I either own or am in charge of (at work) a lot of HDDs that are either part of raid arrays, or there are backups of the data elsewhere.

When a disk is starting to fail and going slow because it's repeatedly trying to recover data out of an area is very annoying. I don't need the data and I'd like to either fix or force some errors on the failing drives so that hdd manufacturers are more likely replace them under warranty.

I realise there are other QAs about bad sectors but they are typically talking about recovering data. I'm not interested in what data is on the drive. Essentially I'd like to rapidly force the SMART reallocated sector count up over the failure threshold as quickly as possible or have the disk stabilise with all bad sectors reallocated and no more occurring. Currently the steps I take are

  1. quick format the drive
  2. if there was any errors go to step 1
  3. use a powershell script to copy files to fill the entire disk
  4. if there were any errors delete the problem files and goto step 3
  5. verify contents of all files are the same as the source file
  6. if there were any errors go to step 1

Usually the disk stops working completely or I become fed up with how many days this takes before the reallocated sector count reaches its failure threshold.

Sometimes I try the technique of leaving a file in a special bad files folder I make that I know has a bad sector in the file as my own marker to not use those sectors.

Are there any other tools or methods that could be faster?

Edit: I should also point out that I'm not concerned about securely wiping the drive either. If someone physically obtains the disk and can read any data off it good for them.

Best Answer

You will need to find an older computer you can hide in a corner to let these programs run. If the drive is lightly damaged it can finish in <2 hours depending on the size of the hard drive.

If you set dban (dariks boot and nuke) to 2 or 3 passes it might be faster. Maybe mhdd (with remap turned ON)

Depending on the size of the hard drive, it does not like multi-TB hard drives. Spinrite from grc.com.

All 3 methods are set and forget. Check it a couple times a day to see if they are done.

Related Question