21.12.2015 10:45, Thomas Schmitt пишет: > Hi, > > Andrei Borzenkov wrote: >> MBR is created with 512B sector size but when GRUB is booted >> from CD-ROM sector size is 2KiB. > > Ain't that a bug ? >
What exactly? > GPT is recognized with 512. El Torito is recognized with its > weird mix of 512 for size and 2048 for block addresses. > The reason why APM is recorded with size 2048 is originally > not CD compatibility but the wish to combine APM and GPT. > (Else, the first APM entry and the GPT header would collide.) > > Would it be possible that GRUB2 applies the feature of > self-identifying block size, in order to get MBR partitions > to the same level of support as GPT ? I do not see how it can be done. > (I never found traces of MBR block size other than 512. So one > could set 512 as soon as partition type "msdos" is detected. > I assume that "msdos" is recognized by the MBR magic number > at bytes 510, 511 anyway.) > Yes, that may be an option. Still, using GPT is known to work; and those implementations I am aware of ignore MBR if partition 0xee is present. So it still looks like adding dummy bootable partition to MBR is the least evil. I wonder how Mac will present it. _______________________________________________ Bug-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-grub
