macos上命令行查看磁盘序列号

收集到两种命令行获取方法:(另外https://www.maketecheasier.com/find-mac-serial-number/中还说明了GUI模式下的查看方法)

1、system_profiler SPSerialATADataType

范例:

SATA/SATA Express:

Generic AHCI Controller:

Vendor: Generic
Product: AHCI Controller
Physical Interconnect: PCI
Description: AHCI Version 1.30 Supported

VMware Virtual SATA Hard Drive:

Capacity: 42.95 GB (42,949,672,960 bytes)
Model: VMware Virtual SATA Hard Drive
Revision: 1
Serial Number: 1
Native Command Queuing: Yes
Queue Depth: 32
Removable Media: Yes
Detachable Drive: No
BSD Name: disk0
Medium Type: Rotational
Partition Map Type: GPT (GUID Partition Table)
Volumes:
EFI:
Capacity: 209.7 MB (209,715,200 bytes)
BSD Name: disk0s1
Content: EFI
Volume UUID: 0E239BC6-F960-3107-89CF-1C97F78BB46B
sane:
Capacity: 42.09 GB (42,089,914,368 bytes)
Available: 26.1 GB (26,099,613,696 bytes)
Writable: Yes
File System: Journaled HFS+
BSD Name: disk0s2
Mount Point: /
Content: Apple_HFS
Volume UUID: 28C031C0-60D3-34F4-82BD-B371B8DD7D35
Recovery HD:
Capacity: 650 MB (650,002,432 bytes)
BSD Name: disk0s3
Content: Apple_Boot
Volume UUID: 46E79816-232B-3637-998A-5B8461FFACFA

2、ioreg命令获取

ioreg -rd1 -w0 -c AppleAHCIDiskDriver

猜你喜欢

转载自www.cnblogs.com/amoy9812/p/12375759.html
今日推荐