About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
When smartctl -H prints SMART overall-health self-assessment test result: FAILED!, treat the disk as failing and protect the data before anything else. The smartctl manual says a failing health status "means either that the device has already failed, or that it is predicting its own failure within the next 24 hours". The next lines tell you which of the two readings produced the verdict and how to read the disk's own records.
What the symptom means
The overall-health line is a yes or no verdict, not a measurement. For ATA disks the manual says the status "is obtained by checking the (boolean) result returned by the SMART RETURN STATUS command". The drive's firmware decides it.
In the smartmontools source, a failing verdict prints two lines: SMART overall-health self-assessment test result: FAILED! and Drive failure expected in less than 24 hours. SAVE ALL DATA. The manual gives the same instruction: "get your data off the disk and to someplace safe as soon as you can."
There is a second route to the same words. The manual says the return value of that command "may be unknown due to limitations or bugs in some layer (e.g. RAID controller or USB bridge firmware) between disk and operating system", and that smartctl then "checks whether any Prefailure SMART Attribute value is less than or equal to its threshold". When the verdict comes from that attribute check, the source adds Warning: This result is based on an Attribute check. The same function can print SMART overall-health self-assessment test result: UNKNOWN! when attributes and thresholds cannot be read at all.
An attribute fails when its normalised value drops to its threshold: the manual says "If the Normalized value is less than or equal to the Threshold value, then the Attribute is said to have failed. If the Attribute is a pre-failure Attribute, then disk failure is imminent." The WHEN_FAILED column shows FAILING_NOW for a current failure and In_the_past when only the worst recorded value reached the threshold.
SAS and SCSI disks print a different line, SMART Health Status, obtained from the Additional Sense Code and qualifier in the Informal Exceptions (IE) log page or sense data, and for NVMe the manual says status "is obtained by reading the "Critical Warning" byte from the SMART/Health Information log".
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| The disk reports failing status through SMART RETURN STATUS | FAILED! and the 24-hour line, exit status bit 3 set |
smartctl -H exit status includes 8 |
| A pre-failure attribute is at or below its threshold now | FAILING_NOW in the WHEN_FAILED column |
smartctl -A shows that attribute row |
| The verdict was inferred from attributes because the status could not be read | The extra line about an Attribute check | smartctl -H prints Warning: This result is based on an Attribute check. |
| Bridge or controller in the way | Output describes the controller, or the same words appear for the wrong device | smartctl -i shows a model that is not the disk; -d sat or a controller type is needed |
| NVMe critical warning | An NVMe device fails the health check | The "Critical Warning" byte in the SMART/Health log is non-zero |
Prove the cause before changing anything
Everything below reads from the disk. smartctl normally needs root, so run these as root or with sudo. Replace /dev/sda with the device named in the error report you are working from.
1. Identify the device, so you know which disk the verdict is about. The manual says -i prints the model, serial number and firmware version.
smartctl -i /dev/sda
A good result names the physical disk you expect. A model name of a RAID controller or USB bridge means smartctl is not talking to the disk; see the next step.
2. Read the verdict and the exit status together.
smartctl -H /dev/sda; echo "exit status $?"
The manual says the exit status is a bitmask and that "If all is well with the disk, the exit status (return value) of smartctl is 0". Bit 3 means "SMART status check returned "DISK FAILING"", bit 4 means "We found prefail Attributes <= threshold", and bit 5 means a "DISK OK" status but some attributes "have been <= threshold at some time in the past". Bit 6 is errors in the device error log and bit 7 is errors in the self-test log. Bit 3 has the value 8 and bit 4 the value 16.
3. Read the attributes.
smartctl -A /dev/sda
Find rows where WHEN_FAILED is FAILING_NOW or In_the_past. The manual warns that the Pre-fail type "does not mean that your disk is about to fail"; it only has that meaning "if the Attribute's current Normalized value is less than or equal to the threshold value".
4. Read the error and self-test logs.
smartctl -l error /dev/sda
smartctl -l selftest /dev/sda
The manual says -l error prints the summary SMART error log, which keeps "the most recent five non-trivial errors", and that failed self-tests appear in the self-test log.
5. Keep a full record for the replacement decision. The manual says -x prints all SMART and non-SMART information.
smartctl -x /dev/sda > /root/smart-sda.2026-12-01.txt
6. Check the path when a bridge or controller is involved. The manual says the default device type is auto and describes sat as the type "for ATA disks that have a SCSI to ATA Translation Layer". Retry with the type your hardware needs, for example:
smartctl -d sat -H /dev/sda
Fix
A failed verdict is not repaired by smartctl. The order of work is: protect the data, replace the disk, then check the new one.
Protect the data
Copy the data off the disk, or image it, before any repair attempt. Two topics cover this on Linux servers: "A failing disk in a Linux server: image it before you repair it" for a single disk, and "Linux software RAID after a server fails: assembling mdadm arrays on replacement hardware" where the disk is a RAID member. The related topic "smartd: "Currently unreadable (pending) sectors" on a Linux disk: what to check first" explains one common attribute behind a failing verdict.
Optional: run a short self-test
The manual says a short self-test "usually under ten minutes" can be run "during normal system operation". Run it only after the data is safe: the manual says "A running self-test can, however, degrade performance of the drive."
First save the full SMART output as it stands (step 5 above does this; run it again if the file is older than the change):
smartctl -x /dev/sda > /root/smart-sda.before-test.2026-12-01.txt
Risk: the next command starts a self-test on a disk that has said it is failing. The test adds read activity and can slow the server's own I/O while it runs.
Start the short self-test. The manual says -t short runs the SMART Short Self Test:
smartctl -t short /dev/sda
To undo it: abort the test. The manual says -X "Aborts non-captive SMART Self Tests".
smartctl -X /dev/sda
When the test has finished, read the result with smartctl -l selftest /dev/sda. A failed self-test is another reason to replace the disk; a passed one does not cancel a FAILED! health verdict.
Example (illustrative): db01 has a second disk /dev/sdb. smartctl -i /dev/sdb names a 4 TB SATA disk. smartctl -H /dev/sdb; echo "exit status $?" prints SMART overall-health self-assessment test result: FAILED! and exit status 24. The arithmetic is 24 = 8 + 16, so bit 3 (disk failing) and bit 4 (prefail attributes at or below threshold) are set. smartctl -A /dev/sdb shows one pre-failure attribute with FAILING_NOW in WHEN_FAILED. No Attribute-check warning is printed, so the drive's own status was readable. The engineer treats the disk as failed, images or copies it first, and orders a replacement.
Confirm the fix
After the disk is replaced:
smartctl -ion the new device names the new disk's serial number.smartctl -Hon the new device reports a passing result and exit status 0.- The data copy or rebuild has finished and has been checked at the application level, which smartctl cannot do.
What to watch afterwards
- Run
smartctl -Handsmartctl -Aon every other disk in the server and record the results. - Watch exit status bits 5, 6 and 7 as well as bit 3: they show past attribute failures and error or self-test log entries.
- Keep the full output saved above. It records the attribute values at the time of the verdict.
Read next
Related articles you may want next.
- Troubleshootingsmartd: "Currently unreadable (pending) sectors" on a Linux disk: what to check firstsmartd reports Currently unreadable (pending) sectors when attribute 197 is non-zero. Read the SMART data, protect the data, then decide on the disk.Read article
- Backup & RecoveryA failing disk in a Linux server: image it before you repair itWhy a failing Linux disk should be imaged before repair: SMART evidence, ddrescue and its mapfile, read-only checks, and repairing the copy, not the original.Read article
- Backup & RecoveryLinux software RAID after a server fails: assembling mdadm arrays on replacement hardwareHow Linux mdadm arrays are identified and assembled on replacement hardware, why names change, and how to inspect safely before forcing anything.Read article
Risks and limits
- These commands have not been run or lab-tested.
- Behind a hardware RAID controller or USB bridge, smartctl may need a device type option, and results may describe the bridge. The manual lists the controller types.
- A failing status means the disk has failed or predicts its own failure within 24 hours, in the manual's words. smartctl does not repair a failing disk.
- NVMe and SAS devices use other fields; the detail here is for ATA output.
- The exact message text comes from smartmontools source code, which can change between releases.
Sources
- smartctl(8) — Debian Manpages, bookworm (smartmontools 7.3-1+b1), source updated 2022-10-16, accessed 1 December 2026
- ataprint.cpp — smartmontools project source repository, tag RELEASE_7_3, no date shown, accessed 1 December 2026
- scsiprint.cpp — smartmontools project source repository, tag RELEASE_7_3, no date shown, accessed 1 December 2026
This article was originally published on .