温馨提示×

dmesg日志中的硬件故障提示有哪些

小樊
49
2025-10-05 08:46:23
栏目: 编程语言

dmesg(display message或者driver message)是Linux系统中用于显示内核启动信息和运行时状态的命令。它可以帮助我们诊断硬件故障、驱动问题等。以下是一些常见的硬件故障提示:

  1. 内存相关错误

    • Memory cgroup out of memory: Kill process
    • Out of memory: Kill process
    • Cannot allocate memory
    • Memory allocation failed
  2. CPU相关错误

    • CPU#0: Exception 0x80 (external interrupt) at ffffffff810a0000
    • CPU#1: Exception 0x80 (external interrupt) at ffffffff810a0000
    • CPU#2: Exception 0x80 (external interrupt) at ffffffff810a0000
    • CPU#3: Exception 0x80 (external interrupt) at ffffffff810a0000
  3. 磁盘相关错误

    • ata1.00: exception Emask 0x0 SAct 0x10 SErr 0x0 action 0x0
    • sd 2:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    • sd 2:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    • sd 2:0:0:0: [sda] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  4. 网络相关错误

    • eth0: no IPv4 response from 192.168.1.1
    • eth0: no link
    • wlan0: no IPv4 response from 192.168.1.1
    • wlan0: no link
  5. 显卡相关错误

    • [drm:intel_modeset_init [i915]] *ERROR* Failed to initialize modesetting for connector <Connector 0>
    • [drm:intel_modeset_init [i915]] *ERROR* Failed to initialize modesetting for connector <Connector 1>
    • [drm:intel_modeset_init [i915]] *ERROR* Failed to initialize modesetting for connector <Connector 2>
  6. 其他硬件错误

    • input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input0
    • input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input1
    • input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
    • input: Lid Switch as /devices/platform/lid.0/input/input3

这些错误提示仅供参考,实际故障可能因硬件型号、驱动版本和系统配置而异。要解决这些问题,请查阅相关硬件和驱动文档,或寻求专业人士的帮助。

0