1*01869ca4Swiz.\" $NetBSD: drtest.8,v 1.16 2017/07/03 21:31:00 wiz Exp $ 22b6e02aaSmrg.\" 32b6e02aaSmrg.\" Copyright (c) 1983, 1991, 1993 42b6e02aaSmrg.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 302b6e02aaSmrg.\" from: @(#)drtest.8 8.1 (Berkeley) 6/5/93 3161f28255Scgd.\" 323af2acdcSchristos.Dd February 17, 2017 332ffa665bSsimonb.Dt DRTEST 8 vax 3439b11db8Sgarbled.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm drtest 3758ab011cScjep.Nd stand-alone disk test program 3861f28255Scgd.Sh DESCRIPTION 39279552d3Slukem.Nm 4058ab011cScjepis a stand-alone program used to read a disk 4161f28255Scgdtrack by track. 4261f28255ScgdIt was primarily intended as a test program 4358ab011cScjepfor new stand-alone drivers, but has shown 4461f28255Scgduseful in other contexts as well, such as 4561f28255Scgdverifying disks and running speed 4661f28255Scgdtests. For example, when a disk has been formatted 4761f28255Scgd(by 483af2acdcSchristos.Xr vax/format 8 ) , 4961f28255Scgdyou can check that 5061f28255Scgdhard errors has been taken care of by running 51990562bfSwiz.Nm . 5261f28255ScgdNo hard errors should be found, but in many cases 5361f28255Scgdquite a few soft 5461f28255Scgd.Tn ECC 5561f28255Scgderrors will be reported. 5661f28255Scgd.Pp 5761f28255ScgdWhile 58279552d3Slukem.Nm 5961f28255Scgdis running, the cylinder number is printed on 6061f28255Scgdthe console for every 10th cylinder read. 611f8c01efSwiz.Sh EXAMPLES 6261f28255ScgdA sample run of 6357d07c69Swiz.Nm 6461f28255Scgdis shown below. 6561f28255ScgdIn this example (using a 750), 66279552d3Slukem.Nm 6761f28255Scgdis loaded from the root file system; 6861f28255Scgdusually it 6961f28255Scgdwill be loaded from the machine's 7061f28255Scgdconsole storage device. Boldface means user input. 7161f28255ScgdAs usual, ``#'' and ``@'' may be used to edit input. 7261f28255Scgd.Pp 7361f28255Scgd.Bd -unfilled -offset indent -compact 74*01869ca4Swiz.Li \&>>> Ns Sy B/3 7561f28255Scgd.Li \&%% 7661f28255Scgd.Li \&loading hk(0,0)boot 7761f28255Scgd.Li \&Boot 7861f28255Scgd.Li \&: Sy \&hk(0,0)drtest 7961f28255Scgd.Li Test program for stand-alone up and hp driver 8057d07c69Swiz.Pp 8161f28255Scgd.Li Debugging level (1=bse, 2=ecc, 3=bse+ecc)? 8261f28255Scgd.Li Enter disk name [type(adapter,unit),\ e.g.\ hp(1,3)]? Sy hp(0,0) 8361f28255Scgd.Li Device data: #cylinders=1024, #tracks=16, #sectors=32 8461f28255Scgd.Li Testing hp(0,0), chunk size is 16384 bytes. 8561f28255Scgd.Em (chunk\ size\ is\ the\ number\ of\ bytes read per disk access) 8661f28255Scgd.Li Start ...Make sure hp(0,0) is online 8761f28255Scgd.Li \ ... 8861f28255Scgd.Em (errors are reported as they occur) 8961f28255Scgd.Li \ ... 9061f28255Scgd.Em (...program restarts to allow checking other disks) 9161f28255Scgd.Em (...to abort halt machine with \&^P) 9261f28255Scgd.Ed 9361f28255Scgd.Sh DIAGNOSTICS 9461f28255ScgdThe diagnostics are intended to be self explanatory. Note, however, that 9561f28255Scgdthe device number 9661f28255Scgdin the diagnostic messages is identified as 9761f28255Scgd.Em typeX 9861f28255Scgdinstead of 9961f28255Scgd.Em type(a,u) 10061f28255Scgdwhere 10161f28255Scgd.Ar X 10261f28255Scgd\&= a*8+u, e.g., hp(1,3) becomes hp11. 10361f28255Scgd.Sh SEE ALSO 10457d07c69Swiz.Xr bad144 8 , 1053af2acdcSchristos.Xr vax/format 8 10661f28255Scgd.Sh HISTORY 10761f28255ScgdThe 10861f28255Scgd.Nm 10961f28255Scgdcommand appeared in 11061f28255Scgd.Bx 4.2 . 11157d07c69Swiz.Sh AUTHORS 11257d07c69Swiz.An Helge Skrivervik 113