我想知道我的笔记本电脑有多少个可用的 RAM 插槽,以便我可以升级它们。我内置了两个 4GB(8GB)RAM,但我想将其升级到 16GB。我尝试使用,结果sudo dmidecode -t memory
如下
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 3.0 present.
Handle 0x000D, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 32 GB
Error Information Handle: No Error
Number Of Devices: 2
Handle 0x000E, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x000D
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: SODIMM
Set: None
Locator: ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR4
Type Detail: Synchronous
Speed: 2133 MHz
Manufacturer: Micron
Serial Number: 1570FAFC
Asset Tag: 9876543210
Part Number: 4ATF51264HZ-2G3B1
Rank: 1
Configured Clock Speed: 2133 MHz
Minimum Voltage: 1.5 V
Maximum Voltage: 1.5 V
Configured Voltage: 1.2 V
Handle 0x000F, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x000D
Error Information Handle: No Error
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: ChannelA-DIMM1
Bank Locator: BANK 1
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Clock Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
Handle 0x0010, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x000D
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: SODIMM
Set: None
Locator: ChannelB-DIMM0
Bank Locator: BANK 2
Type: DDR4
Type Detail: Synchronous
Speed: 2133 MHz
Manufacturer: Micron
Serial Number: 1570FB42
Asset Tag: 9876543210
Part Number: 4ATF51264HZ-2G3B1
Rank: 1
Configured Clock Speed: 2133 MHz
Minimum Voltage: 1.5 V
Maximum Voltage: 1.5 V
Configured Voltage: 1.2 V
Handle 0x0011, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x000D
Error Information Handle: No Error
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: ChannelB-DIMM1
Bank Locator: BANK 3
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Clock Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
我不明白这些 BANK 1 和 BANK 3 是做什么用的?我想了解 dmidecode。我有 2 个还是 4 个内存插槽?这个库是否表示一些其他端口,如 m.2 sata?我有 Acer E5-575g 笔记本电脑。任何帮助都将不胜感激,谢谢。
答案1
sudo dmidecode -t memory
您在问题中运行的命令太冗长了。该命令给出sudo dmidecode --type 17
了更简洁的结果。结果中的内存设备数量sudo dmidecode --type 17
等于内存插槽数量,因此打印 RAM 插槽数量的命令是:
sudo dmidecode --type 17 | grep 'Memory Device' --count
该命令的结果将是一个等于 RAM 插槽数量的整数。
显示每个已安装 RAM 条大小的命令是:
sudo dmidecode --type 17 | grep -i size
这是一个非常有用的命令,因为它显示了空 RAM 插槽的数量、安装了 RAM 条的 RAM 插槽的数量以及每个已安装 RAM 条的大小。
此示例输出显示计算机有 4 个 RAM 插槽(2 个空插槽和 2 个满插槽)和两个 4GB RAM 条(8GB RAM)。
$sudo dmidecode --type 17 | grep '内存设备' --count 4 $sudo dmidecode --type 17 | grep -i 大小 尺寸:未安装模块 尺寸:未安装模块 尺寸:4096 MB 尺寸:4096 MB
要获得更详细且格式更好的输出,请运行以下命令:
sudo inxi -m