xref: /netbsd-src/share/man/man8/man8.vax/drtest.8 (revision ce0bb6e8d2e560ecacbe865a848624f94498063b)
1.\" Copyright (c) 1983, 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"     from: @(#)drtest.8	6.3 (Berkeley) 3/16/91
33.\"	$Id: drtest.8,v 1.2 1993/08/01 07:34:44 mycroft Exp $
34.\"
35.Dd March 16, 1991
36.Dt DRTEST 8
37.Os BSD 4.2
38.Sh NAME
39.Nm drtest
40.Nd standalone disk test program
41.Sh DESCRIPTION
42.Nm Drtest
43is a standalone program used to read a disk
44track by track.
45It was primarily intended as a test program
46for new standalone drivers, but has shown
47useful in other contexts as well, such as
48verifying disks and running speed
49tests. For example, when a disk has been formatted
50(by
51.Xr format 8 ) ,
52you can check that
53hard errors has been taken care of by running
54.Nm drtest .
55No hard errors should be found, but in many cases
56quite a few soft
57.Tn ECC
58errors will be reported.
59.Pp
60While
61.Nm drtest
62is running, the cylinder number is printed on
63the console for every 10th cylinder read.
64.Sh EXAMPLE
65A sample run of
66.Xr drtest
67is shown below.
68In this example (using a 750),
69.Nm drtest
70is loaded from the root file system;
71usually it
72will be loaded from the machine's
73console storage device.  Boldface means user input.
74As usual, ``#'' and ``@'' may be used to edit input.
75.Pp
76.Bd -unfilled -offset indent -compact
77.Li \&>>> Ns Sy B/3
78.Li \&%%
79.Li \&loading hk(0,0)boot
80.Li \&Boot
81.Li \&: Sy \&hk(0,0)drtest
82.Li Test program for stand-alone up and hp driver
83
84.Li Debugging level (1=bse, 2=ecc, 3=bse+ecc)?
85.Li Enter disk name [type(adapter,unit),\ e.g.\ hp(1,3)]? Sy hp(0,0)
86.Li Device data: #cylinders=1024, #tracks=16, #sectors=32
87.Li Testing hp(0,0), chunk size is 16384 bytes.
88.Em (chunk\ size\ is\ the\ number\ of\ bytes read per disk access)
89.Li Start ...Make sure hp(0,0) is online
90.Li \ ...
91.Em (errors are reported as they occur)
92.Li \ ...
93.Em (...program restarts to allow checking other disks)
94.Em (...to abort halt machine with \&^P)
95.Ed
96.Sh DIAGNOSTICS
97The diagnostics are intended to be self explanatory. Note, however, that
98the device number
99in the diagnostic messages is identified as
100.Em typeX
101instead of
102.Em type(a,u)
103where
104.Ar X
105\&= a*8+u, e.g., hp(1,3) becomes hp11.
106.Sh SEE ALSO
107.Xr format 8 ,
108.Xr bad144 8
109.Sh AUTHOR
110Helge Skrivervik
111.Sh HISTORY
112The
113.Nm
114command appeared in
115.Bx 4.2 .
116