While decommissioning a 1 TB SATA drive identified as /dev/sdc, you are instructed to overwrite every block with a sequence of test patterns, verify each write, and observe both a live progress indicator and any read/write error counts. The drive is unmounted. Which command BEST meets these requirements using native Linux utilities?
The write-mode test activated by badblocks -w destructively overwrites every block with four patterns (0xaa, 0x55, 0xff, 0x00) and verifies the result. Adding -s shows a real-time percentage of the current pass, and -v prints detailed counts of read, write, and data-corruption errors. Together, -wsv provides the requested wipe, verification, progress, and error reporting. The -n option is non-destructive and therefore unsuitable for a secure wipe; omitting -v hides error statistics; omitting -s hides progress information, and adding -p 0 changes nothing beyond the default while still lacking at least one required indicator.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the `-w` option in `badblocks` do?
Open an interactive chat with Bash
Why is the `-n` option in `badblocks` not suitable for a secure wipe?
Open an interactive chat with Bash
What is the purpose of adding the `-s` and `-v` options to `badblocks` commands?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access