Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active December 16, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanschmidt/5511985 to your computer and use it in GitHub Desktop.
Save stefanschmidt/5511985 to your computer and use it in GitHub Desktop.
Run an extended S.M.A.R.T. selftest on a hard disk drive on OS X
brew install smartmontools
# launch selftest in background during regular system operation (~2h)
smartctl -c -t long disk0
# get test results from S.M.A.R.T. error log
smartctl -l selftest disk0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment