在Linux系统中,dmesg命令用于显示内核环缓冲区的消息,这些消息通常包括硬件检测、驱动程序加载、系统启动过程中的各种信息等。硬件检测信息可以帮助你了解系统的硬件配置和状态。以下是一些常见的硬件检测信息类别及其示例:
[ 0.000000] Linux version 5.4.0-42-generic (buildd@lgw01-amd64-039) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #46~18.04.1-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-42-generic root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro quiet splash vt.handoff=7
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bffaffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000bff b0000-0x00000000bfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000c0000000-0x00000000cfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000d0000000-0x00000000d1ffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000d2000000-0x00000000d3ffffff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000d4000000-0x00000000d5ffffff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x00000000d6000000-0x00000000d7ffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000d8000000-0x00000000dbffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000dc000000-0x00000000dfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000e0000000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000041fffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: Dell Inc. Latitude E6520, BIOS 1.6.2 01/19/2011
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] tsc: Detected 2400.000 MHz processor
[ 0.000000] Memory: 16388M/17408M available (8M kernel code, 1344M rwdata, 3584M rodata, 1024M init, 1968M bss, 2208M reserved, 0K cma-reserved)
[ 0.000000] scsi host0: uas
[ 0.000000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 0.000000] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 0.000000] sd 0:0:0:0: [sda] Write Protect is off
[ 0.000000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 0.