Use this when reading SMART data to decide whether a drive is failing, or when setting up disk health monitoring.
SMART & Disk Health
SMART and disk health monitoring reads a drive's self-reported attributes — reallocated and pending sectors, wear, temperature, errors — with tools like smartctl to replace drives before they fail.
1. SMART monitoring: smartd with email alerts.
2. Schedule short/long tests.
3. Track key attributes.
4. NVMe: critical_warning, media_errors, percentage_used.
5. Replace on warning.
drive → SMART → smartd → alert
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
sudo smartctl -x <device>Primary Commands
Configuration and operational commands for this Topic.
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 Step-by-step failure diagnosis Narrow the fault
SMART healthy does not show a disk/path is failure-free, and one attribute does not show causation.
Subtopics
Go one level deeper into this subject.
SMART (Self-Monitoring, Analysis and Reporting Technology) is the drive's built-in health reporting.
Subtopic SMART AttributesSMART attributes are numbered health counters with current, worst and threshold values plus a raw value, such as 5 reallocated, 197 pending, 198 uncorrectable and 199 CRC errors.
Subtopic Reallocated SectorsReallocated sectors (SMART 5) are bad sectors the drive has replaced with spare ones.
Subtopic Pending SectorsPending sectors (SMART 197) are unreadable sectors waiting to be rewritten or remapped.
Subtopic Uncorrectable SectorsUncorrectable sectors (SMART 198, offline uncorrectable) could not be read even with error correction, so data in them is lost.
Subtopic SSD WearSSD wear shows how much of a drive's rated endurance is used, via SMART Percentage Used on NVMe or Wear_Leveling_Count and Media_Wearout_Indicator on SATA.
Subtopic TemperatureDrive temperature (SMART 194, NVMe composite temperature) affects lifespan and performance.
Subtopic Drive Failure PredictionDrive failure prediction uses SMART trends — reallocated, pending and uncorrectable sectors, CRC errors, SSD wear — to replace drives before they fail.
- A passed overall SMART status does not mean the drive is healthy.
- Rising reallocated, pending or uncorrectable counts mean replace soon.
- SSDs often fail suddenly; watch wear indicators.
smartctl --scan; smartctl -H /dev/sdX— overall healthsmartd -q onecheck— smartd config testnvme smart-log /dev/nvme0— NVMe
ReferenceHow it works2 sections · depth on demand
Common mistakes
- Checking only the overall PASSED result.
Commands
smartctl -a /dev/sda
smartctl -x /dev/sda # extended (SAS/NVMe details)
systemctl status smartd
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Disk health monitoring reads SMART/NVMe health data regularly, alerts on warning attributes and trends, and triggers replacement before failures cause data loss or long rebuilds.
Reference
| Attribute | Meaning |
|---|---|
| 5 Reallocated_Sector_Ct | Remapped bad sectors |
| 197 Current_Pending_Sector | Unstable sectors waiting for remap |
| 198 Offline_Uncorrectable | Unreadable sectors |
| 199 UDMA_CRC_Error_Count | Cable/connection errors |
| 194 Temperature | Drive temperature |
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.smartmontools.org/ · confidence 94%