Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Hardware Troubleshooting

Direct answer

Hardware troubleshooting on Linux uses kernel logs, SMART data, sensors, memory and CPU error reports (MCE/EDAC) and BMC logs to find failing components.

When to use this

Use it when the kernel logs I/O, memory or machine-check errors, or a device disappears.

First 30 seconds

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.

Operational verification

hardware fault → driver/kernel reports error → logs and health counters → component identified → replaced

Evidence · next step

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.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
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.

Platformlinux
Key commandsmartctl -H /dev/sda
Scope / prerequisiteUse it when the kernel logs I/O, memory or machine-check errors, or a device disappears.
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.

5 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 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 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

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.

Key checks
  • uname -r — running kernel
  • lsmod — loaded modules
  • lspci -k — PCI devices and the driver in use
  • lsusb — USB devices
  • journalctl -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,warn filters by severity, and --facility by facility.
  • -w follows new messages.
  • --since limits the time, with relative forms such as "1 hour ago".
  • -T shows 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

ComponentTypical messagesNext step
SATA/SAS disksata3: hard resetting link, I/O error, dev sda, sector ..., Medium Errorsmartctl -a; replace the disk; check the cable
NVMenvme0: I/O ... timeout, aborting, controller is down; will resetFirmware update; nvme smart-log; power settings
MemoryEDAC MC0: 1 CE ..., Machine Check Exceptionras-mc-ctl --errors; identify and replace the DIMM
PCIeAER: Corrected error received, PCIe Bus ErrorReseat the card; firmware; check the slot
Networketh0: NIC Link is Down, tx timeoutCable, transceiver, switch port, driver
ThermalCPU0: Core temperature above threshold, cpu clock throttledCooling, fans, airflow
PowerHardware Error, PSU messages from IPMIipmitool sel list

Other hardware tools

ToolShows
lspci -k / lsusbDevices and their drivers
lshw -short, dmidecode -t memoryThe hardware inventory
smartctl -a /dev/sdXDisk health and error logs
ipmitool sel list, ipmitool sensorBMC event log and sensors
memtester, stress-ngLoad 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.

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

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 dmesg error ≠ 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:

AreaCheck
Memoryras-mc-ctl --errors, edac-util, memtest from boot media
CPU / machine checksjournalctl -k | grep -i mce, rasdaemon
Diskssmartctl -a, nvme smart-log, dmesg I/O errors
NICethtool eth0, ethtool -S eth0 | grep -iE 'err|drop|crc', link flaps in dmesg
Firmware/BMCipmitool sel elist, ipmitool sdr, Redfish
PCIelspci -vv (LnkSta, AER errors), dmesg | grep -i aer
Temperaturesensors, BMC sensors

Collect sosreport (RHEL) or sos report (Ubuntu) for vendor cases — it bundles logs, configuration and hardware data.

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

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
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 doclinux current

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%
Technical changelog & impact

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.

Terminology layer

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.

Aliases that resolve here
linux hardware troubleshootinglspci troubleshootinglinux driver troubleshootingdmesg hardware errors
Embedded reference data

Quick lookup tables

Hardware Troubleshooting operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Hardware Troubleshooting.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux 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 verificationPin 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 chainsymptom + device identity → firmware/hypervisor presentation → bus enumeration → driver/module binding → kernel errors/resources → sysfs/subsystem interface → original workload → regressionTrace requested/configured state through effective state to the observed workload result.
Failure boundaryHardware 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 evidenceCorrelated 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 → regressionUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryHardware Troubleshooting
Topic pathKernel & Hardware → Hardware Troubleshooting
Runtime stateLinux 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 chainsymptom + 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 boundaryHardware 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?