From 10e9f9d2af3e5fa1164f6943ea8a4d08bfed0cb1 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 11 Jun 2017 14:30:40 +0100 Subject: [PATCH] badblocks: add page (#1399) --- pages/common/badblocks.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/badblocks.md diff --git a/pages/common/badblocks.md b/pages/common/badblocks.md new file mode 100644 index 0000000000..2102c3f11c --- /dev/null +++ b/pages/common/badblocks.md @@ -0,0 +1,16 @@ +# badblocks + +> Search a device for bad blocks. +> Some usages of badblocks can cause destructive actions, such as erasing all the data on a disk, including the partition table. + +- Search a disk for bad blocks by using a non-destructive read-only test: + +`sudo badblocks {{/dev/sda}}` + +- Search an unmounted disk for bad blocks with a non-destructive read-write test: + +`sudo badblocks -n {{/dev/sda}}` + +- Search an unmounted disk for bad blocks with a destructive write test: + +`sudo badblocks -w {{/dev/sda}}`