a1ive / grub

Fork of GRUB 2 to add various features.
GNU General Public License v3.0
138 stars 38 forks source link

warning: your core.img is unusually large. It won't fit in the embedding area. #74

Closed niemtin007 closed 4 years ago

niemtin007 commented 4 years ago

Hello Alive,

Thank you for your hard work in developing the Grub2 bootloader.

When I tried to install the last built of Grub2 for USB/HDD in legacy BIOS mode I met a warning & an error:

warning: your core.img is unusually large. It won't fit in the embedding area. error: embedding is not possible, but this is required for cross-disk install

image

it seems that the legacy BIOS mode has reached its limited capacity and cannot add more new features!?

Could you help me to resolve this problem?

Thanks,

steve6375 commented 4 years ago

Which version works?

a1ive commented 4 years ago

1

steve6375 commented 4 years ago

Does it depend on where the partition starts? e.g. Sector 63 or sector 2048, etc? Run RMPrepUSB - Drive Info - 0 to see partition details of the target drive.

niemtin007 commented 4 years ago

Which version works?

Older versions of a few months ago still work fine. I don't remember which one.

Does it depend on where the partition starts? e.g. Sector 63 or sector 2048, etc? Run RMPrepUSB - Drive Info - 0 to see partition details of the target drive.

@steve6375 Thank you for your answer. When I change the "stating sector" from 63 to 2048 everything works fine now.

Can you explain to me why?

steve6375 commented 4 years ago

I think some grub2 boot code is placed between MBR (LBA0) and start of first partition. For compatibility, the code should fit in sectors 0-62 because typical older MBR disks have first partition at 63. I guess that the grub2 boot code has 'grown' somehow?

a1ive commented 4 years ago

I think some grub2 boot code is placed between MBR (LBA0) and start of first partition. For compatibility, the code should fit in sectors 0-62 because typical older MBR disks have first partition at 63. I guess that the grub2 boot code has 'grown' somehow?

yes.