macOS 中使用命令行查看硬盘健康状态

macOS 中使用命令行查看硬盘健康状态

macOS 查看硬盘健康状态

 次点击
7 分钟阅读

安装所需工具,在终端执行如下命令:

brew install smartmontools

查看硬盘状态:

smartctl  -a disk0

你会看到类似如下输出,包含读写量、健康度等数据:

smartctl 7.5 2025-04-30 r5714 [Darwin 25.2.0 arm64] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       APPLE SSD AP8192Z
Serial Number:                      0ba02c1c40e07c15
Firmware Version:                   555
PCI Vendor/Subsystem ID:            0x106b
IEEE OUI Identifier:                0x000000
Controller ID:                      0
NVMe Version:                       <1.2
Number of Namespaces:               3
Local Time is:                      Fri Jan  2 19:05:45 2026 CST
Firmware Updates (0x02):            1 Slot
Optional Admin Commands (0x0004):   Frmw_DL
Optional NVM Commands (0x0004):     DS_Mngmt
Maximum Data Transfer Size:         256 Pages

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     0.00W       -        -    0  0  0  0        0       0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02, NSID 0xffffffff)
Critical Warning:                   0x00
Temperature:                        30 Celsius
Available Spare:                    100%
Available Spare Threshold:          99%
Percentage Used:                    0%
Data Units Read:                    4,444,757 [2.27 TB]
Data Units Written:                 10,422,541 [5.33 TB]
Host Read Commands:                 105,849,769
Host Write Commands:                393,965,194
Controller Busy Time:               0
Power Cycles:                       182
Power On Hours:                     54
Unsafe Shutdowns:                   21
Media and Data Integrity Errors:    0
Error Information Log Entries:      0

Read 1 entries from Error Information Log failed: GetLogPage failed: system=0x38, sub=0x0, code=745

© 本文著作权归作者所有,未经许可不得转载使用。