Last active
March 16, 2025 00:23
-
-
Save mdPlusPlus/30ebddea8d6167b27ef2d07c75e5ebc9 to your computer and use it in GitHub Desktop.
How to check new hard drives with badblocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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