Use this when SMART shows pending sectors.
Pending Sectors
Pending sectors (SMART 197) are unreadable sectors waiting to be rewritten or remapped. Any non-zero count means read errors are happening; run a long test, check backups and plan to replace the drive if it grows.
1. Pending sectors couldn't be read and await reallocation.
2. Can clear when rewritten.
3. Non-zero = risk of data loss on that sector.
4. In RAID, rebuild/scrub rewrites them.
5. Replace if they grow.
unreadable sector → pending → rewritten/reallocated
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Ignoring pending sectors before a rebuild.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Pending sectors could not be read.
- They may be remapped on next write.
- Any count means risk.
smartctl -A /dev/sdX | grep -i pending— ID 197smartctl -t long /dev/sdX— testdmesg | grep -i 'medium error'— read errors
ReferenceHow it works1 section · depth on demand
Commands
smartctl -A /dev/sda | grep -i pending
smartctl -t long /dev/sda
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Pending sectors: unreadable now, not yet remapped
A Current Pending Sector (ATA attribute 197) is a sector the drive could not read. The drive waits for a write to that sector: if the write succeeds the counter drops; if not, the sector is reallocated (attribute 5 increases).
# smartctl -A /dev/sdb
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 8
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 24
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 24
# smartctl -l selftest /dev/sdb
smartctl(8) documents -A (attributes with normalised value, raw value, threshold and pre-fail/old-age type), -l selftest and -t short / -t long.
Raw values are the signal
VALUE/THRESH often stay "healthy" long after the raw count starts growing; smartctl -H can still say PASSED.
| Observation | Interpretation |
|---|---|
| Pending > 0, stable | Unreadable data in those sectors; find and rewrite/restore affected files |
| Pending growing | Media degrading — replace the disk |
| Pending + reallocated growing together | Active failure |
Long self-test fails with read failure and LBA | Location of the first bad sector |
What to do
1. Make sure backups or redundancy are good — do not wait.
2. Run smartctl -t long /dev/sdb and read the result with -l selftest.
3. In a RAID/ZFS array, a scrub rewrites bad sectors from redundancy; on a single disk, restore the affected files.
4. Replace the disk if counts keep rising.
Behind a RAID controller, address the physical disk with -d megaraid,N or the controller type.
*The SMART raw counts illustrate unreadable blocks awaiting reassessment; they do not describe an inspected drive.*
How it works
A pending sector could not be read reliably and is waiting to be remapped. When it is next written successfully, the drive either clears it or reallocates it to a spare.
Reference
Pending sectors could not be read reliably. Writing to them forces remap or clears them. A non-zero count during a RAID rebuild risks read errors — act quickly.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in SMART & Disk Health → Pending Sectors. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.smartmontools.org/ · confidence 94%