Bad Block Remapping: How Drives Hide Failing Sectors


A drive that still boots, still lists its files and still passes a quick check can be quietly running out of usable media. Every modern hard drive and SSD carries a pool of spare sectors or blocks, and the controller uses that pool to replace locations that stop working. Bad block remapping is the process behind that substitution, and it is the main reason a drive with damaged media can keep running without the operating system ever noticing.

Remapping is a good thing while there is spare capacity left and a warning sign once it accelerates. The difference between a drive that occasionally retires a weak sector and one that is about to fail is usually visible in the SMART counters and in a full surface scan, not in the file system, which will keep reporting the drive as healthy until the day it stops responding.

Factory Bad Blocks vs Grown Bad Blocks

NAND flash and platter media are never perfect. At the factory, each drive is tested and blocks that fail are recorded in a permanent list, often called the primary or factory defect list. The controller skips those locations from the first boot and the operating system never sees them, which is why the usable capacity of a drive is slightly smaller than the raw media.

Grown bad blocks appear after the drive has been in service. Causes include wear on the write head, media defects spreading on a platter, marginal NAND cells losing charge retention, and mechanical shock. These are recorded separately, usually in a grown defect list, and each new entry means the drive has lost a little of its margin. A few entries over years are normal; a burst of them within weeks is not.

How Remapping Works

On a hard drive, when a sector cannot be read after internal retries, the firmware may mark it pending and move the data, if it can still be recovered, to a spare sector taken from a reserved area of the platters. On an SSD, the granularity is larger: a failing block is retired, valid pages are copied to a healthy block, and the mapping table is updated so the logical address points to the new location.

The important limitation is that remapping preserves data, not the drive. Each spare is one less unit of margin, and once the pool is exhausted the controller has nowhere to move failing data. Drives typically respond by switching to a degraded mode, reallocating more aggressively, or failing reads outright. Some SSDs drop to read-only mode when their available spare falls below a threshold, which protects existing data but prevents any further writes.

Reading the Counters

Three SMART attributes tell most of the story. Attribute 05, Reallocated Sector Count, counts sectors already moved to spares, so it only goes up after the drive has finished a repair. C5, Current Pending Sector Count, counts sectors that read unreliably and are waiting for a decision: a rewrite that succeeds clears them without adding to 05, while a failed rewrite turns them into C6. C6, Offline Uncorrectable, counts sectors the drive has given up on, meaning the data in them is already lost.

Because the counters mean different things at different stages, trace the direction of travel rather than judging a single number. A stable C5 that clears after a write is a far better sign than a small but rising 05. The relationship between pending and uncorrectable sectors is explained in more depth in SMART C5 vs C6.

Why Scanning Beats Waiting

The file system only reads what it needs. Files that have not been opened in a year, free space, and areas outside any partition are never touched, so a weak region can sit undetected until something important is stored there. Waiting for an error to surface is waiting for a data loss event.

A full surface scan reads every addressable block through the normal storage path and reports the locations that respond slowly or fail. That map matters more than a pass or fail verdict: errors clustering in one region suggest mechanical damage and a drive that will keep degrading, while a handful of isolated errors may be manageable if you copy the data off promptly. Scans are read-only, so they are safe to run on a drive that still holds your only copy, though a drive with many bad areas can degrade further under the load.

Imaging a Drive with Bad Blocks

Once errors are confirmed, stop using the drive for daily work. Every additional write risks pushing more sectors into the failing pool, and repeated reads of a weak area can make it worse. The two operations below are kept separate on purpose: the first only reads the media, while the second writes to another disk and overwrites it.

Operation 1: Check the Disk for Bad Sectors

Use this operation when SMART reports reallocated or pending sectors, or when a drive behaves erratically. The scan is read-only, so it is safe to run before you have a second copy, but a drive with many weak areas may degrade further under the load. Stop the scan if the drive starts making unusual noises.

Step 1. Launch Qiling Disk Master, select the suspect disk and click Surface test.

select the failing disk and open Surface test

Step 2. Run the scan to completion and record the error count and the areas it reports.

surface scan progress with error count on a disk with bad blocks

Operation 2: Clone the Data to a Healthy Disk

Use this operation after the scan confirms weak areas and before you attempt any repair. Cloning copies the data off the failing media; it does not repair the bad blocks, and everything already on the destination disk is overwritten. Use a target that is the same size or larger.

Step 1. Open Disk Clone from the main window.

open Disk Clone in Qiling Disk Master

Step 2. Choose the failing disk as the source disk.

choose the failing disk as the clone source

Step 3. Select the healthy disk as the destination and confirm that it can be overwritten.

select the healthy replacement disk as the clone destination

Step 4. Review the layout, click Proceed and wait for the clone to finish before touching the original again.

clone completed successfully to the replacement disk

FAQ

Does formatting a drive repair bad blocks?

No. Formatting rewrites file system structures on the same media. The drive's internal defect handling is unaffected, and repeated full formats only add wear or stress to areas that are already weak.

Is a drive with reallocated sectors still usable?

It can be, as a secondary drive for replaceable data, once everything important has been copied elsewhere. Never keep the only copy of anything on a drive whose reallocation count is climbing.

Can bad blocks disappear on their own?

Pending sectors can clear if a rewrite succeeds, which is why C5 sometimes drops. Sectors already remapped or reported as uncorrectable do not return to normal service.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it