Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 18:06:54 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Arun Sharma <arun.sharma@intel.com>
Cc:        freebsd-ia64@FreeBSD.ORG
Subject:   Re: FreeBSD ia64 install problems WAS: install on Dell Precision Work Station 730
Message-ID:  <20030215020654.GA1779@athlon.pn.xcllnt.net>
In-Reply-To: <ulm0i1gfu.fsf@unix-os.sc.intel.com>
References:  <03781128C7B74B4DBC27C55859C9D7380B9DDB5D@es06snlnt.sandia.gov> <20030210203522.GA543@athlon.pn.xcllnt.net> <ur8ab1u5l.fsf@unix-os.sc.intel.com> <20030214024721.GB1573@athlon.pn.xcllnt.net> <ulm0i1gfu.fsf@unix-os.sc.intel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 14, 2003 at 05:27:33PM -0800, Arun Sharma wrote:
> Marcel Moolenaar <marcel@xcllnt.net> 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.

You're right. I got the name wrong.

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

Then parted is broken. A low-level tool should give low-level
access. It also makes certain assumptions that causes it to
enforce that the GPT managed space is always an even number of
sectors.

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

Correct. The installer knows how to use GPT, it just doesn't know
how to make one. The issue here is that sysinstall expects a two
leveled division. First the disk partitioning (slicing) and then
the disklabel partitioning. Under GPT we don't use disklabels
anymore by default. The UUID I mentioned has been reserved for
GPT based partitioning with disklabels.

> Normally MBR contains a fake EFI
> partition.

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

Odd. Is the disklabel in the FreeBSD partition valid?

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

No. Endianness is always little-endian for GPT. You did it right.

> I'd like to see an octal dump of a working GPT, if possible.

0000000      0000    0000    0000    0000    0000    0000    0000    0000
*
0000660      0000    0000    0000    0000    0000    0000    0000    0100
0000700      0000    ffee    ffff    0001    0000    5cdb    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    0000    0001    005c    0000
0001020      9d0e    1128    0000    0000    0001    0000    0000    0000
0001040      5cdb    0224    0000    0000    0022    0000    0000    0000
0001060      5cba    0224    0000    0000    8007    8f43    23a3    11d7
0001100      7c92    0300    c547    f3d7    0002    0000    0000    0000
0001120      0080    0000    0080    0000    dba4    33dd    0000    0000
0001140      0000    0000    0000    0000    0000    0000    0000    0000
*
0002000      7328    c12a    f81f    11d2    4bba    a000    3ec9    3bc9
0002020      8047    8f43    23a3    11d7    7c92    0300    c547    f3d7
0002040      0022    0000    0000    0000    0021    0004    0000    0000
0002060      0000    0000    0000    0000    0000    0000    0000    0000
*
0002200      7cb6    516e    6ecf    11d6    f88f    0200    092d    2b71
0002220      8058    8f43    23a3    11d7    7c92    0300    c547    f3d7
0002240      0022    0004    0000    0000    5cba    01e4    0000    0000
0002260      0000    0000    0000    0000    0000    0000    0000    0000
*
0002400      7cb5    516e    6ecf    11d6    f88f    0200    092d    2b71
0002420      2d80    2ac0    1dd2    1000    14bd    0300    c547    f3d7
0002440      5cbb    01e4    0000    0000    5cba    0224    0000    0000
0002460      0000    0000    0000    0000    0053    0057    0041    0050
0002500      0000    0000    0000    0000    0000    0000    0000    0000
*
0002620      807a    8f43    23a3    11d7    7c92    0300    c547    f3d7
0002640      0000    0000    0000    0000    0000    0000    0000    0000
*

At 2200 and 2400 are FreeBSD partitions. The first is an UFS partition,
the second is a swap partition. Yours should be a disklabel partition.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030215020654.GA1779>