LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 11-14-2011, 11:54 AM   #1
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
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.
 
Old 11-14-2011, 04:36 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 11-15-2011, 02:16 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.
 
Old 11-15-2011, 03:30 AM   #4
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 7
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
 
Old 11-15-2011, 03:42 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
  


Reply

Tags
grub2, kernel, lvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I create lvm boot partition ram_rajavarapu Linux - Enterprise 6 11-02-2009 01:10 AM
Cannot boot-need help recovering Fedora partition LVM rietsit Fedora 11 06-11-2009 05:44 PM
LVM, lost partition table and kernel IS in panic pulassa_aina Fedora 2 06-29-2006 08:00 AM
boot fails when booting from lvm partition jlatl69 Linux - Newbie 6 03-07-2006 07:23 AM
can i put /boot in lvm partition benseghir Linux - Enterprise 1 06-15-2005 09:29 AM


All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration