Subject: Disklabel Problem
To: None <port-sparc@NetBSD.org>
From: Gary Parker <G.J.Parker@lboro.ac.uk>
List: port-sparc
Date: 10/28/2004 13:50:12
Afternoon all,
	I've got a bit of a problem trying to set up a new disk I'm adding
to my existing 2.0RC4 set up.

Running 'disklabel -I -I sd1' quite happily lets me create a C slice for the
entire disk and then, say, an A slice that also covers the entire the disk.
I can then write those changes to disk, newfs and mount it. However, if I
try to make more than one 4.2BSD slice on the disk it errors when I try to
write the changes within disklabel.

Example:

partition> P
3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   4194304         0     4.2BSD   2048 16384 27440  # (Cyl.      0 -
1978*)
 b:    327680   4194304       swap                     # (Cyl.   1978*-
2133*)
 c:  17850000         0     unused      0     0        # (Cyl.      0 -
8419*)
partition> W
Label disk [n]? y
disklabel: warning, partition b: offset % cylinder-size != 0
Label not written

For comparison, here's the output for sd0, an identical disk which was set
up by the installer:

partition> P
8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    204800         0     4.2BSD   1024  8192 25600  # (Cyl.      0 -
99)
 b:    327680    204800       swap                     # (Cyl.    100 -
259)
 c:  17844224         0     unused      0     0        # (Cyl.      0 -
8712)
 g:   4194304    532480     4.2BSD   1024  8192 46608  # (Cyl.    260 -
2307)

Can someone explain where I'm going wrong and why there isn't a copy of
good, old fashioned, fdisk available for the SPARC port?

--
/-Gary Parker-----------------------f-Loughborough University-\
n IT Bandwidth Management Specialist - http://www.bmas.ja.net |
| Computing Services      - http://www.lboro.ac.uk/computing/ o
\r----------------------------------------------------------d-/