Skip to content

Instantly share code, notes, and snippets.

@mchubby
Created November 2, 2018 21:15
Show Gist options
  • Save mchubby/cd5c603fe176ccf6617cb3ac57dd5d15 to your computer and use it in GitHub Desktop.
Save mchubby/cd5c603fe176ccf6617cb3ac57dd5d15 to your computer and use it in GitHub Desktop.
setlocal enabledelayedexpansion
pushd C:\Program Files\smartmontools\bin
for /f "tokens=1,2,3 delims= " %i in ('smartctl.exe --scan') do ( echo %i & smartctl.exe -i %i | findstr /i serial )
smartctl.exe -l scterc /dev/sdc
smartctl 6.6 2017-11-05 r4594 [x86_64-w64-mingw32-w10-1709] (sf-6.6-1)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
SCT Error Recovery Control:
Read: 100 (10.0 seconds)
Write: 100 (10.0 seconds)
smartctl.exe -l scterc,70,70 /dev/sdc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment