From 1a925460a92cadefa19cb41eb153f77636d9504f Mon Sep 17 00:00:00 2001 From: David Hatch <3mail48@gmail.com> Date: Wed, 15 Jan 2020 01:50:37 -0800 Subject: [PATCH] badblocks: add more examples (#3747) Add two examples using verbose mode and output to file. --- pages/common/badblocks.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/common/badblocks.md b/pages/common/badblocks.md index 2102c3f11c..fbc8b59e6d 100644 --- a/pages/common/badblocks.md +++ b/pages/common/badblocks.md @@ -14,3 +14,15 @@ - Search an unmounted disk for bad blocks with a destructive write test: `sudo badblocks -w {{/dev/sda}}` + +- Search an unmounted disk for bad blocks with a destructive write test and show verbose status: + +`sudo badblocks -svw {{/dev/sda}}` + +- Search an unmounted disk in desctructive mode and output found blocks to a file: + +`sudo badblocks -o {{/path/to/file}} -w {{/dev/sda}}` + +- Search an unmounted disk in desctructive mode with improved speed using 4K block size and 64K block count: + +`sudo badblocks -w -b {{4096}} -c {{65536}} {{/dev/sda}}`