Subject: Re: Partition Problems...
To: Robert Rusek <rusek@alpha.fdu.edu>
From: None <bolo@cs.wisc.edu>
List: port-pmax
Date: 12/05/1996 15:14:40
> I installed a Fujitsu 2266 hardrive.  I created a disktab entry as 
> follows:
> 
> fuj2266|FUJ2266|Fujitsu 2266 Winchester:\
>         :dt=SCSI:ty=winchester:ns#85:nt#15:nc#1658:\
>         :su#2107704:\
>         :pa#40960:oa#0:ba#8192:fa#1024:\
>         :pb#163840:ob#40961:bb#4096:fb#1024:tb=swap:\
>         :pc#2107704:oc#0:bc#8192:fc#1024:\
>         :pg#1902904:og#163841:bg#8192:fg#1024:
> 
> I then newfs the partitons:
>   newfs /dev/rz0a
>   newfs /dev/rz0b
>   newfs /dev/rz0g
> 
> Upon fsck of /dev/rz0g I get the following error:
> 
>      rz0g: overlaps open partiton (b)
> 
> How is this possible?  As far as I could tell none of the partions 
> overlap each other?  Do I have the physical attributes of the drive 
> set incorrectly?

The partition info is (pa,pb,pc) is the SIZE of the partition, not
the offset of the end of the partition.  Your b partition, runs from
40961 to 163840+40961.  This overlaps your g partition, which starts
at 163841.

Try these offset/sizes instead:

	:pa#40960:oa#0:
	:pb#163840:ob#40960:
	:pg#1902904:og#204800:

A technique one can use to sanity-check partition info is to verify
that the size of all non-overlapping partitions is the same
as the disk size ...

	40960+163840+1902904 == 2107704

And to verify starting locations of each non-overlapping partition,
add the offset and size of each partition to generate the starting
offset of the next.

	0 + 40960 == 40960
	40960 + 163840 == 204800
	204800 + 1902904 == 2107704

bolo