Subject: Re: SCSI on QBUS - edlabel issue
To: J. Buck Caldwell <buck_c@polygon.com>
From: Ken Wellsch <kwellsch@link.link-systems.com>
List: port-vax
Date: 08/17/1998 14:31:18
| How in the hell do I put a label on this thing? It doesn't have a set
| number of sectors/track. It's a HP C2244 - info for it can be found at
| http://www1.hp.com/isgsupport/disk/c224x/c224xtech.html . I'm desperate.
| If anyone can help, you've earned a friend for life.
| 
| Notes: I'd like a 64K /, 64K swap,  64K /var, 64K /tmp, and the rest /usr.
| Also, if you can, a edlabel sequence for the entire drive as one a
| partition (for the other two drives, same type). Thanks!!

I come up with geometry as

	HP C2244
	5400rpm
	7 hds
	77 s/t
	1981 user cyl (2051 physical cyl)

They mention a drive capacity of 1,106,288 sec/drive
which I am guessing covers the hidden cylinders.  So
I took 1,106,288 / ( 7 * 2051) to compute sec/track
(and rounding down).

So presuming this is okay, what then is the size of
a cylinder stack?  7 * 77 = 539 sectors (or ~270Kb).

Since you likely want to stick with partitions aligned
on cylinder boundaries, I might take my desired partition
size (I'm guessing above you mean Mega-bytes not Kilo-bytes).

So 64Mb / 539 s/c is 65536Kb / 539 s/c which is  121.588 cyl
which we can round to 122 cyl for your root.  You use the same
for the others so why not use the same value?

I haven't used "edlabel" for a long time, but I'll guess like
the real NetBSD disklabel you'll need the # of sectors for
the partition, so

	122 * 539 = 65758 sectors

So what is left for /usr?  4 x 122 = 488, so 1981 - 488 is
1493 I think, or 1493 * 539 = 804727 sectors.

You'd best check all the math!

Anyway, I guess you really want explicit edlabel instructions
so I'll stop blathering on.

-- Ken