From: "Thomas Schmitt" <scdbackup@gmx.net>
To: grub-devel@gnu.org
Cc: <schierlm@gmx.de>
Subject: Re: grub-mkrescue: Problem with MBR partition table at start of EFI partition
Date: Tue, 14 May 2019 08:04:01 +0200 [thread overview]
Message-ID: <281286794407496054@scdbackup.webframe.org> (raw)
In-Reply-To: <20190513210436.wdtmjtrertczuwf7@tomti.i.net-space.pl>
Hi,
Daniel Kiper wrote:
> may I ask you to write a summary of your findings,
A Macbook took offense from the MBR partition table entry in the EFI FAT
image which grub-mkrescue produces by help of mformat(1).
Vladimir stated that this partition table entry is not intentional and
that the information in block 0, which would be missing after using mformat
option -k, is probably not needed.
Vladimir's proposal to look into the EFI partitions of MS-Windows ISOs
led to the insight that their MBR partition table space is filled with
cleartext. I.e. not-zero is usual. Credibly looking partition table entry
starting at LBA 0 is not usual.
(Further we learned that Microsoft has its own protocol implemented in EFIs
by which they boot USB sticks with MBR partitioning and no partition of
type 0xEF.)
> what works and what does not
The only thing that was found to not work is a MBR partition entry 1 which
starts at LBA 0. Probably it needs to have non-zero block count and non-zero
type.
> how the issue should be fixed
Safest seems to be not to change the mformat run in grub-mkrescue but
rather to postprocess its result, e.g. before the run of mcopy which
populates the image.
Postprocessing would mean to zeroize the whole range of MBR partition
table entries. That's bytes 446 to 509 of the FAT image.
> why this fix should land in the upcoming release.
It may well wait until the start of the next release cycle, although i deem
it easy to test and of low risk. Most Linux distros have zeros where i
propose to put them. They make their EFI images by mkfs.fat(8).
Have a nice day :)
Thomas
next prev parent reply other threads:[~2019-05-14 6:05 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-21 13:43 grub-mkrescue: Problem with MBR partition table at start of EFI partition Thomas Schmitt
2019-04-21 17:30 ` Vladimir 'phcoder' Serbinenko
2019-04-21 19:29 ` Thomas Schmitt
2019-04-24 20:32 ` Daniel Kiper
2019-04-25 6:00 ` pelzflorian (Florian Pelz)
2019-04-25 8:18 ` Thomas Schmitt
2019-04-25 9:36 ` pelzflorian (Florian Pelz)
2019-04-30 23:42 ` Vladimir 'phcoder' Serbinenko
2019-05-01 7:33 ` Thomas Schmitt
2019-05-09 20:21 ` Chris Murphy
2019-05-09 21:21 ` Thomas Schmitt
2019-05-10 6:21 ` Thomas Schmitt
2019-05-10 7:09 ` Thomas Schmitt
2019-05-10 12:12 ` pelzflorian (Florian Pelz)
2019-05-10 13:46 ` Thomas Schmitt
2019-05-10 16:12 ` pelzflorian (Florian Pelz)
2019-05-10 16:27 ` Thomas Schmitt
2019-05-11 10:51 ` pelzflorian (Florian Pelz)
2019-05-11 12:05 ` Thomas Schmitt
2019-05-11 14:20 ` pelzflorian (Florian Pelz)
2019-05-11 17:31 ` Thomas Schmitt
2019-05-11 19:13 ` pelzflorian (Florian Pelz)
2019-05-11 20:39 ` Thomas Schmitt
2019-05-13 21:04 ` Daniel Kiper
2019-05-13 21:55 ` Thomas Schmitt
2019-05-14 6:04 ` Thomas Schmitt [this message]
2019-05-15 9:45 ` Daniel Kiper
2019-05-15 10:57 ` Thomas Schmitt
2019-05-16 10:29 ` Daniel Kiper
2019-05-16 12:18 ` Thomas Schmitt
2019-05-20 12:35 ` Daniel Kiper
2019-05-20 14:37 ` Thomas Schmitt
2019-06-15 0:15 ` Chris Murphy
2019-06-15 6:01 ` pelzflorian (Florian Pelz)
2019-05-09 19:51 ` Chris Murphy
2019-05-09 21:06 ` Thomas Schmitt
-- strict thread matches above, loose matches on Subject: below --
2019-05-11 18:15 Michael Schierl
2019-05-11 19:42 ` Thomas Schmitt
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=281286794407496054@scdbackup.webframe.org \
--to=scdbackup@gmx.net \
--cc=grub-devel@gnu.org \
--cc=schierlm@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.