1 .\" $NetBSD: drtest.8,v 1.13 2003/04/13 16:04:02 cjep Exp $
3 .\" Copyright (c) 1983, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
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. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" from: @(#)drtest.8 8.1 (Berkeley) 6/5/93
37 .Nd stand-alone disk test program
40 is a stand-alone program used to read a disk
42 It was primarily intended as a test program
43 for new stand-alone drivers, but has shown
44 useful in other contexts as well, such as
45 verifying disks and running speed
46 tests. For example, when a disk has been formatted
50 hard errors has been taken care of by running
52 No hard errors should be found, but in many cases
55 errors will be reported.
59 is running, the cylinder number is printed on
60 the console for every 10th cylinder read.
65 In this example (using a 750),
67 is loaded from the root file system;
69 will be loaded from the machine's
70 console storage device. Boldface means user input.
71 As usual, ``#'' and ``@'' may be used to edit input.
73 .Bd -unfilled -offset indent -compact
74 .Li \&\*[Gt]\*[Gt]\*[Gt] Ns Sy B/3
76 .Li \&loading hk(0,0)boot
78 .Li \&: Sy \&hk(0,0)drtest
79 .Li Test program for stand-alone up and hp driver
81 .Li Debugging level (1=bse, 2=ecc, 3=bse+ecc)?
82 .Li Enter disk name [type(adapter,unit),\ e.g.\ hp(1,3)]? Sy hp(0,0)
83 .Li Device data: #cylinders=1024, #tracks=16, #sectors=32
84 .Li Testing hp(0,0), chunk size is 16384 bytes.
85 .Em (chunk\ size\ is\ the\ number\ of\ bytes read per disk access)
86 .Li Start ...Make sure hp(0,0) is online
88 .Em (errors are reported as they occur)
90 .Em (...program restarts to allow checking other disks)
91 .Em (...to abort halt machine with \&^P)
94 The diagnostics are intended to be self explanatory. Note, however, that
96 in the diagnostic messages is identified as
102 \&= a*8+u, e.g., hp(1,3) becomes hp11.