Linux命令dmidecode查看主板型号

2023-12-13 14:45:14

在 Linux 系统中,可以使用 dmidecode 命令来查看主板型号。dmidecode 是一个工具,它能够读取系统的 DMI(Desktop Management Interface)信息,包括主板型号、BIOS 版本、CPU 信息等。

要查看主板型号,可以按照以下步骤进行操作:

  1. 打开终端,以 root 或具有管理员权限的用户进行操作(如果需要)。

  2. 输入以下命令以安装 dmidecode(如果系统中没有安装的话):

    sudo apt-get install dmidecode
    

    对于其他 Linux 发行版,可以使用其对应的软件包管理器来安装 dmidecode

  3. 安装完成后,可以直接运行 dmidecode 命令来查看主板型号:

    sudo dmidecode -t baseboard
    

    上述命令会显示主板的详细信息,其中包括型号、制造商、序列号等。

注意:dmidecode 命令需要在具有 root 权限或者以具有 sudo 权限的用户下运行,以获取完整的系统信息。

[root@bogon ~]# dmidecode -t baseboard
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.
# SMBIOS implementations newer than version 3.2.0 are not
# fully supported by this version of dmidecode.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: Micro-Star International Co., Ltd.
	Product Name: MAG B660M MORTAR WIFI DDR4 (MS-7D42)
	Version: 1.0
	Serial Number: 07D4211_M61E003717
	Asset Tag: Default string
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Default string
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0050, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:00.0

Handle 0x0051, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Video
	Type: Video
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:02.0

Handle 0x0052, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 2
	Bus Address: 0000:00:08.0

Handle 0x0053, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 3
	Bus Address: 0000:00:0a.0

Handle 0x0054, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 4
	Bus Address: 0000:00:14.0

Handle 0x0055, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 5
	Bus Address: 0000:00:14.2

Handle 0x0056, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Ethernet
	Type: Ethernet
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:14.3

Handle 0x0057, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 6
	Bus Address: 0000:00:16.0

Handle 0x0058, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - SATA
	Type: SATA Controller
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:17.0

Handle 0x0059, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 7
	Bus Address: 0000:00:1f.0

Handle 0x005A, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Sound
	Type: Sound
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:1f.3

Handle 0x005B, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 8
	Bus Address: 0000:00:1f.4

Handle 0x005C, DMI type 41, 11 bytes
Onboard Device
	Reference Designation: Onboard - Other
	Type: Other
	Status: Enabled
	Type Instance: 9
	Bus Address: 0000:00:1f.5

[root@bogon ~]# 

上述输出是通过执行 dmidecode -t baseboard 命令获得的主板信息。下面对输出进行详细解释:

  1. Handle 0x0002, DMI type 2, 15 bytes:表示主板信息的开始。

    • Manufacturer: Micro-Star International Co., Ltd.(制造商)
    • Product Name: MAG B660M MORTAR WIFI DDR4 (MS-7D42)(产品名称)
    • Version: 1.0(版本)
    • Serial Number: 07D4211_M61E003717(序列号)
    • Asset Tag: Default string(资产标签)
    • Features:
      • Board is a hosting board(主板是一个托管板)
      • Board is replaceable(主板可以更换)
    • Location In Chassis: Default string(主板在机箱中的位置,默认字符串)
    • Chassis Handle: 0x0003(机箱句柄)
    • Type: Motherboard(类型:主板)
    • Contained Object Handles: 0(包含的对象句柄数量)
  2. Handle 0x0050 - 0x005C:表示主板上的一些集成设备的信息,如内置网卡、声卡、SATA控制器等。

    每个句柄包含以下信息:

    • Reference Designation: Onboard - Other(设备说明)
    • Type: Other(设备类型)
    • Status: Enabled(设备状态)
    • Type Instance: 1(设备实例)
    • Bus Address: 0000:00:00.0(设备的总线地址)

通过以上输出可以看到主板的制造商、型号、版本和一些集成设备的信息。

文章来源:https://blog.csdn.net/songpeiying/article/details/134967764
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。