Ventoy icon indicating copy to clipboard operation
Ventoy copied to clipboard

[issue]: Questionable GPT 1st partition flags, which aren't documented for both MBR and GPT

Open drws opened this issue 1 year ago • 0 comments

Official FAQ

  • [X] I have checked the official FAQ.

Ventoy Version

1.0.99

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

Both

Partition Style

GPT

Disk Capacity

any

Disk Manufacturer

No response

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

MBR and GPT both contain some special partition bits/flags in the partition table. Ventoy marks the first partition as bootable in MBR systems, which is probably for compatibility reasons if I'm not mistaken?

GPT offers 3 common partition attributes: platform-required, EFI-ignore and BIOS-bootable. When a Ventoy drive is created in the GPT format, Ventoy doesn't set the BIOS-bootable GPT flag for the first partition, which is an equivalen of bootable/active flag in MBR (which gets set). Is this difference deliberate?

The first partition could possibly also benefit from the EFI-ignore flag, which makes UEFI not read the partition contents. This could possibly speed up boot in some systems and be an additional reason for UEFI to not bother with the first partition.

In any case none of this is documented in Ventoy docs, so this is another issue here. Please update MBR any GPT layout documentation with relevant partition flag explanations and reasoning behind.

drws avatar Jul 17 '24 18:07 drws