Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I like to setup grub2 on a GPT softare raid 3 TB HDD.

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1050623   512.0 MiB   FD00  Linux RAID
   2         1050624      5860533134   2.7 TiB     FD00  Linux RAID

The first partition is boot, the second is LVM. After bootstrapping I installed grub2 which died with "missing BIOS boot". But I can't change partition 1 to BIOS boot because of the software raid, right?

How to solve this situation?

Info: Debian Wheezy x86_64

Error:

/usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!.
/usr/sbin/grub-setup: error: embedding is not possible, but this is required for cross-disk install.
share|improve this question

1 Answer 1

up vote 3 down vote accepted

Even with gpt you should still be able to install Grub on the drive (/dev/sda?) Try these commands:

# grub_bios-install --boot-directory=/boot --no-floppy --recheck --debug /dev/sda

# grub-mkconfig -o /boot/grub/grub.cfg

it should make you a working grub install. You will however probably need to tune some options in the grub config files to get grub the way you like it.

Edit: It seems on legacy bios machines you need something called a "bios boot partition" which may be as small as 30kb on the drive, this is required to store phase 2 of the grub boot process.

to Create this bios boot partition do the following:

A BIOS Boot partition can be created using any of several different disk utilities:

In GParted, create a partition (an unformatted one works fine), then right-click it and select Manage Flags. Check the bios_grub flag, click Close, and apply your changes.

In GNU Parted (parted), create a partition, then type set 1 bios_grub on, changing 1 to the number of the partition you want to mark as a BIOS Boot partition.

In GPT fdisk (gdisk), create a partition and give it a type code of EF02.

Source: http://en.wikipedia.org/wiki/BIOS_Boot_Partition_%28GPT%29

share|improve this answer
    
Same error as before: /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!. /usr/sbin/grub-setup: error: embedding is not possible, but this is required for cross-disk install. –  burnersk Jun 4 '12 at 18:44
    
Edit my post concerning the boot partition. –  Flash Jun 7 '12 at 12:16
    
These directions are for grub1. The question is for grub2. Any ideas? –  hopeseekr Jan 2 '14 at 23:37
    
grub-mkconfig is still current, as the time of writing so was grub_bios-install. noaways for grub2 its just grub-install the options remains the same, also the bios boot partition is probably still required for your setup. –  Flash Jan 8 '14 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.