Use it when the kernel logs I/O, memory or machine-check errors, or a device disappears.
Hardware Troubleshooting
Hardware troubleshooting on Linux uses kernel logs, SMART data, sensors, memory and CPU error reports (MCE/EDAC) and BMC logs to find failing components.
1. journalctl -k -b -p err — which device and error?
2. Disk: smartctl -a /dev/<disk> (reallocated/pending sectors).
3. Memory/CPU: ras-mc-ctl --summary or edac-util -v.
4. Server: ipmitool sel list.
5. Temperature: sensors.
hardware fault → driver/kernel reports error → logs and health counters → component identified → replaced
For Kernel & Hardware → Hardware Troubleshooting, continue with the first unproven Topic check: Record exact device identifiers, physical/VM mapping, boot ID, incident window, firmware/kernel/driver versions and the original failing workload. If that boundary is healthy, advance to the adjacent check: Compare firmware/hypervisor inventory with lspci/lsusb/DMI and canonical sysfs paths; prove expected driver/module binding. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
smartctl -H /dev/sdaVerification & 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 Operational evidence path Verify boundary
symptom + device identity → firmware/hypervisor presentation → bus enumeration → driver/module binding → kernel errors/resources → sysfs/subsystem interface → original workload → regression
Healthy evidence: device presentation, enumeration, binding and kernel state remain stable, no relevant error counters/logs grow and the dependent subsystem/workload passes the original acceptance test.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record exact device identifiers, physical/VM mapping, boot ID, incident window, firmware/kernel/driver versions and the original failing workload.
- Compare firmware/hypervisor inventory with
lspci/lsusb/DMI and canonical sysfs paths; show expected driver/module binding. - Inspect kernel logs and counters for resets, link changes, timeouts, MCE/AER/IOMMU/resource errors, then test the subsystem interface at the first failing step.
- Apply the smallest reversible driver/config/hardware remediation, then verify stable enumeration/binding across time or reboot as required and repeat the original workload.
Verification chain. symptom + device identity → firmware/hypervisor presentation → bus enumeration → driver/module binding → kernel errors/resources → sysfs/subsystem interface → original workload → regression
Step 3 Commands Verify boundary
dmesg -T | grep -iE 'error|fail'
lshw -short
smartctl -H /dev/sda
edac-util -s 2>/dev/null
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: device is missing/intermittent, re-enumerates, wrong driver binds, resets/timeouts/AER/MCE occur, firmware/OS inventory disagrees or a driver reload only temporarily masks recurring failure.
Step 5 Common mistakes Narrow the fault
- Ignoring corrected memory/disk errors until they become uncorrected.
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.
Correlate kernel errors with the device (dmesg -T). Check disks with smartctl, memory with EDAC counters or memtest, server events in the BMC (ipmitool sel list). Replace failing hardware rather than masking errors.
uname -r— running kernellsmod— loaded moduleslspci -k— PCI devices and the driver in uselsusb— USB devicesjournalctl -k -b -p warning— kernel warnings this boot
ReferenceWhat it is1 section · depth on demand
Core model
Pin the exact device and symptom, preserve boot/incident time, compare firmware or hypervisor presentation with Linux enumeration, then walk bus identity → driver/module binding → kernel logs/errors → /sys state → device interface → original workload. Separate intermittent hardware resets and resource/firmware faults from driver, configuration and downstream service failures.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Hardware troubleshooting is resolved only when the first failed hardware/kernel boundary is demonstrated, stable device state is restored and the original device-dependent workload succeeds without recurrence in the required observation window.
Hand off to vendor hardware/firmware, Virtualization, Storage, Networking or application Topics when evidence places the first failure outside the Linux kernel/device layer.
In depth
Finding hardware problems through kernel messages
Hardware faults usually show up first in the kernel log: disk timeouts, memory errors, PCIe errors, thermal throttling, flapping links. The dmesg(1) manual page describes reading the log:
--level=err,warnfilters by severity, and--facilityby facility.-wfollows new messages.--sincelimits the time, with relative forms such as "1 hour ago".-Tshows wall-clock times, but the manual warns these can be inaccurate after suspend and resume.
If dmesg reports "permission denied", the dmesg_restrict setting limits access to privileged users.
Message patterns by component
| Component | Typical messages | Next step |
|---|---|---|
| SATA/SAS disks | ata3: hard resetting link, I/O error, dev sda, sector ..., Medium Error | smartctl -a; replace the disk; check the cable |
| NVMe | nvme0: I/O ... timeout, aborting, controller is down; will reset | Firmware update; nvme smart-log; power settings |
| Memory | EDAC MC0: 1 CE ..., Machine Check Exception | ras-mc-ctl --errors; identify and replace the DIMM |
| PCIe | AER: Corrected error received, PCIe Bus Error | Reseat the card; firmware; check the slot |
| Network | eth0: NIC Link is Down, tx timeout | Cable, transceiver, switch port, driver |
| Thermal | CPU0: Core temperature above threshold, cpu clock throttled | Cooling, fans, airflow |
| Power | Hardware Error, PSU messages from IPMI | ipmitool sel list |
Other hardware tools
| Tool | Shows |
|---|---|
lspci -k / lsusb | Devices and their drivers |
lshw -short, dmidecode -t memory | The hardware inventory |
smartctl -a /dev/sdX | Disk health and error logs |
ipmitool sel list, ipmitool sensor | BMC event log and sensors |
memtester, stress-ng | Load testing to reproduce faults |
host$ dmesg -T --level=err,warn | tail -4
[Sat Nov 28 16:02:11 2026] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[Sat Nov 28 16:02:11 2026] ata3: hard resetting link
[Sat Nov 28 16:02:12 2026] blk_update_request: I/O error, dev sdc, sector 1953124352 op 0x0:(READ)
host$ sudo smartctl -A /dev/sdc | grep -E "Reallocated_Sector|Current_Pending|Offline_Uncorrectable|UDMA_CRC"
5 Reallocated_Sector_Ct 0x0033 098 098 036 Pre-fail Always - 112
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 16
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
host$ cat /proc/mdstat | grep -A1 sdc
host$ sudo dmesg -w --level=err
Reading the example
The kernel saw read errors and link resets on sdc. SMART shows 112 reallocated and 16 pending sectors, while CRC errors are 0. The disk surface is failing, not the cable. A rising reallocated count means the disk should be replaced soon, before RAID redundancy is needed to cover a second failure.
Documented example, not captured output.
How it works at runtime
Hardware Troubleshooting is part of Kernel & Hardware → Hardware Troubleshooting. Linux Hardware Troubleshooting localizes faults across physical/virtual device presence, firmware/bus enumeration, kernel driver binding, resource assignment, kernel errors and subsystem functionality without confusing discovery with health.
Topic-specific state model. Linux Hardware Troubleshooting localizes faults across physical/virtual device presence, firmware/bus enumeration, kernel driver binding, resource assignment, kernel errors and subsystem functionality without confusing discovery with health.
Interpretation rule. - lspci or lsusb sees the device ≠ the correct driver bound or the device works.
- No obvious
dmesgerror ≠ hardware is healthy; retention, rate limiting and firmware/controller logs may be outside scope. - Reloading a driver restores the device ≠ the root cause is fixed; hardware, firmware or bus instability may recur.
- A vendor self-test passes ≠ the Linux driver/path and original workload are healthy.
Method
Hardware troubleshooting on Linux:
| Area | Check |
|---|---|
| Memory | ras-mc-ctl --errors, edac-util, memtest from boot media |
| CPU / machine checks | journalctl -k | grep -i mce, rasdaemon |
| Disks | smartctl -a, nvme smart-log, dmesg I/O errors |
| NIC | ethtool eth0, ethtool -S eth0 | grep -iE 'err|drop|crc', link flaps in dmesg |
| Firmware/BMC | ipmitool sel elist, ipmitool sdr, Redfish |
| PCIe | lspci -vv (LnkSta, AER errors), dmesg | grep -i aer |
| Temperature | sensors, BMC sensors |
Collect sosreport (RHEL) or sos report (Ubuntu) for vendor cases — it bundles logs, configuration and hardware data.
Limits and how it fails
Primary failure point. Hardware troubleshooting is resolved only when the first failed hardware/kernel boundary is demonstrated, stable device state is restored and the original device-dependent workload succeeds without recurrence in the required observation window.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Hardware Troubleshooting owns Linux-side cross-boundary diagnosis. Hand off to vendor hardware/firmware, Virtualization, Storage, Networking or application Topics when evidence places the first failure outside the Linux kernel/device layer.
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 Kernel & Hardware → Hardware Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Hardware Troubleshooting operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Hardware Troubleshooting.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux Hardware Troubleshooting localizes faults across physical/virtual device presence, firmware/bus enumeration, kernel driver binding, resource assignment, kernel errors and subsystem functionality without confusing discovery with health. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact symptom + interval → identify host/VM, workload and authoritative kernel/device/resource scope → capture correlated runtime telemetry/state → attribute the abnormal signal to process/cgroup/device/driver → find first failed boundary → change one demonstrated cause → read back effective state → repeat original workload + regression check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | symptom + device identity → firmware/hypervisor presentation → bus enumeration → driver/module binding → kernel errors/resources → sysfs/subsystem interface → original workload → regression | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Hardware troubleshooting closes only when the first failed hardware/kernel boundary is demonstrated, stable device state is restored and the original device-dependent workload succeeds without recurrence in the required observation window. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux resource/kernel evidence can establish this proof path: symptom + device identity → firmware/hypervisor presentation → bus enumeration → driver/module binding → kernel errors/resources → sysfs/subsystem interface → original workload → regression | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host/VM, boot, incident interval, namespace/cgroup, process, device, kernel/driver or workload scope. Hardware troubleshooting closes only when the first failed hardware/kernel boundary is demonstrated, stable device state is restored and the original device-dependent workload succeeds without recurrence in the required observation window. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven resource/kernel boundary: preserve the exact incident scope, capture the adjacent process/cgroup/device/driver or subsystem state, change only the demonstrated cause, then repeat the original workload and regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
Hardware Troubleshooting · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Hardware Troubleshooting |
|---|---|
| Topic path | Kernel & Hardware → Hardware Troubleshooting |
| Runtime state | Linux Hardware Troubleshooting localizes faults across physical/virtual device presence, firmware/bus enumeration, kernel driver binding, resource assignment, kernel errors and subsystem functionality without confusing discovery with health. |
| Fast checks | - Record exact device identifiers, physical/VM mapping, boot ID, incident window, firmware/kernel/driver versions and the original failing workload. - Compare firmware/hypervisor inventory with lspci/lsusb/DMI and canonical sysfs paths; prove expected driver/module binding. - Inspect kernel logs and counters for resets, link changes, timeouts, MCE/AER/IOMMU/resource errors, then test the subsystem interface at the first failed boundary. - Apply the smallest reversible driver/config/hardware remediation, then verify stable enumeration/binding across time or reboot as required and repeat the original workload. |
| Verification chain | symptom + device identity → firmware/hypervisor presentation → bus enumeration → driver/module binding → kernel errors/resources → sysfs/subsystem interface → original workload → regression Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Hardware troubleshooting closes only when the first failed hardware/kernel boundary is demonstrated, stable device state is restored and the original device-dependent workload succeeds without recurrence in the required observation window. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |