btrfs, core.img too large

Bug #774217 reported by Markus Ehrnsperger on 2011-04-30
82
This bug affects 16 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: grub2

Hi,

grub-install /dev/sda
gives:
/usr/sbin/grub-setup: Warnung: Your core.img is unusually large. It won't fit in the embedding area.
/usr/sbin/grub-setup: Fehler: Einbettung ist nicht möglich, jedoch erforderlich, weil auf meheren Platten installiert werden soll.
core.img is 31837 bytes. Modules are: biosdisk btrfs part_msdos search_fs_uuid
It should be possible to decrease the size of core.img to fit in the embedding area.

- Markus

Colin Watson (cjwatson) on 2011-05-01
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Colin Watson (cjwatson) wrote :

I've added a note about this to the release notes:

 * If btrfs is used for `/boot`, then the gap between the start of the disk and the first partition must be more than the traditional 63 sectors. A good modern default is 1 MiB. (Bug:774217)

Using a GPT partition table (instead of MSDOS) with a bios_grub partition of a couple megabytes is a workaround for this.

Philip Muškovac (yofel) wrote :

I simply made the partition start at the 2nd cylinder in fdisk in the dos table, which gives grub 8MiB of space before the start of the partition and works too.

Workarounds suggested are valid temporary options, however this bug is critical to be resolved if btrfs is to be widely adopted for conversion of existing root filesystems that have been updated from previous versions of ubuntu. The conversion itself is quite smooth and painless, however the boot loader should not require the partition to be moved (if technically feasible)

filip (bandit-s-fw) wrote :

a possible duplicate of this bug is this:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/879109
I'm not sure enough to add it as duplicate maybe someone else can add it if he/she is sure.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers