You are not logged in.

#1 2012-06-30 07:33:11

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

[Solved] grub-install failure (grub2)

Hello

I was wondering if anybody else is experiencing the following error for the versions of grub2 _after_ grub2-bios-1:2.00beta4-1 (i.e. grub2-bios-1:2.00beta6 and grub2-bios-1:2.00rc1-1)

[root@pc ~]# grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --recheck /dev/sda
/usr/sbin/grub-bios-setup: warning: Attempting to install GRUB to a disk with multiple partition labels.  This is not supported yet..
/usr/sbin/grub-bios-setup: error: filesystem `btrfs' doesn't support blocklists.

I am using GPT and btrfs with BIOS boot partition.

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            6143   2.0 MiB     EF02  BIOS boot partition
   2            6144       976773134   465.8 GiB   8300  Linux filesystem

With grub2-bios-1:2.00beta4-1 and before I had no problems with installing grub.
Any hints, suggestions, workarounds are very appreciated. Is it sort of ok to use --force?

thanks

Last edited by aya (2012-08-09 15:37:54)

Offline

#2 2012-06-30 14:53:18

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [Solved] grub-install failure (grub2)

Perhaps the procedure used in making my system boot to partition in grub2 will be of use in solving your difficulty.

It would require adaptation but does perform the boot from partition for my raid0 arrays.

You will find my post in INSTALLATION and it references a blog regarding booting raid from a grub2 partition.

Realizing that your system is not raid related, the steps to address raid can be skipped and appropriate entries made.

I have two paired raid0 arrays and two three device raid0 arrays in operation with partitioned grub2 boot.

The procedure utilizes chroot and requires updating mkinitcpio.

It may solve your problem when applied to btrfs setups.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2012-06-30 23:43:08

chungy
Member
Registered: 2009-09-07
Posts: 32

Re: [Solved] grub-install failure (grub2)

do you have a hybrid MBR set up perhaps?

(I'm not familiar with GPT disks, but it looks like it should be installing to the first partition there, not attempting to use the btrfs data locations)

Offline

#4 2012-07-01 02:29:40

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [Solved] grub-install failure (grub2)

Hello.
No hybrid MBR really. And it _was_ working before.. Very strange.

[root@pc ~]# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 08D27F2C-6ACE-4DAE-A0E3-5CD8C5DAB53C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            6143   2.0 MiB     EF02  BIOS boot partition
   2            6144       976773134   465.8 GiB   8300  Linux filesystem

Offline

#5 2012-08-09 15:37:33

aya
Member
From: Japan
Registered: 2011-06-12
Posts: 51

Re: [Solved] grub-install failure (grub2)

The problem was with the remnants of btrfs on /dev/sda left over from the time when I used btrfs with syslinux on unpartitioned device.
btrfs fi show --all-devices showed me that btrfs is present on both /dev/sda and /dev/sda2 which was obviously wrong (though worked on and before grub2-bios-1:2.00beta4-1). I zeroed out the beginning of /dev/sda and this got rid of btrfs on /dev/sda (had to re-partition the disk). After this I could install grub without any problems.
Solved.

Offline

Board footer

Powered by FluxBB