こんにちは。
smartctl
コマンド(homebrew
を用いてインストール)を使い、HDD/SSD の検査を行いました。
準備:
$ brew install smartmontools
$ diskutil list | grep -F "/dev/"
/dev/disk0 (internal, physical):
/dev/disk1 (synthesized):
実行および結果:
$ sudo smartctl -d auto -t short /dev/disk0
smartctl 7.3 2022-02-28 r5338 [Darwin 20.6.0 x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jul 7 04:19:55 2023 JST
Use smartctl -X to abort test.
$
$ sleep 120; sudo smartctl -H /dev/disk0
smartctl 7.3 2022-02-28 r5338 [Darwin 20.6.0 x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED