Skip to contentSkip to conversation

Embedding area too small... (GRUB2 on software RAID1)

DISCUSSION Lapohos Tibor 2 participants 2 messages Jan 6, 2010 – Jan 20, 2010

lore
Share & tools
lore
#0 lore raw

Please find a correction to the description of the problem.

Quoted 3 lines · Lapohos Tibor

... and I got a warning and an error message:
"Embedding area is too small for
core.img." and ...

It rather reads: "Your embedding area is unusually small. core.img won't fit in it."

Thanks again,
Tibor

#1 lore raw
Quoted 5 lines · Lapohos Tibor
Quoted 2 lines

... and I got a warning and an error message: "Embedding area is too small for core.img." and ...

It rather reads: "Your embedding area is unusually small. core.img won't fit in it."

I found the error message accurate, but ultimately unhelpful when I got it. I had to read the grub-setup source code to understand what the heck this really means.

The "embedding area" is the space between your MBR and your first partition. Loading up grub-mkimage with raid support or other goodies will make core.img too big to fit in this space (on a typical disk partitioned with just about any tool). So I rebuilt my disks with the first partition offset a few MiBs from the beginning of the disk.

example:
parted -s /dev/sda mkpart primary 5m 50%
parted -s /dev/sda mkpart primary 50% 100%

Another solution is to label your disks with GPT (with a hybrid MBR). Your embedding space should then be a real GPT partition with a GRUB type.
http://grub.enbug.org/BIOS_Boot_Partition