下载:smartmontools-7.2-1.win32-setup.zip
C:\Users\ethan>smartctl -H C:
smartctl 7.2 2020-12-30 r5155 [x86_64-w64-mingw32-w10-b19044] (sf-7.2-1)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Warning: Limited functionality due to missing admin rights
Read SMART Thresholds failed: Function not implemented
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
smartctl --scan
,说明:获取所有硬盘exec smartctl -H /dev/sda exit status 4
,说明:windows正常打印信息,不是错误,请忽略exec error exec: "smartctl": executable file not found in %PATH%
,说明:因为主机没有安装smartmontools工具,请忽略,不影响运行SMART support is: Unavailable
,说明:bios里禁用了smart特性,开启即可。也可能是虚拟机下不支持smartSMART support is: Disabled
,说明:表示SMART未启用,执行如下命令,启动SMART,用命令:smartctl -s on /dev/sdasmartctl -i /dev/sda
C:\Users\ethan>smartctl -i /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-w64-mingw32-w10-b19044] (sf-7.2-1)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Warning: Limited functionality due to missing admin rights
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Black Mobile
Device Model: WDC WD5000LPLX-08ZNTT0
Serial Number: WD-WX41A479VEH4
Firmware Version: 04.01A04
Device is: In smartctl database [for details use: -P show]
ATA Version is: [No Information Found]
Local Time is: Wed Aug 24 15:48:37 2022
SMART support is: Available - device has SMART capability.
Enabled status cached by OS, trying SMART RETURN STATUS cmd.
SMART support is: Enabled
#Enabled
表示启用了SMART#Available
表示硬盘支持SMARTsmartctl --smart=on --offlineauto=on --saveauto=on /dev/sda