btrfs, core.img too large

Bug #774217 reported by Markus Ehrnsperger
82
This bug affects 16 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Triaged
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)
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
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)

Revision history for this message
Swâmi Petaramesh (swami-petaramesh) wrote :

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

Revision history for this message
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.

Revision history for this message
Anshuman Aggarwal (anshuman-aggarwal) wrote :

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)

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.