差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
windows:smartmontools [2020/08/17 16:07] – 作成 ともやん | windows:smartmontools [2024/10/01 22:44] (現在) – ↷ 移動操作に合わせてリンクを書き換えました。 非ログインユーザー | ||
---|---|---|---|
行 1: | 行 1: | ||
- | < | ||
- | < | ||
- | #result pre, #mincode pre { | ||
- | overflow: hidden; | ||
- | font-size: 10px; | ||
- | } | ||
- | # | ||
- | height: 250px; | ||
- | overflow: scroll; | ||
- | overflow-x: hidden; | ||
- | font-size: 10px; | ||
- | } | ||
- | #mintbl table { | ||
- | font-size: 12px; | ||
- | } | ||
- | .dokuwiki .plugin_wrap table { | ||
- | width: auto; | ||
- | } | ||
- | #logo { | ||
- | background-color: | ||
- | padding: 10px; | ||
- | width: fit-content; | ||
- | } | ||
- | #logo p { | ||
- | margin: 0; | ||
- | } | ||
- | </ | ||
- | </ | ||
====== Windows でハードディスクの S.M.A.R.T 情報の取得 ====== | ====== Windows でハードディスクの S.M.A.R.T 情報の取得 ====== | ||
+ | {{windows: | ||
+ | [[https:// | ||
+ | |||
+ | [[linux: | ||
===== インストール ===== | ===== インストール ===== | ||
+ | [[windows: | ||
+ | [[windows: | ||
+ | |||
< | < | ||
$ sudo scoop install smartmontools | $ sudo scoop install smartmontools | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
Installing ' | Installing ' | ||
smartmontools-7.1-1.win32-setup.exe (1.2 MB) [================================================================] 100% | smartmontools-7.1-1.win32-setup.exe (1.2 MB) [================================================================] 100% | ||
行 47: | 行 29: | ||
' | ' | ||
</ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 使い方 ===== | ||
+ | < | ||
+ | $ sudo smartctl -a /dev/sda | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | smartctl 7.1 2019-12-30 r5022 [x86_64-w64-mingw32-w10-b20190] (sf-7.1-1) | ||
+ | Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org | ||
+ | |||
+ | === START OF INFORMATION SECTION === | ||
+ | Model Family: | ||
+ | Device Model: | ||
+ | Serial Number: | ||
+ | LU WWN Device Id: 5 002538 550230683 | ||
+ | Firmware Version: DXM04B0Q | ||
+ | User Capacity: | ||
+ | Sector Size: 512 bytes logical/ | ||
+ | Rotation Rate: Solid State Device | ||
+ | Device is: In smartctl database [for details use: -P show] | ||
+ | ATA Version is: | ||
+ | SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) | ||
+ | Local Time is: Tue Aug 18 06:17:36 2020 | ||
+ | SMART support is: Available - device has SMART capability. | ||
+ | SMART support is: Enabled | ||
+ | |||
+ | === START OF READ SMART DATA SECTION === | ||
+ | SMART overall-health self-assessment test result: PASSED | ||
+ | |||
+ | General SMART Values: | ||
+ | Offline data collection status: | ||
+ | was never started. | ||
+ | Auto Offline Data Collection: Disabled. | ||
+ | Self-test execution status: | ||
+ | without error or no self-test has ever | ||
+ | been run. | ||
+ | Total time to complete Offline | ||
+ | data collection: | ||
+ | Offline data collection | ||
+ | capabilities: | ||
+ | Auto Offline data collection on/off support. | ||
+ | Suspend Offline collection upon new | ||
+ | command. | ||
+ | No Offline surface scan supported. | ||
+ | Self-test supported. | ||
+ | No Conveyance Self-test supported. | ||
+ | Selective Self-test supported. | ||
+ | SMART capabilities: | ||
+ | power-saving mode. | ||
+ | Supports SMART auto save timer. | ||
+ | Error logging capability: | ||
+ | General Purpose Logging supported. | ||
+ | Short self-test routine | ||
+ | recommended polling time: ( 2) minutes. | ||
+ | Extended self-test routine | ||
+ | recommended polling time: ( 35) minutes. | ||
+ | SCT capabilities: | ||
+ | SCT Error Recovery Control supported. | ||
+ | SCT Feature Control supported. | ||
+ | SCT Data Table supported. | ||
+ | |||
+ | SMART Attributes Data Structure revision number: 1 | ||
+ | Vendor Specific SMART Attributes with Thresholds: | ||
+ | ID# ATTRIBUTE_NAME | ||
+ | 5 Reallocated_Sector_Ct | ||
+ | 9 Power_On_Hours | ||
+ | 12 Power_Cycle_Count | ||
+ | 177 Wear_Leveling_Count | ||
+ | 179 Used_Rsvd_Blk_Cnt_Tot | ||
+ | 181 Program_Fail_Cnt_Total | ||
+ | 182 Erase_Fail_Count_Total | ||
+ | 183 Runtime_Bad_Block | ||
+ | 187 Uncorrectable_Error_Cnt 0x0032 | ||
+ | 190 Airflow_Temperature_Cel 0x0032 | ||
+ | 195 ECC_Error_Rate | ||
+ | 199 CRC_Error_Count | ||
+ | 235 POR_Recovery_Count | ||
+ | 241 Total_LBAs_Written | ||
+ | |||
+ | SMART Error Log Version: 1 | ||
+ | No Errors Logged | ||
+ | |||
+ | SMART Self-test log structure revision number 1 | ||
+ | No self-tests have been logged. | ||
+ | |||
+ | SMART Selective self-test log data structure revision number 1 | ||
+ | | ||
+ | 1 0 0 Not_testing | ||
+ | 2 0 0 Not_testing | ||
+ | 3 0 0 Not_testing | ||
+ | 4 0 0 Not_testing | ||
+ | 5 0 0 Not_testing | ||
+ | 255 0 65535 Read_scanning was never started | ||
+ | Selective self-test flags (0x0): | ||
+ | After scanning selected spans, do NOT read-scan remainder of disk. | ||
+ | If Selective self-test is pending on power-up, resume after 0 minute delay. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 付録 ===== | ||
+ | < | ||
+ | $ smartctl -h | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | smartctl 7.1 2019-12-30 r5022 [x86_64-w64-mingw32-w10-b19042] (sf-7.1-1) | ||
+ | Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org | ||
+ | |||
+ | Usage: smartctl [options] device | ||
+ | |||
+ | ============================================ SHOW INFORMATION OPTIONS ===== | ||
+ | |||
+ | -h, --help, --usage | ||
+ | | ||
+ | |||
+ | -V, --version, --copyright, | ||
+ | Print license, copyright, and version information and exit | ||
+ | |||
+ | -i, --info | ||
+ | Show identity information for device | ||
+ | |||
+ | --identify[=[w][nvb]] | ||
+ | Show words and bits from IDENTIFY DEVICE data (ATA) | ||
+ | |||
+ | -g NAME, --get=NAME | ||
+ | Get device setting: all, aam, apm, dsn, lookahead, security, | ||
+ | wcache, rcache, wcreorder, wcache-sct | ||
+ | |||
+ | -a, --all | ||
+ | Show all SMART information for device | ||
+ | |||
+ | -x, --xall | ||
+ | Show all information for device | ||
+ | |||
+ | --scan | ||
+ | Scan for devices | ||
+ | |||
+ | --scan-open | ||
+ | Scan for devices and try to open each device | ||
+ | |||
+ | ================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS ===== | ||
+ | |||
+ | -j, --json[=[cgiosuv]] | ||
+ | Print output in JSON format | ||
+ | |||
+ | -q TYPE, --quietmode=TYPE | ||
+ | Set smartctl quiet mode to one of: errorsonly, silent, noserial | ||
+ | |||
+ | -d TYPE, --device=TYPE | ||
+ | | ||
+ | ata, scsi[+TYPE], | ||
+ | |||
+ | -T TYPE, --tolerance=TYPE | ||
+ | | ||
+ | |||
+ | -b TYPE, --badsum=TYPE | ||
+ | Set action on bad checksum to one of: warn, exit, ignore | ||
+ | |||
+ | -r TYPE, --report=TYPE | ||
+ | | ||
+ | |||
+ | -n MODE[, | ||
+ | No check if: never, sleep, standby, idle (see man page) | ||
+ | |||
+ | ============================== DEVICE FEATURE ENABLE/ | ||
+ | |||
+ | -s VALUE, --smart=VALUE | ||
+ | Enable/ | ||
+ | |||
+ | -o VALUE, --offlineauto=VALUE | ||
+ | Enable/ | ||
+ | |||
+ | -S VALUE, --saveauto=VALUE | ||
+ | Enable/ | ||
+ | |||
+ | -s NAME[, | ||
+ | Enable/ | ||
+ | dsn, | ||
+ | standby, | ||
+ | wcreorder, | ||
+ | |||
+ | ======================================= READ AND DISPLAY DATA OPTIONS ===== | ||
+ | |||
+ | -H, --health | ||
+ | Show device SMART health status | ||
+ | |||
+ | -c, --capabilities | ||
+ | Show device SMART capabilities | ||
+ | |||
+ | -A, --attributes | ||
+ | Show device SMART vendor-specific Attributes and values | ||
+ | |||
+ | -f FORMAT, --format=FORMAT | ||
+ | Set output format for attributes: old, brief, hex[, | ||
+ | |||
+ | -l TYPE, --log=TYPE | ||
+ | Show device log. TYPE: error, selftest, selective, directory[, | ||
+ | xerror[, | ||
+ | sasphy[, | ||
+ | scttempint, | ||
+ | gplog, | ||
+ | |||
+ | -v N,OPTION , --vendorattribute=N, | ||
+ | Set display OPTION for vendor Attribute N (see man page) | ||
+ | |||
+ | -F TYPE, --firmwarebug=TYPE | ||
+ | Use firmware bug workaround: | ||
+ | none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid | ||
+ | |||
+ | -P TYPE, --presets=TYPE | ||
+ | Drive-specific presets: use, ignore, show, showall | ||
+ | |||
+ | -B [+]FILE, --drivedb=[+]FILE | ||
+ | Read and replace [add] drive database from FILE | ||
+ | [default is +C:/ | ||
+ | and then C:/ | ||
+ | |||
+ | ============================================ DEVICE SELF-TEST OPTIONS ===== | ||
+ | |||
+ | -t TEST, --test=TEST | ||
+ | Run test. TEST: offline, short, long, conveyance, force, vendor,N, | ||
+ | select,M-N, pending,N, afterselect, | ||
+ | |||
+ | -C, --captive | ||
+ | Do test in captive mode (along with -t) | ||
+ | |||
+ | -X, --abort | ||
+ | Abort any non-captive test on device | ||
+ | |||
+ | =================================================== SMARTCTL EXAMPLES ===== | ||
+ | |||
+ | smartctl -a / | ||
+ | |||
+ | smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda | ||
+ | (Enables SMART on first disk) | ||
+ | |||
+ | smartctl -t long / | ||
+ | |||
+ | smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda | ||
+ | (Prints Self-Test & Attribute errors) | ||
+ | smartctl -a /dev/sda | ||
+ | | ||
+ | smartctl -a /dev/pd3 | ||
+ | | ||
+ | smartctl -a /dev/tape1 | ||
+ | | ||
+ | smartctl -A /dev/hdb,3 | ||
+ | (Prints Attributes for physical drive 3 on 3ware 9000 RAID) | ||
+ | smartctl -A / | ||
+ | (Prints Attributes for 3ware controller 0, port 1 using tw_cli) | ||
+ | smartctl --all --device=areca, | ||
+ | | ||
+ | on 1st Areca RAID controller) | ||
+ | |||
+ | ATA SMART access methods and ordering may be specified by modifiers | ||
+ | following the device name: / | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | The default on this system is / | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== トラブルシューティング ===== | ||
+ | |||
+ | ==== smartctl で S.M.A.R.T の情報を読み出せない ==== | ||
+ | < | ||
+ | $ smartctl -i /dev/sda | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | smartctl 7.1 2019-12-30 r5022 [x86_64-w64-mingw32-w10-b20190] (sf-7.1-1) | ||
+ | Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org | ||
+ | |||
+ | Smartctl open device: /dev/sda failed: \\.\PhysicalDrive0: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **smartctl** を **sudo** コマンドで管理者実行する。\\ | ||
+ | < | ||
+ | $ sudo smartctl -i /dev/sda | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | smartctl 7.1 2019-12-30 r5022 [x86_64-w64-mingw32-w10-b20190] (sf-7.1-1) | ||
+ | Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org | ||
+ | |||
+ | === START OF INFORMATION SECTION === | ||
+ | Model Family: | ||
+ | Device Model: | ||
+ | Serial Number: | ||
+ | LU WWN Device Id: 5 002538 550230683 | ||
+ | Firmware Version: DXM04B0Q | ||
+ | User Capacity: | ||
+ | Sector Size: 512 bytes logical/ | ||
+ | Rotation Rate: Solid State Device | ||
+ | Device is: In smartctl database [for details use: -P show] | ||
+ | ATA Version is: | ||
+ | SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) | ||
+ | Local Time is: Tue Aug 18 06:22:40 2020 | ||
+ | SMART support is: Available - device has SMART capability. | ||
+ | SMART support is: Enabled | ||
+ | </ | ||
+ | </ | ||