Date: Fri, 12 Jun 2009 13:02:50 +0200 From: Ruben de Groot <fbsd-sparc64@bzerk.org> To: sparc64@freebsd.org Subject: problem with sunlabel/gpart Message-ID: <20090612110250.GA50214@ei.bzerk.org>
next in thread | raw e-mail | index | archive | help
I wonder if somebody can explain this:
In a netra X1 I have 2 identical 150GB disks. One was partitioned by
sysinstall like this:
# sunlabel ad0
# /dev/ad0:
text: FreeBSD149G cyl 47955 alt 2 hd 16 sec 63
bytes/sector: 512
sectors/cylinder: 1008
sectors/unit: 48338640
8 partitions:
#
# Size is in sectors.
# Offset is in cylinders.
# size offset
# ---------- ----------
a: 1049328 0
b: 2097648 1041
c: 48338640 0
d: 4195296 3122
e: 1049328 7284
f: 33555312 8325
g: 104858208 41614
h: 165774672 145640
Notice that the c partition is smaller than the entire disk. Trying
to copy this partition scheme to ad1 using sunlabel fails with:
sunlabel: partition g extends past end of disk
gpart shows:
morninglightmountain# gpart show ad0
=> 0 48338640 ad0 VTOC8 (149G)
0 1049328 1 !0 (512M)
1049328 2097648 2 !0 (1.0G)
3146976 4195296 4 !0 (2.0G)
7342272 1049328 5 !0 (512M)
8391600 33555312 6 !0 (16G)
41946912 104858208 7 !0 (50G)
146805120 165774672 8 !0 (79G)
morninglightmountain# gpart show ad1
=> 0 48338640 ad1 VTOC8 (149G)
0 48338640 - free - (23G)
Off course, I could just use sysinstall again to partition the second
disk, but I'm curious as to why this is happening.
regards,
Ruben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090612110250.GA50214>
