Unable to install grub to MBR with LVM root device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub-pc
The system (amd64, Ubuntu 8.04.2) has one hard disk with 3 primary partitons:
/dev/sda1 ext3 /boot
/dev/sda2 lvm
/dev/sda3 ntfs
The LVM has 3 volumes:
root system -wi-ao 15.00G
swap system -wi-ao 1.00G
tmp system -wi-ao 2.00G
/dev/system/root ext3 /
/dev/system/tmp ext3 /tmp
grub legacy says:
root@quidde:~# grub-install '(hd0)'
/dev/mapper/
grub-pc says:
root@quidde:~# grub-install '(hd0)'
grub-setup: error: Can't embed the core image, but this is required when the root device is on a RAID array or LVM volume.
lilo was installed first from within the Ubuntu installer.
How do I install grub to the MBR?
The exact same disk layout works without any issue on i386 Ubuntu 8.04.2.
Is there any difference in the grub packages for amd64 and i386?
Do you use maybe GPT instead of msdos partition table? grub.enbug. org/BIOS_ Boot_Partition
or did you remove the dos compatibility flag with fdisk or the Maximize button in cfdisk?
fdisk -lu must show that the first partition begins at sector 63 and NOT sector 1
In case you use GPT you must create a bios_grub partition.
See the GRUB wiki: http://