Commit | Line | Data |
---|---|---|
b42074ab CL |
1 | .\" Copyright (c) 1983, 1991 Regents of the University of California. |
2 | .\" All rights reserved. | |
dc7bfb7e | 3 | .\" |
b42074ab | 4 | .\" %sccs.include.redist.man% |
dc7bfb7e | 5 | .\" |
b42074ab CL |
6 | .\" @(#)drtest.8 6.3 (Berkeley) %G% |
7 | .\" | |
8 | .Dd | |
9 | .Dt DRTEST 8 | |
10 | .Os BSD 4.2 | |
11 | .Sh NAME | |
12 | .Nm drtest | |
13 | .Nd standalone disk test program | |
14 | .Sh DESCRIPTION | |
15 | .Nm Drtest | |
dc7bfb7e KM |
16 | is a standalone program used to read a disk |
17 | track by track. | |
18 | It was primarily intended as a test program | |
19 | for new standalone drivers, but has shown | |
20 | useful in other contexts as well, such as | |
21 | verifying disks and running speed | |
22 | tests. For example, when a disk has been formatted | |
b42074ab CL |
23 | (by |
24 | .Xr format 8 ) , | |
25 | you can check that | |
dc7bfb7e | 26 | hard errors has been taken care of by running |
b42074ab | 27 | .Nm drtest . |
dc7bfb7e | 28 | No hard errors should be found, but in many cases |
b42074ab CL |
29 | quite a few soft |
30 | .Tn ECC | |
31 | errors will be reported. | |
32 | .Pp | |
dc7bfb7e | 33 | While |
b42074ab | 34 | .Nm drtest |
dc7bfb7e KM |
35 | is running, the cylinder number is printed on |
36 | the console for every 10th cylinder read. | |
b42074ab | 37 | .Sh EXAMPLE |
dc7bfb7e | 38 | A sample run of |
b42074ab | 39 | .Xr drtest |
dc7bfb7e KM |
40 | is shown below. |
41 | In this example (using a 750), | |
b42074ab | 42 | .Nm drtest |
dc7bfb7e KM |
43 | is loaded from the root file system; |
44 | usually it | |
45 | will be loaded from the machine's | |
46 | console storage device. Boldface means user input. | |
47 | As usual, ``#'' and ``@'' may be used to edit input. | |
b42074ab CL |
48 | .Pp |
49 | .Bd -unfilled -offset indent -compact | |
50 | .Li \&>>> Ns Sy B/3 | |
51 | .Li \&%% | |
52 | .Li \&loading hk(0,0)boot | |
53 | .Li \&Boot | |
54 | .Li \&: Sy \&hk(0,0)drtest | |
55 | .Li Test program for stand-alone up and hp driver | |
56 | ||
57 | .Li Debugging level (1=bse, 2=ecc, 3=bse+ecc)? | |
58 | .Li Enter disk name [type(adapter,unit),\ e.g.\ hp(1,3)]? Sy hp(0,0) | |
59 | .Li Device data: #cylinders=1024, #tracks=16, #sectors=32 | |
60 | .Li Testing hp(0,0), chunk size is 16384 bytes. | |
61 | .Em (chunk\ size\ is\ the\ number\ of\ bytes read per disk access) | |
62 | .Li Start ...Make sure hp(0,0) is online | |
63 | .Li \ ... | |
64 | .Em (errors are reported as they occur) | |
65 | .Li \ ... | |
66 | .Em (...program restarts to allow checking other disks) | |
67 | .Em (...to abort halt machine with \&^P) | |
68 | .Ed | |
69 | .Sh DIAGNOSTICS | |
dc7bfb7e KM |
70 | The diagnostics are intended to be self explanatory. Note, however, that |
71 | the device number | |
b42074ab CL |
72 | in the diagnostic messages is identified as |
73 | .Em typeX | |
74 | instead of | |
75 | .Em type(a,u) | |
76 | where | |
77 | .Ar X | |
78 | \&= a*8+u, e.g., hp(1,3) becomes hp11. | |
79 | .Sh SEE ALSO | |
80 | .Xr format 8 , | |
81 | .Xr bad144 8 | |
82 | .Sh AUTHOR | |
dc7bfb7e | 83 | Helge Skrivervik |
b42074ab CL |
84 | .Sh HISTORY |
85 | The | |
86 | .Nm | |
87 | command appeared in | |
88 | .Bx 4.2 . |