Skip to contentSkip to conversation

grub2 LVM support on boot

DISCUSSION Javier Rodríguez Sánchez 1 participant 2 messages Apr 10, 2007

lore
Share & tools
lore
#0 lore raw

Hello for everybody,

I have a problem with LVM support on /boot partition. This is my partition scheme:

I have 4 primary partitions in the device node sda (sda1,sda2,sda3,sda4), I have a Intel C2D macbook pro, sda1 is for EFI, sda2 for MacOSX, sda3 for Linux and sda4 for Windows. I cannot create more primary partitions and I need to use LVM2.

I use LVM2 on sda3 partition:

PV: /dev/sda3
VG: Gentoo
LV: Gentoo-boot /boot
Gentoo-root /
Gentoo-home /home
Gentoo-swap swap

#1 lore raw

Hello for everybody,

Quoted 9 lines

I have a problem with LVM support on /boot partition. This is my partition scheme:

I have 4 primary partitions in the device node sda (sda1,sda2,sda3,sda4), I have a Intel C2D macbook pro, sda1 is for EFI, sda2 for MacOSX, sda3 for Linux and sda4 for Windows. I cannot create more primary partitions and I need to use LVM2.

Quoted 8 lines

I use LVM2 on sda3 partition:

PV: /dev/sda3
VG: Gentoo
LV: Gentoo-boot /boot
Gentoo-root /
Gentoo-home /home
Gentoo-swap swap

I download grub2 from CVS and run ./configure, make and make install.

I create the core.img by this way:

# grub-mkimage -o /boot/grub/core.img pc lvm ext2 _chain

and after I run grub-setup:

# grub-setup -r ´(Gentoo-root)´ ´(hd0)´

I create grub.cfg with my config and reboot the system.
When the PC is booting I only get a black screen with the GRUB word and the computer doesn't boot.

my device.map only have this line:

(hd0) /dev/sda

Somebody knows how-to make working grub2 with LVM2 boot partition?

Thx

PD:Sorry for my english