Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active March 8, 2022 14:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magnetikonline/9403569 to your computer and use it in GitHub Desktop.
Save magnetikonline/9403569 to your computer and use it in GitHub Desktop.
Check Linux filesystem for bad blocks.

Check Linux filesystem for bad blocks

List filesystem(s) to check

$ df -h

Will be listed as /dev/sdX1.

Run a badblocks check

$ sudo badblocks -sv /dev/sdX1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment