Tuesday, August 25, 2015

hard drive - What is the fastest way to force hdd to reallocate bad sectors and discard the data?

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.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...