From owner-freebsd-hackers@FreeBSD.ORG Tue May 22 07:57:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ECF2316A41F for ; Tue, 22 May 2007 07:57:53 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7B98913C468 for ; Tue, 22 May 2007 07:57:53 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HqPFe-0000xW-Mq for freebsd-hackers@freebsd.org; Tue, 22 May 2007 09:57:50 +0200 Received: from 78-0-82-27.adsl.net.t-com.hr ([78.0.82.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 May 2007 09:57:50 +0200 Received: from ivoras by 78-0-82-27.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 May 2007 09:57:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Tue, 22 May 2007 09:57:34 +0200 Lines: 70 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD0F433E148B0D5BEABDA97F3" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-82-27.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) X-Enigmail-Version: 0.94.3.0 Sender: news Subject: GPT boot loader? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 07:57:54 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD0F433E148B0D5BEABDA97F3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! I've had the opportunity to talk to Adam Martin, Marcel Moolenaar and Peter Wemm about making GPT bootable, but not all of them at the same time, so I'd like this thread to be the meeting point on the subject. (Adam and Peter have offered to modify the boot loader chain, but differently.) Summary: The idea is to replace bsdlabels with GPT. The problem is that GPT is intended to be used with EFI and not to be bootable by regular BIOS machines. For FreeBSD, there are two distinct cases: 1. the machine is GPT-only, there are no other MSDOS and bsdlabel partiti= ons 2. the machine is dual-boot or has some other need to retain MSDOS partitions. The second case is more convoluted as it means the MBR will hold a regular MSDOS partition table, and one of those partitions will hold a GPT - which is trivially done with GEOM but completely non-standard. The problems: On EFI based machines this firmware deals with partition issues so there's no problem, but BIOS machines will probably need some tweaking, up to the point of using more-or-less nonstandard GPT format. GPT details are available here: http://technet2.microsoft.com/windowsserver/en/library/bdeda920-1f08-4683= -9ffb-7b4b50df0b5a1033.mspx?mfr=3Dtrue and some useful tips are here: http://developer.apple.com/technotes/tn2006/tn2166.html Some of the breaking points are small "details" such as the requirement that the protective MBR be marked non-bootable, that there's no "bootable" flag among the official flags, and that the fields in the GPT are supposed to be disk-absolute (which is not a problem on FreeBSD but may be on other systems). Full support for GPT will require modifying boot0..boot2 but also the loader executable (since it parses UFS). I'd like to hear more from Adam and Peter (and others!) about their ideas= =2E.. --------------enigD0F433E148B0D5BEABDA97F3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGUqJuldnAQVacBcgRAoJUAKDGSJsJ3oBCicCZijzVuxE7dMb/PQCdEPUV zWzA4TpmB07OSiDnKHWNnpM= =3WJR -----END PGP SIGNATURE----- --------------enigD0F433E148B0D5BEABDA97F3--