Hardware Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2843
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 kernellsmod— loaded moduleslspci -k— PCI devices and the driver in uselsusb— USB devicesjournalctl -k -b -p warning— kernel warnings this boot
Commands
smartctl -asmartctl -a /dev/sdXethtool 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