72 lines
1.3 KiB
HTML
72 lines
1.3 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>badblocks(8)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>badblocks(8)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
badblocks - put a list of bad blocks in a file
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>badblocks</STRONG> <EM>block</EM>_<EM>special</EM> [<EM>block</EM>] ...
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>badblocks</STRONG> <STRONG>/dev/hd1</STRONG>
|
|
# Handle bad blocks on /<EM>dev</EM>/<EM>hd1</EM>
|
|
|
|
<STRONG>badblocks</STRONG> <STRONG>/dev/hd3</STRONG> <STRONG>310</STRONG> <STRONG>570</STRONG> <STRONG>1680</STRONG>
|
|
# Three bad blocks on /<EM>dev</EM>/<EM>hd3</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
If a device contains bad sectors, it is important to not have them
|
|
allocated to important files. This program makes it possible to collect
|
|
up to 7 bad blocks into a dummy file, so they will not be allocated for a
|
|
'real' file. When the program starts up, it asks for a list of bad
|
|
blocks, unless they are provided as arguments. Then it creates a file
|
|
whose name is of the form .<EM>Bad</EM>_<EM>xxxxx</EM>, where <EM>xxxxx</EM> is a pid.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/readall.1.html">readall(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|