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