Use it when a device is not detected, has no driver, or the kernel logs hardware errors.
Kernel & Hardware
Kernel and hardware topics cover how Linux detects devices, loads drivers (modules), exposes them in /proc and /sys, and reports hardware errors.
1. Detected? lspci -nn / lsusb / lsblk.
2. Driver bound? lspci -k — "Kernel driver in use".
3. No driver → modprobe <module>; missing firmware in dmesg?
4. Errors: journalctl -k -b -p warning.
5. Hardware health tools (smartctl, ipmitool sel list, edac-util).
device detected on its bus → driver module loaded → firmware loaded → device node/interface → usable
For Kernel & Hardware, continue with the first unproven Topic check: Record host/VM, boot ID, running kernel version, hardware identity and exact failing device/workload. If that boundary is healthy, advance to the adjacent check: Enumerate device presence and driver/module binding; capture /proc, /sys, uevent/modalias and kernel-log evidence for the incident. 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.
unamePrimary Commands
Configuration and operational commands for this Topic.
unameVerifyDisplay kernel name, release, architecture and related system identity fields.
Use when: Primary lookup intent: verify. Use uname when the lookup goal is to display kernel name, release, architecture and related system identity fields. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. uname is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
lsmodReferenceList currently loaded kernel modules and their use counts.
Use when: Primary lookup intent: verify. Use lsmod when the lookup goal is to list currently loaded kernel modules and their use counts. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lsmod is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
modprobeReferenceLoad or remove kernel modules while resolving module dependencies and configuration.
Use when: Primary lookup intent: configure. Use modprobe when the lookup goal is to load or remove kernel modules while resolving module dependencies and configuration. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for modprobe: Verify module/parameter state and retest the dependent device or workload. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. modprobe is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
modinfoReferenceDisplay metadata, parameters, aliases and file information for a kernel module.
Use when: Primary lookup intent: verify. Use modinfo when the lookup goal is to display metadata, parameters, aliases and file information for a kernel module. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. modinfo is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
sysctlReferenceRead or write exposed kernel runtime parameters under the sysctl interface.
Use when: Primary lookup intent: configure. Use sysctl when the lookup goal is to read or write exposed kernel runtime parameters under the sysctl interface. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for sysctl: Read back effective runtime state and rerun the affected network/kernel/application test. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. sysctl is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
lspciReferenceEnumerate PCI devices and expose vendor, device, class and driver-related information.
Use when: Primary lookup intent: troubleshoot. Use lspci when the lookup goal is to enumerate PCI devices and expose vendor, device, class and driver-related information. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lspci is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
lsusbReferenceEnumerate USB devices and display bus, device and descriptor information.
Use when: Primary lookup intent: troubleshoot. Use lsusb when the lookup goal is to enumerate USB devices and display bus, device and descriptor information. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. lsusb is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
dmidecodeReferenceDecode firmware-provided SMBIOS/DMI tables for hardware and platform inventory.
Use when: Primary lookup intent: troubleshoot. Use dmidecode when the lookup goal is to decode firmware-provided SMBIOS/DMI tables for hardware and platform inventory. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. dmidecode is documented as an operational lookup primitive under Kernel & Hardware. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
Verification & 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
physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification
Healthy evidence: expected hardware is enumerated, intended driver/module is bound, kernel logs show stable initialization, exposed state matches intent and the dependent workload operates normally.
Step 2 Commands Verify boundary
uname -r
lsmod
dmesg -T | tail
lspci -k
Step 3 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record host/VM, boot ID, running kernel version, hardware identity and exact failing device/workload.
- Enumerate device presence and driver/module binding; capture
/proc,/sys, uevent/modalias and kernel-log evidence for the incident. - Correlate resets, timeouts, corrected/uncorrected errors, resource conflicts or driver state with the first failed functional boundary.
- Apply one reversible cause-specific change where possible, then re-read kernel/device state and repeat the original device-dependent workload.
Verification chain. physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: device disappears or re-enumerates, wrong/no driver binds, kernel reports resets/timeouts/MCE/IOMMU/resource errors, /sys state is degraded or workload fails despite nominal discovery.
Step 5 Common mistakes Narrow the fault
- Upgrading the kernel without testing drivers/DKMS modules.
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.
Subtopics
Go one level deeper into this subject.
Kernel Modules covers loadable kernel object lifecycle, dependency/alias resolution, parameterization, taint/signature policy and device binding so module presence can be distinguished from correct driver operation.
Subtopic /proc`/proc` is a kernel-generated pseudo-filesystem exposing process and system runtime state such as PIDs, memory, CPU, mounts, interrupts and selected tunables; its files are observations/interfaces, not persistent configuration by themselves.
Subtopic /sys`/sys` (sysfs) exposes Linux kernel device, driver, class, bus, firmware and attribute objects as a hierarchical runtime model and is the primary place to prove device identity and driver binding relationships.
Subtopic Hardware TroubleshootingLinux 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.
Check detection first (lspci, lsusb, lsblk), then the driver (lspci -k), then kernel messages. Firmware files (linux-firmware) are often needed for NICs and Wi-Fi.
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 running kernel and boot instance, enumerate hardware/device identities through kernel interfaces, then verify driver/module binding and kernel-reported state in /proc, /sys and logs. Separate hardware presence from driver binding, driver binding from functional dataplane behavior and kernel observation from application acceptance.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Kernel/hardware evidence requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence.
In depth
Kernel and hardware: health indicators
The kernel reports hardware problems and its own condition through its log, and through a few status flags. One of the most useful is the taint flag. The kernel documentation on tainted kernels explains it:
- A kernel is "tainted" when something has happened that may matter for later diagnosis. Running tainted is normally fine.
/proc/sys/kernel/taintedholds 0 when untainted, otherwise a bit field. Oops and panic messages showTainted:with letters.- The flags include P (proprietary module), O (out-of-tree module), E (unsigned module), W (an earlier warning), D (the kernel has oopsed), M (a machine check exception) and L (a soft lockup).
- The flag stays set until reboot, and developers may ignore bug reports from tainted kernels.
Health indicators to check
| Indicator | Command | Concern |
|---|---|---|
| Taint flags | cat /proc/sys/kernel/tainted | D, M or L mean real trouble |
| Kernel errors and warnings | dmesg --level=err,warn -T | Disks, memory, PCIe, thermal |
| Machine checks | journalctl -k -g "mce|Machine check", ras-mc-ctl --summary | CPU or memory faults |
| Memory errors (ECC) | edac-util -v or /sys/devices/system/edac/ | Corrected errors are an early warning |
| Disk health | smartctl -H -A /dev/sda, nvme smart-log /dev/nvme0 | Reallocated sectors, media errors |
| Temperatures and throttling | sensors; dmesg -g "throttled" | Cooling problems |
| Kernel version and build | uname -r, uname -v | Known bugs, missing fixes |
Decoding the taint value
host$ cat /proc/sys/kernel/tainted
4609
host$ t=4609; for b in $(seq 0 18); do [ $(( (t >> b) & 1 )) -eq 1 ] && echo "bit $b set"; done
bit 0 set
bit 9 set
bit 12 set
host$ uname -r; modinfo -F license nvidia 2>/dev/null
6.8.0-49-generic
NVIDIA
host$ journalctl -k -b -g "Tainted:" --no-pager | tail -1
host$ sudo smartctl -H /dev/sda | grep result
SMART overall-health self-assessment test result: PASSED
host$ sudo nvme smart-log /dev/nvme0 | grep -E "critical_warning|media_errors|percentage_used"
Reading the decoded value
4609 = 1 + 512 + 4096: bit 0 (P, a proprietary module, here the NVIDIA driver), bit 9 (W, a warning has occurred) and bit 12 (O, an out-of-tree module). The W bit is worth following up: journalctl -k -g "WARNING:" shows which warning set it.
Documented example, not captured output.
How it works at runtime
Kernel & Hardware is part of Kernel & Hardware. Linux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware.
Topic-specific state model. Linux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware.
Interpretation rule. - Hardware enumerated ≠ the correct driver is bound or the device is usable.
- A module loaded ≠ it successfully bound the intended device or initialized it without errors.
/procor/sysvalue exists ≠ the device/service behavior is healthy.- No kernel error in the current log view ≠ no hardware/kernel fault occurred outside retention, boot or query scope.
Quick reference
Kernel and hardware inspection:
uname -r; cat /proc/cmdline
lscpu; lsmem; free -h
lspci -nnk; lsusb; lsblk
dmidecode -t system -t bios -t memory | less
inxi -Fxz 2>/dev/null
sensors 2>/dev/null
journalctl -k -b -p warning
lspci -k shows which driver is bound to each device; dmidecode reveals model, serial and firmware versions needed for vendor support.
Limits and how it fails
Primary failure point. Kernel/hardware evidence requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Kernel & Hardware owns Linux kernel/device discovery and driver binding. Storage, Networking and Virtualization own subsystem-specific behavior; vendor hardware tooling may own firmware/controller diagnostics.
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. 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
Kernel & Hardware operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Kernel & Hardware.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware. | 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 | physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Kernel/hardware proof requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence. | 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: physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification | 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. Kernel/hardware proof requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence. | 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. |
Kernel & Hardware · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Kernel & Hardware |
|---|---|
| Topic path | Kernel & Hardware |
| Runtime state | Linux Kernel & Hardware is the operational reference for proving the running kernel, loaded drivers/modules, kernel-exposed device state and hardware discovery path before attributing an OS symptom to physical or virtual hardware. |
| Fast checks | - Record host/VM, boot ID, running kernel version, hardware identity and exact failing device/workload. - Enumerate device presence and driver/module binding; capture /proc, /sys, uevent/modalias and kernel-log evidence for the incident. - Correlate resets, timeouts, corrected/uncorrected errors, resource conflicts or driver state with the first failed functional boundary. - Apply one reversible cause-specific change where possible, then re-read kernel/device state and repeat the original device-dependent workload. |
| Verification chain | physical/virtual hardware → firmware/bus enumeration → kernel device object → driver/module binding → /proc + /sys + kernel log state → device node/network/block interface → workload verification 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 | Kernel/hardware proof requires the exact device to be enumerated, correctly bound and functionally exercised through the relevant subsystem; discovery or module presence alone is bounded evidence. 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. |