From owner-freebsd-geom@FreeBSD.ORG Thu Jul 29 00:45:10 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 037D01065679 for ; Thu, 29 Jul 2010 00:45:10 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id AC20E8FC1C for ; Thu, 29 Jul 2010 00:45:09 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OeH0d-0001eE-Ur for freebsd-geom@freebsd.org; Thu, 29 Jul 2010 02:30:04 +0200 Received: from 81.Red-88-26-211.staticIP.rima-tde.net ([88.26.211.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 02:30:03 +0200 Received: from lists-freebsd by 81.Red-88-26-211.staticIP.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 02:30:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Joan Picanyol i Puig Date: Thu, 29 Jul 2010 00:24:57 +0000 (UTC) Lines: 38 Message-ID: References: <20100727171922.GC4458@grummit.biaix.org> <4C4F289A.8070202@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 88.26.211.81 (Opera/9.80 (Windows NT 5.1; U; en) Presto/2.6.30 Version/10.60) Subject: Re: unlikely secondary GPT LBA X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 00:45:10 -0000 Andrey V. Elsukov yandex.ru> writes: > > On 27.07.2010 21:19, Joan Picanyol i Puig wrote: > > # add boot partition, aligning it's end to 1MB boundary > > gpart add -b 64 -s 1984 -t freebsd-boot -l boot /dev/mirror/system > > Do your system successfully boots from this partition? Well, I'm currently unable to answer this question. Both drives are behind the same twa controller (3Ware 9650) and I've been unable to change the boot disc from the BIOS (over serial). Not surprisingly, the currently installed by default boot0 does not know how to pass control to a loader in a GPT partition. > > I must be misunderstanding something, because I see this as gpart > > deciding that my secondary GPT header is at LBA FD3F1A1D00000000 which > > way past the end of my disk. > > It's in little-endian bytes order. I think it is 0x1D1A3FFD on your system. Duh, of course. This matches with reality: charlie# diskinfo /dev/da1 | cut -f 4 488259584 So, what explains the messages? gpart probes the disk before gmirror (or at least it prints later on dmesg), but since the offset is in the header, it should not even know about the gmirror + glabel part. I still don't understand something... tks -- pica p.s.: sorry for the bounce, should be fixed now