Background papers for NBD talk.
[libguestfs-talks.git] / 2019-fosdem / 5000-badblocks.html
1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
4
5 <h1>Testing the badblocks command</h1>
6
7 <style>
8 pre {
9     font-size: 70%;
10     background: -webkit-linear-gradient(#000, #eee);
11     -webkit-background-clip: text;
12     -webkit-text-fill-color: transparent;
13 }
14 </style>
15
16 <pre>
17 BADBLOCKS(8)                System Manager's Manual               BADBLOCKS(8)
18
19 NAME
20        badblocks - search a device for bad blocks
21
22 SYNOPSIS
23        badblocks  [  -svwnfBX  ]  [ -b block_size ] [ -c blocks_at_once ] [ -d
24        read_delay_factor ] [ -e max_bad_blocks ] [ -i input_file ] [  -o  out‐
25        put_file  ] [ -p num_passes ] [ -t test_pattern ] device [ last_block ]
26        [ first_block ]
27
28 DESCRIPTION
29        badblocks is used to search for bad blocks on a device (usually a  disk
30        partition).   device  is  the  special file corresponding to the device
31        (e.g /dev/hdc1).  last_block is the last block to be checked; if it  is
32        not  specified,  the  last  block  on  the device is used as a default.
33        first_block is an optional parameter specifying the starting block num‐
34        ber  for  the  test, which allows the testing to start in the middle of
35        the disk.  If it is not specified the first block on the disk  is  used
36        as a default.
37
38        Important  note:  If  the output of badblocks is going to be fed to the
39        e2fsck or mke2fs programs, it is important that the block size is prop‐
40        erly  specified,  since  the block numbers which are generated are very
41 </pre>