[Natty] [BTRFS] grub 2 won't install if /boot is BTRFS

Bug #781010 reported by Swâmi Petaramesh
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: grub2

After converting a whole system from ext3 to BTRFS, trying to reinstall grub2 with a BTRFS /boot results in :

root@tethys:/# grub-install /dev/sda
/usr/sbin/grub-setup: warn: Your core.img is unusually large. It won't fit in the embedding area..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.

Only solution found so far : Convert /boot back to ext2, and proceed with the rest of the system on BTRFS, except for /boot.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub-pc 1.99~rc1-13ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
CheckboxSubmission: 1ea6109db29b53f721a523a77b7f3abf
CheckboxSystem: d00f84de8a555815fa1c4660280da308
Date: Wed May 11 11:40:05 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANGUAGE=fr_FR:en
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: Upgraded to natty on 2011-04-03 (38 days ago)

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

I found out a fix / workaround, so I don't know if this still is a bug or not. grub2 will actually install with a BTRFS /boot if the disk partition table is converted from MSDOS to GPT, AND a 8 MB bios_grub type EF02 partition is created.

Then grub2 will install.

I've noticed that, when booting from a BTRFS /boot, grub2 will shortly display a message stating « Sparse file not allowed », but then the system goes on booting without any other noticeable problem. (my /boot being "compress=zlib" mounted).

Revision history for this message
Philip Muškovac (yofel) wrote :

This should be a dup of bug 774217

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.