Subject: RE: miniroot?
To: 'David Brownlee' <abs@NetBSD.ORG>
From: Gunnar Helliesen <gunnar@bitcon.no>
List: port-vax
Date: 02/17/1998 11:05:13
David Brownlee wrote:
> 
> 	Can anyone remember the prom command on a VS2000 to reformat an
> 	RD disk?

This might be more than you asked for, but anyways:



To run the hard disk formatter :
>>> T 70
 
 
                  KA410-A RDRXfmt
 
 
VSfmt_QUE_unitno (0-2) ? 0
 
VSfmt_STS_Siz .??
 
VSfmt_RES_ERR #2
 84 FAIL

Note 1. The T 70 format is not a valid option to format an RX50 floppy,
but _is_ valid to format an RX33 floppy.

Note 2. The T 70 format utility will format non-Digital disks, but will
go into a series of questions for which you need the appropriate
answers.

Sample follows:-
========================================================================
How to Format a Non-Digital Hard Disk

If the hard disk installed on your system is not a DIGITAL disk, or if
it is a hard disk that the formatter program doesn't recognize, the
formatter goes into a query mode.  This query mode allows you to input
specific data about the drive so that the format program can format the
drive.

-----------------------------------------------------------------------
                             IMPORTANT
       THE FORMATTER PROGRAM DESTROYS ALL USER DATA ON THE DISK.
_______________________________________________________________________

To run the formatter, type "TEST 70" and "RETURN" at the console prompt
">>>".  The following text will be output to the screen:

     KA410-A RDRXfmt

     VSfmt_QUE_unitno (0-2)

To format the hard disk in the expansion box type "0" and "RETURN",
to format the hard disk in the expansion box, type "1" and "RETURN".

*N.B. I have entered numbers which are the published, presumeably
correct
*numbers to format an RD32 (aka Seagate ST251). Some of these numbers
are
*easily obtainable, others.....well, I dunno where they come from.

If the hard disk is not recognized by the formatter routine, the
following output will be seen on the screen:


    VSfmt_STS_Siz............. ????             [unknown disk drive]

    VSfmt_STS_EntUIB     [formatter needs disk specific information]

At this point, the formatter is in the query mode.  It will ask for
specific information about the disk drive to be formatted.  All the
requested data can usually be found in the technical manual for the
drive in question.

Here is a brief explanation of the data needed to format the drive:

    xbnsiz :=54         [enter the number of transfer blocks]

    dbnsiz :=48         [enter the number of diagnostic blocks]

    lbnsiz :=83236      [enter the number of logical blocks]

    rbnsiz :=200        [enter the number of replacement blocks]

    surpun :=6          [enter the number of surfaces per unit]

    cylpun :=820        [enter the number of cylinders per unit]

    wrtprc :=820        [enter the write precompensation cylinder]

    rctsiz :=4          [enter the size of the revectoring control
                         table (RCT)]

    rctnbr :=8          [enter the number of copies of the RCT]

    secitl :=1          [enter the sector interleave]

    stsskw :=2          [enter the surface to surface skew]

    ctcskw :=9          [enter the cylinder to cylinder skew]

    mediai :=627327008  [enter the MSCP media ID]

*	Note this number is not dependant on disk geometry, but is the 
*	magic number for VMS to report on the type of disk.
*	627327008 = RD32, and 627327010 = RD33 (I think!)

At this point, the formatter exits the query mode.

The next output to the screen is:

     VSfmt_QUE_SerNbr (0-999999999)  [enter the serial number for
                                      the drive]
                                     [or enter a unique number
                                      for each unit]

     VSfmt_QUE_RUsure (DUAx 1/0) ?   [where x equals the unit number]
                                     [enter 1 for YES, 0 for NO]

The formatter is now running, and the output should look like:

     VSfmt_STS_RdMbb.............OK  [manufacturer's bad block located]

     VSfmt_STS_FMTing............OK  [disk formatted OK]

     VSfmt_STS_ChkPss............OK  [check pass completed OK]

     VSfmt_STS_BBRvec := x           [number of bad blocks revectored]

     VSfmt_RES_Succ                  [disk is successfully formatted]

     >>>

At this point, the disk has been succesfully formatted, and the
console command prompt is displayed.



Unknown (to me) author, but I somehow got hold of it through this list.

Gunnar

--
Gunnar Helliesen   | Bergen IT Consult AS  | NetBSD/VAX on a uVAX II
Systems Consultant | Bergen, Norway        | '86 Jaguar Sovereign 4.2
gunnar@bitcon.no   | http://www.bitcon.no/ | '73 Mercedes 280 (240D)