From owner-freebsd-sparc64@FreeBSD.ORG Sat Jun 13 09:01:47 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86588106564A for ; Sat, 13 Jun 2009 09:01:47 +0000 (UTC) (envelope-from fbsd-sparc64@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id EF20A8FC14 for ; Sat, 13 Jun 2009 09:01:46 +0000 (UTC) (envelope-from fbsd-sparc64@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id n5D91grw062768; Sat, 13 Jun 2009 11:01:42 +0200 (CEST) (envelope-from fbsd-sparc64@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id n5D91fIm062767; Sat, 13 Jun 2009 11:01:41 +0200 (CEST) (envelope-from fbsd-sparc64@bzerk.org) Date: Sat, 13 Jun 2009 11:01:41 +0200 From: Ruben de Groot To: Marcel Moolenaar Message-ID: <20090613090141.GB54653@ei.bzerk.org> References: <20090612110250.GA50214@ei.bzerk.org> <9B4562A3-8F2C-4FC0-99E4-17A48FDB1106@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9B4562A3-8F2C-4FC0-99E4-17A48FDB1106@mac.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Sat, 13 Jun 2009 11:01:45 +0200 (CEST) Cc: sparc64@freebsd.org Subject: Re: problem with sunlabel/gpart X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 09:01:47 -0000 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