Subject: Re: Quantum ProDrive ELS
To: Nathan Gelbard <gelbard@engr.orst.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-hp300
Date: 04/28/1997 18:09:39
On Mon, 28 Apr 1997 17:27:49 -0700 
 Nathan Gelbard <gelbard@ENGR.ORST.EDU> wrote:

 > 1) Can my hp read SCSI-2, or do I need a seperate controller?

...yes:

NetBSD 1.2D (BASALT) #49: Sun Apr 27 10:46:19 PDT 1997
    thorpej@basalt:/work/netbsd/src/sys/arch/hp300/compile/BASALT
HP 9000/380 (25MHz MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches)
cpu: delay divisor 30, mmuid 2
 .
 .
 .
oscsi0 at dio0 scode 14 ipl 3: 32 bit dma, async, scsi id 7
sd0 at oscsi0 targ 0 lun 0: <SEAGATE, ST43400N, 1022> (SCSI-2)
sd0: 2737 cylinders, 21 heads, 5688447 blocks, 512 bytes/block
sd1 at oscsi0 targ 1 lun 0: <COMPAQ, M2694ES-512, 952B>
sd1: 1819 cylinders, 15 heads, 2051000 blocks, 512 bytes/block
sd2 at oscsi0 targ 2 lun 0: <HITACHI, DK516C, NO34> (SCSI-2)
sd2: 2179 cylinders, 15 heads, 2606400 blocks, 512 bytes/block
st0 at oscsi0 targ 3 lun 0: <ARCHIVE, VIPER 60   21116, -007>
sd3 at oscsi0 targ 4 lun 0: <TOSHIBA, CD-ROM XM-3301TA, 0272> (SCSI-2)
sd3: CD-ROM, drive empty
st1 at oscsi0 targ 5 lun 0: <ARCHIVE, Python 28849-XXX, 4.98> (SCSI-2)
 .
 .
 .

SCSI-2 is essentially a command-level superset of SCSI-1.  There are no
electrical differences.  The NetBSD/hp300 SCSI driver detects SCSI-2
capability, but doesn't use any of its features.  (The primary feature
of interest is disconnect/reselect.)

 > 2) Do I need a disktab entry to disklabel? If so, what is it/
 > where can I find it?

...no, you don't need a disktab entry.  You can use disklabel(8)
by itself.

 > After a few minutes of spite, it wrote the sd7958 label to it,
 > then I was able to edit it. Otherwise, disklabel wouldnt touch
 > it. I know the sd7958 label is not going to work.

...disklabel(8) is always capable of initializing a label.  You can
do:

	disklabel sd3 > sd3-label
	vi sd3-label
	[ make it look how you want ]
	disklabel -r -R sd3 sd3-label

...or you can do:

	disklabel -r -e sd3

This is all documented in the disklabel(8) manual page.

In any case, no damage done with the sd7958 label... just replace
the direct and computed geometry values with ones you get or
derive from the info printed at boot time, and then make the
partition map look how you want it to look.  (Remember, geometry
really has no meaning under SCSI...)

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939