smartctl -i /dev/sda
正常情况下显示如下
=== START OF INFORMATION SECTION ===
Model Family: Crucial/Micron BX/MX1/2/3/500, M5/600, 1100 SSDs
Device Model: CT1000MX500SSD1
Serial Number: 2303E69F5E44
LU WWN Device Id: 5 00a075 1e69f5e44
Firmware Version: M3CR045
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Jun 22 14:07:20 2023 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
在这里,如果看到SMART support is: Enabled,则表示SMART已启用
如果未启用我们需要执行如下命令,启动SMART:
复制代码如下:
smartctl –smart=on –offlineauto=on –saveauto=on /dev/sda
再次查看如果变成SMART support is: Enabled,则表示SMART已开启