Skip to content

Instantly share code, notes, and snippets.

@flatlinebb
Last active February 20, 2019 18:30
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/4195ed169aafc24b1e8c62bf091e2de8 to your computer and use it in GitHub Desktop.
Save flatlinebb/4195ed169aafc24b1e8c62bf091e2de8 to your computer and use it in GitHub Desktop.
SMART Scripts
for sd in /dev/sd[a-z]; do echo $sd; smartctl -t short $sd; done
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
watch -c -n 1 -d --exec ./smart-test-status-all.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment