Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / misc / badblocks.8
1 .\" -*- nroff -*-
2 .TH BADBLOCKS 8 "March 1994" "Version 0.5"
3 .SH NAME
4 badblocks \- search a device for bad blocks
5 .SH SYNOPSIS
6 .B badblocks
7 [
8 .B \-b
9 block-size
10 ]
11 [
12 .B \-o
13 output_file
14 ]
15 [
16 .B \-v
17 ]
18 [
19 .B \-w
20 ]
21 device
22 blocks-count
23 .SH DESCRIPTION
24 .B badblocks
25 is used to search for bad blocks on a device (usually a disk partition).
26 .br
27 .I device
28 is the special file corresponding to the device (e.g /dev/hdXX).
29 .br
30 .I blocks-count
31 is the number of blocks on the device.
32 .SH OPTIONS
33 .TP
34 .I -b block-size
35 Specify the size of blocks in bytes.
36 .TP
37 .I -o output_file
38 Write the list of bad blocks to the specified file. Without this option,
39 .B badblocks
40 displays the list on its standard output.
41 .TP
42 .I -v
43 Verbose mode.
44 .TP
45 .I -w
46 Use write-mode test. With this option,
47 .B badblocks
48 scans for bad blocks by writing some patterns (0xaa, 0x55, 0xff, 0x00) on
49 every block of the device, reading every block and comparing the contents.
50 .SH WARNING
51 Never use the `-w' option on an device containing an existing file system.
52 This option erases data!
53 .SH AUTHOR
54 .B badblocks
55 has been written by Remy Card <card@masi.ibp.fr>, the developer and maintainer
56 of the ext2 fs.
57 .SH BUGS
58 I had no chance to make reals tests of this program since I use IDE drives
59 which remap bad blocks. I only made some tests on floppies.
60 .SH AVAILABILITY
61 .B badblocks
62 is available for anonymous ftp from ftp.ibp.fr (132.227.60.2) in
63 /pub/linux/BETA/ext2fs.
64 .SH SEE ALSO
65 .BR e2fsck (8),
66 .BR mke2fs (8)