コマンドからsmart 情報を取得する
brew install smarttools
sudo apt install smartmontools
コマンドを実行する。
ディスクの番号を調べて
takuya@~$ diskUtil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage Macintosh HD 250.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 (略 /dev/disk4 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *160.0 GB disk4 1: EFI EFI 209.7 MB disk4s1 2: Apple_HFS MacbookAir-mid2011-b... 159.7 GB disk4s2
該当ディスクのsmartを取得
takuya@~$ smartctl -a /dev/disk4 (略 SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 114 099 006 Pre-fail Always - 68912947 3 Spin_Up_Time 0x0003 098 097 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 296 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 076 060 030 Pre-fail Always - 45890627 9 Power_On_Hours 0x0032 086 086 000 Old_age Always - 12591 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 84 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 060 052 045 Old_age Always - 40 (Min/Max 32/43) 194 Temperature_Celsius 0x0022 040 048 000 Old_age Always - 40 (0 9 0 0 0) 195 Hardware_ECC_Recovered 0x001a 073 060 000 Old_age Always - 65893405 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0 202 Data_Address_Mark_Errs 0x0032 100 253 000 Old_age Always - 0
S.M.A.R.T の値
各項目の数値については、Wikipediaなどを参考にすると良い。
不良セクタは、reallocated していれば別段問題ない。HDDは不良セクタが出来るもんだし。
Self-Monitoring, Analysis and Reporting Technology - Wikipedia