public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Karel Zak <kzak@redhat.com>, Craig <util-linux_contact@magister.com.au>
Cc: util-linux@vger.kernel.org
Subject: Re: ***Urgent***!  Fdisk: GPT support utterly breaks hybrid MBR; *must* have disable option! :(
Date: Sun, 24 Nov 2013 10:18:53 -0800	[thread overview]
Message-ID: <5292430D.6000709@zytor.com> (raw)
In-Reply-To: <20131011090442.GE14457@x2.net.home>

On 10/11/2013 02:04 AM, Karel Zak wrote:
> 
>  Yep. I don't want any "smart" solution there. All will be controlled
>  by users. 
>  
>  (Well, in the default mode for non-expert users with standard PMBR we will 
>   generate the MBR as expected by UEFI specification of course.)
> 

There is one other useful mode for non-expert users, which is the one in
which the current (hybrid) boot partition is manifest in the MBR (as
well as as the GPT of course.)  Changing the hybrid boot partition would
change the MBR to match.  From a UI perspective this could very easily
be done by setting or removing a "hybrid" flag on a partition.

One could potentially allow more than one hybrid partition, but when one
then accounts for PMBR partitions, there is no guarantee that one can
fit more than one unless the layout is suitable.

In the worst case, one can always fit one:

MBR:	1. Leading PMBR partition
	2. Hybrid boot partition
	3. Tailing PMBR partition

In the best case, one can fit 3:

MBR:	1. Hybrid partition 1
	2. Hybrid partition 2
	3. Hybrid partition 3
	4. Tailing PMBR partition

	-hpa

      parent reply	other threads:[~2013-11-24 18:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-09 11:23 ***Urgent***! Fdisk: GPT support utterly breaks hybrid MBR; *must* have disable option! :( Craig
2013-10-09 14:16 ` Karel Zak
2013-10-10  0:39   ` Craig
2013-10-10 11:10     ` Karel Zak
2013-10-11  3:45       ` Craig
2013-10-11  9:04         ` Karel Zak
2013-10-11 21:34           ` Craig
2013-11-24 18:18           ` H. Peter Anvin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5292430D.6000709@zytor.com \
    --to=hpa@zytor.com \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    --cc=util-linux_contact@magister.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox