Date: Sat, 13 Jun 2009 11:01:41 +0200 From: Ruben de Groot <fbsd-sparc64@bzerk.org> To: Marcel Moolenaar <xcllnt@mac.com> Cc: sparc64@freebsd.org Subject: Re: problem with sunlabel/gpart Message-ID: <20090613090141.GB54653@ei.bzerk.org> In-Reply-To: <9B4562A3-8F2C-4FC0-99E4-17A48FDB1106@mac.com> References: <20090612110250.GA50214@ei.bzerk.org> <9B4562A3-8F2C-4FC0-99E4-17A48FDB1106@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 12, 2009 at 09:27:03AM -0700, Marcel Moolenaar typed:
>
> On Jun 12, 2009, at 4:02 AM, Ruben de Groot wrote:
>
> >
> >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
>
> 48338640 sectors gives you 24GB. Not 150GB.
>
> >morninglightmountain# gpart show ad1
> >=> 0 48338640 ad1 VTOC8 (149G)
> > 0 48338640 - free - (23G)
>
> Can you recreate the VTOC8 label with gpart like so:
> # gpart destroy ad1
> # gpart create -s vtoc8 ad1
>
> Can you post the output of "gpart show ad1"?
That worked! Thanks.
morninglightmountain# gpart destroy ad1
ad1 destroyed
morninglightmountain# gpart create -s vtoc8 ad1
ad1 created
morninglightmountain# gpart show ad1
=> 0 312445125 ad1 VTOC8 (149G)
0 312445125 - free - (149G)
> >Off course, I could just use sysinstall again to partition the second
> >disk, but I'm curious as to why this is happening.
>
>
> I don't trust sysinstall...
But up until now, it was the only way I knew to create partitions above 24GB
on these disks.
All is well now. Thanks again.
Ruben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090613090141.GB54653>
