Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Reallocated Sectors

Direct answer

Reallocated sectors (SMART 5) are bad sectors the drive has replaced with spare ones. A few may be stable, but a rising count means the surface is degrading and the drive should be replaced.

When to use this

Use this when SMART shows reallocated sectors.

First 30 seconds

1. Reallocated sectors = bad sectors remapped to spares.

2. A few may be OK; increasing counts = replace.

3. In arrays, replace proactively.

4. Run long test.

5. Track trend.

Operational verification

bad sector → remapped → counter

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 reallocated 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
  • Keeping a drive whose count rises weekly.
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
  • Bad sectors replaced with spares.
  • Stable small counts may be tolerable.
  • Rising counts mean replace.
Key checks
  • smartctl -A /dev/sdX | grep -i reallocated — ID 5
  • smartctl -a /dev/sdX | grep -i 'grown defect' — SAS equivalent
  • history of values — trend
ReferenceHow it works1 section · depth on demand

Commands

smartctl -A /dev/sda | grep -i realloc

Record the value weekly; replace on steady growth.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Reallocated sectors: the drive has already replaced bad blocks

When a sector fails, the drive maps it to a spare area. Attribute 5 (Reallocated_Sector_Ct) counts those remaps. Reads and writes keep working, but the media is degrading.

# smartctl -A /dev/sdb | grep -E '^ *(5|196|197|198) '
  5 Reallocated_Sector_Ct   0x0033   098   098   010    Pre-fail  Always   -   184
196 Reallocated_Event_Count 0x0032   098   098   000    Old_age   Always   -   184
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always   -   8
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline  -   8

smartd.conf(5) documents -R ID[!] to report changes in an attribute's raw value, with ! marking the change as critical. The manual's example -R 5! warns on reallocated sectors.

/dev/disk/by-id/ata-WDC_WD80-XYZ -a -R 5! -C 197+ -U 198+ -m root

Interpretation

Raw count and trendAction
0Normal
Small, stable for monthsWatch; plan replacement in redundant storage
Increasing week over weekReplace soon
Increasing with pending or uncorrectable sectorsReplace now; check backups
VALUE at or below THRESHDrive predicts failure (-H will say FAILED)

Why the raw value matters

Normalised values drop slowly and the threshold is often very low, so a drive can have hundreds of remapped sectors and still report PASSED. Alert on raw-value changes.

Before replacing

Run a long self-test (smartctl -t long) and a scrub or RAID check. The aim is to rewrite or repair any data in weak areas while redundancy still exists.

Documented example, not captured output.

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

Quick reference

A drive keeps a pool of spare sectors. When a sector fails to write or read reliably, its address is remapped to a spare and attribute 5 increases. Large studies (e.g. Backblaze) have found drives with any reallocated sectors fail far more often than those without; a rising count is a replacement signal, especially in RAID where a second failure during rebuild is the risk.

smartctl -A /dev/sda | grep -i reallocated
smartctl -t long /dev/sda ; smartctl -l selftest /dev/sda
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 → Reallocated Sectors. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.smartmontools.org/ · confidence 94%
Confirmation

Confirm action

Continue?