Can a HDD With Bad Sectors Be Repaired?
In this article
No, a hard disk drive (HDD) with true bad sectors cannot be repaired in the sense of restoring the damaged physical area to full working order. Bad sectors are permanently damaged spots on the magnetic platter, and the drive's own firmware can only mark them as unusable and remap them to spare sectors. You can often keep using the drive for a while by forcing that remapping, but the underlying damage remains and typically spreads. The practical answer is: bad sectors can be managed or worked around, not fixed.
What Bad Sectors Actually Are
A hard drive stores data on rotating magnetic platters, divided into tiny addressable blocks called sectors (traditionally 512 bytes, now often 4096 bytes). A bad sector is a block that the drive cannot reliably read from or write to. There are two broad types:
- Physical bad sectors — the magnetic surface is damaged (a scratch, a manufacturing defect, wear from a head crash, or contamination). These are permanent. No software can heal them.
- Logical bad sectors — the data stored in the sector is corrupted (for example, due to a power loss during a write), but the magnetic surface itself is fine. These can sometimes be corrected by overwriting the sector with new data, which forces the drive to re-evaluate it.
Most drives ship with a small pool of spare sectors reserved for exactly this situation. When the drive detects a sector that fails a write-verify test, it can transparently remap that logical address to a spare physical sector. This is called sector remapping or reallocation. It hides the problem from the operating system, but it does not repair the damaged area — it simply stops using it.
How the Drive Handles Bad Sectors Internally
Modern HDDs use S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) to track health attributes. Two attributes are directly relevant:
- Reallocated Sectors Count — the number of sectors that have been remapped to spare areas. A non-zero raw value means the drive has already found and hidden defects.
- Pending Sectors Count (also called Current Pending Sector Count) — sectors that have been flagged as unstable but not yet remapped. These are waiting for a write operation to determine whether they are truly bad.
When you write to a pending sector, the drive tests it. If the write succeeds and verifies, the sector is cleared from the pending list. If it fails, the drive remaps it and increments the reallocated count. This is why a full disk write (such as a zero-fill or a surface test that writes) can sometimes "fix" logical bad sectors — it forces the drive to resolve them. But if the surface is physically damaged, the remap just moves the problem to a spare sector, and the spare pool is finite. Once spares run out, new bad sectors become visible to the operating system and data loss becomes likely.
Can You Repair a Drive With Bad Sectors? The Realistic Options
If your goal is to keep the drive in service, there are a few approaches, but none of them restore the damaged platter. They are management strategies:
- Back up immediately. Before attempting anything, copy important data to another drive. Bad sectors can multiply quickly, and running diagnostics can stress a failing drive.
- Run a surface scan and write test. Tools like the drive manufacturer's own diagnostic utility (for example, Seagate SeaTools or Western Digital Data Lifeguard) can perform a full surface test. A read-only test identifies bad areas; a write test (often called a zero-fill or low-level format) forces the drive to remap pending sectors. Note: a zero-fill erases all data on the drive.
- Check S.M.A.R.T. attributes before and after. Use a utility such as CrystalDiskInfo (Windows) or smartmontools (cross-platform) to read the reallocated and pending counts. If the reallocated count is stable and low (a handful of sectors), the drive may remain usable for non-critical storage. If it climbs, the drive is deteriorating.
- Consider a low-level format (zero-fill) only as a last resort for a non-critical drive. This writes zeros to every sector, forcing remapping of pending sectors. It does not repair physical damage, and it will not bring back data. Afterward, re-check S.M.A.R.T. If the reallocated count jumps significantly, retire the drive.
What you cannot do is reverse physical wear or platter damage. No software, firmware update, or "bad sector repair" tool can regenerate magnetic media. Products that claim to "repair bad sectors" typically just force remapping or overwrite logical errors — they are not performing a physical repair.
When to Retire the Drive Instead of Repairing
Bad sectors are often a symptom of a drive heading toward failure. Consider replacing the drive if any of the following apply:
- The reallocated sector count is high or increasing between checks.
- The pending sector count does not clear after a write test.
- You hear clicking, grinding, or repeated spin-up sounds — these suggest mechanical problems that often precede a head crash.
- The drive is used for important data or an operating system. A drive with known bad sectors is not trustworthy for either.
- The drive is old and has already logged many power-on hours. Wear is cumulative.
For a secondary drive used for temporary files or backups you can afford to lose, a drive with a small, stable number of remapped sectors may remain usable for a while. But it should never be your only copy of anything important.
Common Misconceptions About Bad Sector Repair
Several myths persist. One is that CHKDSK or a similar file system checker can repair bad sectors. In reality, CHKDSK (Windows) can mark bad clusters as unusable in the file system and attempt to recover readable data, but it does not repair the physical sector. It may also trigger remapping by writing to sectors, but that is the drive's firmware at work, not the checker. Another myth is that a low-level format "restores" a drive. It only forces remapping and erases data. Finally, some believe that bad sectors are always caused by software. While logical errors exist, physical bad sectors are a hardware issue and are not reversible.
Frequently Asked Questions
Can bad sectors be repaired with software?
No software can repair physical damage to the magnetic platter. Some tools can force the drive to remap pending sectors to spare areas, which hides the problem, and can fix logical errors by overwriting data. But the damaged physical sector remains damaged.
Does CHKDSK fix bad sectors?
CHKDSK can scan for bad sectors and mark them so the file system avoids them. It may also trigger the drive to remap sectors by attempting writes. It does not repair the physical media. Running CHKDSK with the /r switch attempts to recover readable information and can take a long time.
How many bad sectors are acceptable?
A small number of reallocated sectors (for example, under 10) that stays constant over time is often considered tolerable for a non-critical drive. Any pending sectors, or a reallocated count that increases, is a warning sign. There is no universal threshold — monitor the trend.
Can a drive with bad sectors still be used?
Yes, but with caution. It can be used for non-essential data if the bad sector count is stable and low. It should not be trusted with important files or as a system drive. Always keep backups.
Will a low-level format fix bad sectors?
A low-level format (zero-fill) writes zeros to every sector, which forces the drive to test and remap pending sectors. It can clear logical bad sectors and hide physical ones by remapping, but it does not repair the physical damage. It also erases all data on the drive.
Do SSDs have bad sectors?
SSDs use flash memory and do not have magnetic sectors in the same way, but they can develop bad blocks. They also use spare blocks and wear leveling to manage them. The principles are similar: bad blocks are remapped, not repaired. S.M.A.R.T. attributes for SSDs include reallocated block counts and wear indicators.