LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   load the kernel from LVM /boot partition. (http://www.linuxquestions.org/questions/linux-desktop-74/load-the-kernel-from-lvm-boot-partition-913483/)

hen770 11-14-2011 10:54 AM

load the kernel from LVM /boot partition.
 
I have /boot and /root that I have copy to a new one lvm volume.
I am try to boot my system through it but can't do that, it seems that all I need is to know what syntax to use on Grub2.
I have an uninteresting with lvm support in it, and I am still able to boot the system with the old partitions.
I didn't created a new grub.cfg file yet, since I want to test it without do it yet.
I need to know what syntax I need to use when I am try to boot from an lvm volume (that contain both /boot and /root as one partition).
I have Grub2 and Arch Linux if that helps.
Thanks.

acid_kewpie 11-14-2011 03:36 PM

You can't boot from lvm. The grub bootloader is very simplistic and has to be crammed into a very small amount of space, so can not contain enough code to read an LVM file system.

jschiwal 11-15-2011 01:16 AM

The default installation for Fedora installs a boot partition, and an lvm volume. The kernel needs to be loaded to assemble the LVM volume, and create the devices for the logical volumes. So /boot is kept separate. The same is true for most Raid volumes. The exception being mirrored raid, where grub can read from one of the disks. Even this isn't recommended.

hen770 11-15-2011 02:30 AM

So what is so special about Grub2 and lvm, as i have understnd it can boot through an lvm volume.
Read about it here:
https://wiki.archlinux.org/index.php/Grub2#LVM

acid_kewpie 11-15-2011 02:42 AM

dammit, i hate things changing!! I still wouldn't though. it might look ugly or something, but the simplicity you get from a dedicated /boot is significant.


All times are GMT -5. The time now is 11:24 PM.