0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

HDD/SSD の検査(smartctl コマンド)(macOS)

Posted at

こんにちは。
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
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?