Pcornel
Linux · Kernel & Hardware

Hardware Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=2843

Back to the Topic

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.

Remember

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.

First 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

Commands

smartctl -a
smartctl -a /dev/sdX
ethtool eth0

Verify in this order

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

Where it usually breaks

First mismatch in hardware/kernel capability → scheduler/mm/device → cgroup/namespace → process/thread → service/runtime → workload behavior/counters; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2843

Confirmation

Confirm action

Continue?