summaryrefslogtreecommitdiff
path: root/misc/badblocks.8.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1997-04-26 14:37:06 +0000
committerTheodore Ts'o <tytso@mit.edu>1997-04-26 14:37:06 +0000
commit74becf3c0a065f8d64e07ce4d31f9fe53be91d62 (patch)
treedf6573f851195eb5a0beaa0bc540a74fc89cda3d /misc/badblocks.8.in
parent900e442732393189b8ecfd3bb39176e398b24970 (diff)
downloade2fsprogs-74becf3c0a065f8d64e07ce4d31f9fe53be91d62.tar.gz
Many files:
Checkin of e2fsprogs 1.02.
Diffstat (limited to 'misc/badblocks.8.in')
-rw-r--r--misc/badblocks.8.in66
1 files changed, 66 insertions, 0 deletions
diff --git a/misc/badblocks.8.in b/misc/badblocks.8.in
new file mode 100644
index 00000000..1c4069c2
--- /dev/null
+++ b/misc/badblocks.8.in
@@ -0,0 +1,66 @@
+.\" -*- nroff -*-
+.TH BADBLOCKS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
+.SH NAME
+badblocks \- search a device for bad blocks
+.SH SYNOPSIS
+.B badblocks
+[
+.B \-b
+block-size
+]
+[
+.B \-o
+output_file
+]
+[
+.B \-v
+]
+[
+.B \-w
+]
+device
+blocks-count
+.SH DESCRIPTION
+.B badblocks
+is used to search for bad blocks on a device (usually a disk partition).
+.br
+.I device
+is the special file corresponding to the device (e.g /dev/hdXX).
+.br
+.I blocks-count
+is the number of blocks on the device.
+.SH OPTIONS
+.TP
+.I -b block-size
+Specify the size of blocks in bytes.
+.TP
+.I -o output_file
+Write the list of bad blocks to the specified file. Without this option,
+.B badblocks
+displays the list on its standard output.
+.TP
+.I -v
+Verbose mode.
+.TP
+.I -w
+Use write-mode test. With this option,
+.B badblocks
+scans for bad blocks by writing some patterns (0xaa, 0x55, 0xff, 0x00) on
+every block of the device, reading every block and comparing the contents.
+.SH WARNING
+Never use the `-w' option on an device containing an existing file system.
+This option erases data!
+.SH AUTHOR
+.B badblocks
+has been written by Remy Card <card@masi.ibp.fr>, the developer and maintainer
+of the ext2 fs.
+.SH BUGS
+I had no chance to make reals tests of this program since I use IDE drives
+which remap bad blocks. I only made some tests on floppies.
+.SH AVAILABILITY
+.B badblocks
+is available for anonymous ftp from ftp.ibp.fr and tsx-11.mit.edu in
+/pub/linux/packages/ext2fs.
+.SH SEE ALSO
+.BR e2fsck (8),
+.BR mke2fs (8)