How to Deal with Bad Sectors on Hard Drives - Part 2
In this newsletter series, we are exploring what’s new and next in the world of storage and drives. You can subscribe to never miss an article.
In this two-part article on “How to Deal with Bad Sectors on Your Hard Drive,” we have already looked at what bad sectors are and what causes them. We will now look at how your hard drive deals with them and what you can do to minimize the effect of bad sectors.
How Does Your Hard Drive Deal with Bad Sectors?
Some bad sectors are not permanent and can be fixed on the fly. For example, drive electronics use error detection and correction methods, such as Error Correction Code (ECC) and Partial-Response Maximum-Likelihood (PRML), to identify and repair bad sectors.
Other ways of recovering data from non-permanent bad sectors include:
If the bad sector is more permanent and cannot be fixed on-the-fly, the drive typically adds the sector location to its list of sectors that are pending reallocation. The next time that the drive writes to this sector, it will write to the pending reallocation location and immediately read from it afterwards. And if the read is not successful, the sector will be reallocated to a spare sector on the drive. A permanent mapping within the drive’s reallocated sector table will be created between the old bad sector and its new spare sector location, so that any reads or writes to that bad sector will automatically be redirected to the spare sector in the future. The drive can only perform this sector reallocation process a finite number of times.
How Can You Minimize the Effect of Bad Sectors?
The best way to minimize the effect of bad sectors is to prevent them from happening in the first place:
领英推荐
But bad sectors can happen even if you use your drive under ideal operating conditions, so we further recommend that users:
Doing the above can go a long way towards keeping your data safe while your drives are functioning. But all drives will eventually fail, no matter what we do to keep them healthy during their lifetime. To anticipate your drives’ ultimate demise, we recommend using ULINK’s DA Drive Analyzer, which uses AI to predict drive failures.
?
?
Photo Credit: kynny