problem with sunlabel/gpart

Marcel Moolenaar xcllnt at mac.com
Fri Jun 12 16:27:29 UTC 2009


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"?

> 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...

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the freebsd-sparc64 mailing list