72 lines
1.2 KiB
HTML
72 lines
1.2 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>diskcheck(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>diskcheck(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
diskcheck - check a disk for bad sectors
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>diskcheck</STRONG> <EM>device</EM> <EM>start</EM> <EM>count</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>diskcheck</STRONG> <STRONG>/dev/at0</STRONG> <STRONG>0</STRONG> <STRONG>1200</STRONG>
|
|
# Check 1.2 MB diskette
|
|
|
|
<STRONG>diskcheck</STRONG> <STRONG>/dev/at0</STRONG> <STRONG>100</STRONG> <STRONG>50</STRONG>
|
|
# Check blocks 100 to 149
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Diskcheck</EM> checks a disk for bad sectors by reading in each sector,
|
|
writing a known bit pattern onto it, reading it back in and comparing
|
|
with what was written. This check is then done a second time. Bad
|
|
sectors are reported. After each sector is tested, the original sector
|
|
is restored. Only use this program on unmounted partitions. Killing it
|
|
part way through may result in lost data.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/format.1.html">format(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|