Security

A technician is redeploying a used drive, /dev/sdc, to another team. The existing data must be destroyed, and the technician also wants every sector exercised to detect failing areas in the same operation. Which command does both?

Show the answer

Correct answerA. badblocks -wsv /dev/sdc

badblocks -w runs a destructive write test, writing and reading back patterns on every sector, which erases the data and finds bad areas. The -n option is non-destructive and restores the original contents, so the data would survive.