From owner-freebsd-ia64 Fri Feb 14 17:27:39 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AFA137B401 for ; Fri, 14 Feb 2003 17:27:37 -0800 (PST) Received: from caduceus.sc.intel.com (fmr04.intel.com [143.183.121.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B10C43F3F for ; Fri, 14 Feb 2003 17:27:36 -0800 (PST) (envelope-from adsharma@unix-os.sc.intel.com) Received: from petasus.sc.intel.com (petasus.sc.intel.com [10.3.253.4]) by caduceus.sc.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.51 2002/09/23 20:43:23 dmccart Exp $) with ESMTP id h1F1Qa912300; Sat, 15 Feb 2003 01:26:36 GMT Received: from unix-os.sc.intel.com (unix-os.sc.intel.com [143.183.96.244]) by petasus.sc.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.28 2003/01/13 19:44:39 dmccart Exp $) with ESMTP id h1F1Qee29937; Sat, 15 Feb 2003 01:26:40 GMT Received: from unix-os.sc.intel.com.intel.com (adsharma-mobl3.sc.intel.com [143.183.130.51]) by unix-os.sc.intel.com (8.11.6/8.11.2) with ESMTP id h1F1RZr09026; Fri, 14 Feb 2003 17:27:35 -0800 To: Marcel Moolenaar Cc: freebsd-ia64@FreeBSD.ORG Subject: Re: FreeBSD ia64 install problems WAS: install on Dell Precision Work Station 730 References: <03781128C7B74B4DBC27C55859C9D7380B9DDB5D@es06snlnt.sandia.gov> <20030210203522.GA543@athlon.pn.xcllnt.net> <20030214024721.GB1573@athlon.pn.xcllnt.net> From: Arun Sharma Date: 14 Feb 2003 17:27:33 -0800 In-Reply-To: <20030214024721.GB1573@athlon.pn.xcllnt.net> Message-ID: Lines: 74 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Marcel Moolenaar writes: > > > > What's the recommended tool to set the GPT partition type ? > > That depends. If you're running Linux, use diskpart. If you only > have EFI, get Intel's EFI tool. When running FreeBSD, use gpt(8). Linux uses GNU parted or a distribution specific tool. GNU parted doesn't know about the FreeBSD GUID type nor does it allow entering the guid type manually. It maps filesystem types to GUID types (by design). After I hacked GNU parted to map "hp-ufs" filesystem type to FreeBSD GUID i.e. 516e7cb4-6ecf-11d6-8ff8-00022d09712b, I see: Minor Start End Filesystem Name Flags 1 0.017 203.938 fat32 boot 2 203.938 10447.875 fat32 < other partitions snipped> 1 -> EFI partition 2 -> FreeBSD partition (parted shows fat32, but the guid is correct) # od -x /dev/sda shows the following 0000000 0000 0000 0000 0000 0000 0000 0000 0000 * 0000700 0001 feee ffff 0001 0000 0b03 0224 0000 0000720 0000 0000 0000 0000 0000 0000 0000 0000 * 0000760 0000 0000 0000 0000 0000 0000 0000 aa55 0001000 4645 2049 4150 5452 0200 0001 005c 0000 0001020 793a 6b75 0000 0000 0001 0000 0000 0000 0001040 0b03 0224 0000 0000 0022 0000 0000 0000 0001060 0ae2 0224 0000 0000 9654 3892 b140 473c 0001100 ffbc b53a efc0 8220 0002 0000 0000 0000 0001120 0080 0000 0080 0000 3f55 f673 0000 0000 0001140 0000 0000 0000 0000 0000 0000 0000 0000 * 0002000 7328 c12a f81f 11d2 4bba a000 3ec9 3bc9 0002020 b13b 8578 1666 414a cb97 b159 d30a d2e0 0002040 0022 0000 0000 0000 5f81 0006 0000 0000 0002060 0000 0000 0000 0000 0000 ffff ffff ffff 0002100 ffff ffff ffff ffff ffff ffff ffff ffff * 0002200 7cb4 516e 6ecf 11d6 f88f 0200 092d 2b71 <-- FreeBSD GUID 0002220 8bac b89e 1624 40ad b29c 6052 1595 d45c 0002240 5f82 0006 0000 0000 7f00 0146 0000 0000 0002260 0000 0000 0000 0000 0000 ffff ffff ffff 0002300 ffff ffff ffff ffff ffff ffff ffff ffff When I installed FreeBSD over this partition, the instalation went ok, but when I reboot, EFI couldn't find fs0 any more. On further investigation, I found that the FreeBSD installer had written the partitioning info to MBR. Normally MBR contains a fake EFI partition. After the FreeBSD installation, Linux fdisk showed that /dev/sda1 (0xee) EFI GPT had been deleted and replaced by /dev/sda2 (0xa5) FreeBSD with the start and end corresponding to the GPT partition I'd created for FreeBSD. I went back and restored the MBR to it's original form, so that EFI could look into the GPT. Now when I try to boot FreeBSD, it can't find "ufs:da0s2a". So my question is, what do I need to do to the GPT to get FreeBSD recognize it properly ? Have I screwed up on the endianness of the GUID ? I'd like to see an octal dump of a working GPT, if possible. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message