Skip to content

Instantly share code, notes, and snippets.

@flatlinebb
Created November 22, 2018 22:20
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 flatlinebb/f1e4333fa30064abf657b411daa601ea to your computer and use it in GitHub Desktop.
Save flatlinebb/f1e4333fa30064abf657b411daa601ea to your computer and use it in GitHub Desktop.
SMART Test Status all drives (/dev/sd[a-z])
for sd in /dev/sd[a-z]; do echo $sd; smartctl -c $sd | grep Self-test | grep -v supported; smartctl -c $sd | grep remaining; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment