Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Pending Sectors

Direct answer

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.

When to use this

Use this when SMART shows pending sectors.

First 30 seconds

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.

Operational verification

unreadable sector → pending → rewritten/reallocated

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Physical storage media and interfaces
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPhysical storage media and interfaces
Scope / prerequisiteUse this when SMART shows pending sectors.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Pending sectors could not be read.
  • They may be remapped on next write.
  • Any count means risk.
Key checks
  • smartctl -A /dev/sdX | grep -i pending — ID 197
  • smartctl -t long /dev/sdX — test
  • dmesg | 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.

ObservationInterpretation
Pending > 0, stableUnreadable data in those sectors; find and rewrite/restore affected files
Pending growingMedia degrading — replace the disk
Pending + reallocated growing togetherActive failure
Long self-test fails with read failure and LBALocation 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPhysical storage media and interfaces current

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%
Confirmation

Confirm action

Continue?