Skip to content

Instantly share code, notes, and snippets.

@mdPlusPlus
Last active March 16, 2025 00:23
Show Gist options
  • Save mdPlusPlus/30ebddea8d6167b27ef2d07c75e5ebc9 to your computer and use it in GitHub Desktop.
Save mdPlusPlus/30ebddea8d6167b27ef2d07c75e5ebc9 to your computer and use it in GitHub Desktop.
How to check new hard drives with badblocks
badblocks -b 4096 -p 0 -s -t 0 -v -w DEVICE [LAST_BLOCK] [FIRST_BLOCK]
-b block_size
-p num_passes
-s Show the progress of the scan
-t test_pattern
-v Verbose mode
-w Use write-mode test
@mdPlusPlus
Copy link
Author

mdPlusPlus commented Mar 16, 2025

Shows output similar to this: Checking blocks 0 to 1953512447
When cancelled with ctrl+c: Interrupted at block 284489984
To continue: badblocks -b 4096 -p 0 -s -t 0 -v -w DEVICE 1953512447 284489983

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment