Yes, you can check for and repair bad sectors on a hard drive, but the word “repair” is misleading: a physical bad sector cannot be fixed, only mapped out so the drive stops using it. The practical goal is to detect bad sectors early, recover the data that is still readable, and prevent further damage by replacing the drive or reallocating the failing area.
What a Bad Sector Actually Is
A sector is the smallest addressable unit of storage on a hard drive, typically 512 bytes or 4 KB. A bad sector is one that the drive can no longer read or write reliably. There are two kinds:
- Soft (logical) bad sectors: caused by corrupted data, a sudden power loss, or a failed write. The magnetic surface is fine; the data is just scrambled. These can often be overwritten or zeroed out.
- Hard (physical) bad sectors: caused by a scratched platter, a damaged read/write head, or age. The surface is actually damaged. No software can restore it; the drive’s firmware marks it as unusable.
Modern drives automatically reallocate failing sectors through a process called remapping. When the drive detects a read error, it copies the data (if possible) to a spare sector and marks the old one as bad. This happens silently in the background, which is why a drive can have a few bad sectors and still work for years.
How to Check for Bad Sectors
Checking is straightforward: you read every sector on the drive and see which ones fail. The operating system’s built-in tools do this, but they often hide the details. For a real check, use the drive’s own diagnostic utility (from the manufacturer) or a third-party tool that reads raw SMART data.
On Windows:
- Open Command Prompt as administrator and run
chkdsk C: /scan(Windows 10/11) orchkdsk C: /f(older versions). The/rflag tells chkdsk to find bad sectors and recover readable data. - Use the Storage Spaces or Optimize Drives utility to view the drive’s health status.
On macOS:
- Open Disk Utility, select the drive, and click First Aid. It will verify and repair the file system, but it does not do a deep sector-by-sector scan.
- For a true sector scan, use a third-party tool like DriveDx or a bootable utility from the drive manufacturer.
On Linux:
- Use
badblocks -sv /dev/sdato scan the whole disk. Add-wto write test patterns (destructive, only on an empty drive). - Check SMART data with
smartctl -a /dev/sda(from smartmontools).
Can You Repair Them?
The short answer: logical bad sectors can be repaired by overwriting them; physical ones cannot. When you run a repair tool, it does one of three things:
- Reads the sector and, if the data is recoverable, rewrites it to the same location (fixing a soft error).
- Reads the sector and, if it fails, tells the drive’s firmware to remap it to a spare sector (fixing a hard error by hiding it).
- Zeros the entire drive (a low-level format), which forces the drive to test every sector and reallocate the bad ones. This is the most thorough “repair” but destroys all data.
Tools like chkdsk, fsck, and manufacturer utilities (SeaTools, Data Lifeguard) all do variations of these. None of them can physically restore a damaged platter.
What Does the Repair Actually Do?
When you run a repair, the drive’s firmware handles the bad sector list. The operating system’s tool simply sends read/write commands and reports failures. The firmware then:
- Adds the bad sector to the pending list (SMART attribute 197).
- If a later write succeeds, it moves the sector to the reallocated list (SMART attribute 5).
- If the sector is truly dead, it stays on the pending list and the drive keeps trying.
This is why a drive can show “0 bad sectors” in Windows but have hundreds of reallocated sectors in SMART. The repair tool did not fix anything; it just hid the problem. The drive is still failing, just more slowly.
Common Mistakes and Misconceptions
Myth: chkdsk can fix a dying drive. It can’t. If you have physical bad sectors, chkdsk will only make the drive work harder, which can accelerate the failure. It is best used on a drive that is still healthy but has file system errors.
Mistake: ignoring SMART warnings. SMART (Self-Monitoring, Analysis and Reporting Technology) tracks attributes like reallocated sectors, spin-up time, and temperature. If a SMART test fails, the drive is telling you it is dying. Back up immediately.
Mistake: running a full format on a failing drive. A full format (not a quick format) writes zeros to every sector. On a drive with physical damage, this can cause the head to repeatedly retry on bad sectors, generating heat and vibration that can damage other areas.
When to Replace vs. Repair
If you have a few bad sectors and the drive is old, replace it. The cost of a new drive is far less than the cost of recovering data from a dead one. If you have a brand-new drive with a single bad sector, you can try to repair it (via a full format or manufacturer tool) and monitor it. But if the count grows, the drive is failing.
For SSDs, bad sectors are handled differently. NAND flash cells wear out and are mapped out by the controller. A single bad block is not a problem; a sudden increase in reallocated blocks or a drop in the drive’s health percentage is a warning sign. SSDs also have a limited number of program/erase cycles, so a full format is not recommended—it wastes write endurance.
Safety First: Back Up Before You Repair
Before running any repair tool, back up your data. If the drive is failing, every read attempt can cause more damage. If you cannot back up, clone the drive to a new one with a tool like ddrescue (Linux) or a commercial cloning tool. Then run the repair on the clone, not the original.
Also, never run a repair tool on a drive that is currently in use. Boot from a rescue disk or connect the drive as a secondary drive. Running chkdsk on the system drive requires a reboot, and it runs before the OS loads, which is safer.
Frequently Asked Questions
Q: How many bad sectors is too many?
Any number of reallocated sectors is a sign of wear, but a few (under 10) on an older drive may be tolerable. If the count is growing, or if you see pending sectors, back up and replace the drive.
Q: Can I use a bad sector repair tool on an SSD?
Yes, but it is rarely needed. SSDs handle bad blocks internally. Running chkdsk or a full format on an SSD just wastes write cycles. Check the drive’s health with the manufacturer’s tool instead.
Q: Does zero-filling a drive fix bad sectors?
It can fix logical bad sectors and force the drive to remap physical ones, but it does not restore the physical surface. It also erases all data permanently. Use it only if you have a backup or the data is worthless.
Q: Why does my drive show bad sectors but still works fine?
The drive’s firmware is hiding them. It remaps failed sectors to spare ones, so the OS never sees them. This is normal until the spare pool runs out—then the drive fails completely.
Q: Can bad sectors spread?
Physical bad sectors do not spread by themselves, but the damage that caused them (a scratched platter or failing head) can cause more. Logical bad sectors can spread if the file system keeps writing to a damaged area. That is why you should repair or replace quickly.
Q: Is it safe to keep using a drive with bad sectors?
It is safe for a short time if you have a backup and the drive is not making clicking noises. But every day you use it, you risk losing more data. Replace it as soon as possible.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Skip Ryobi and Milwaukee? Harbor Freight Tools to Buy
- Funny Subreddits That Make You Laugh
- Why Retro Gaming Is Still Worth Playing Today
- Neptune Facts That Will Blow Your Mind
- Survival Crafting Game Fatigue: Why & How to Fix It
- Sell Your EV Now Before Prices Plummet?