problem with sunlabel/gpart
Ruben de Groot
fbsd-sparc64 at bzerk.org
Sat Jun 13 09:01:47 UTC 2009
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
More information about the freebsd-sparc64
mailing list