Skip to content

Instantly share code, notes, and snippets.

@ecthiender
Created September 4, 2019 11:23
Show Gist options
  • Save ecthiender/3268ff0baefb3ae4520ae1d0279869c9 to your computer and use it in GitHub Desktop.
Save ecthiender/3268ff0baefb3ae4520ae1d0279869c9 to your computer and use it in GitHub Desktop.
Perform health checks on your hard disk (Linux)

Perform health checks on your hard disk (Linux)

Check bad sectors

program: badblocks

sudo badblocks -v /dev/sdxy > badsectors.txt

S.M.A.R.T health checks

program: smartmontools

sudo smartctl --health /dev/sdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment