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