2 .TH BADBLOCKS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
4 badblocks \- search a device for bad blocks
22 blocks-count [ start-block ]
25 is used to search for bad blocks on a device (usually a disk partition).
28 is the special file corresponding to the device (e.g /dev/hdXX).
31 is the number of blocks on the device.
35 Specify the size of blocks in bytes.
38 Write the list of bad blocks to the specified file. Without this option,
40 displays the list on its standard output.
46 Use write-mode test. With this option,
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.
51 Never use the `-w' option on an device containing an existing file system.
52 This option erases data!
55 was written by Remy Card <card@masi.ibp.fr>, the developer and maintainer
58 I had no chance to make real tests of this program since I use IDE drives,
59 which remap bad blocks. I only made some tests on floppies.
62 is available for anonymous ftp from ftp.ibp.fr and tsx-11.mit.edu in
63 /pub/linux/packages/ext2fs.