Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th September 2012, 03:11 AM
Kingtu Offline
Registered User
 
Join Date: May 2005
Posts: 126
linuxsafari
help with /boot inside lvm2 and grub2

I had a drive going bad so I wanted to remove the drive from the lvm but this drive also was where /boot resided. So I followed this tutorial I found on fedora forum http://forums.fedoraforum.org/showthread.php?t=264174 but tried to have the /boot added on an already existing lv instead of a new lv called lv_boot in the tutorial. So now I can't boot. Tried using a live cd and created the lv_boot but am unable to get grub2 to work. When I enter the command grub2-mkconfig -o /boot/grub2/grub.cfg errors out because I'm in a live cd environment with the vol groups mounted. I have even tried supergrub2 disk but that doesn't work. Any ideas??? I can't lose all the data on my lvm.
Reply With Quote
  #2  
Old 10th September 2012, 01:55 PM
bkahuna's Avatar
bkahuna Offline
Registered User
 
Join Date: Sep 2007
Location: Georgia
Age: 28
Posts: 22
windows_7firefox
Re: help with /boot inside lvm2 and grub2

/boot cannot be inside of your LVM. Like a 50MB /boot ext2 or ext3 partition is what you need. (Mine is 100MB for roundness)

if you are trying to use grub2-mkconfig from (I'm assuming a chroot environment) a livecd make sure your /sys and /proc are mounted before chrooting.

So.........
Code:
mount --bind /proc /mnt/whatever/proc
mount --bind /sys /mnt/whatever/sys
...
chroot /mnt/whatever bash -l
if you haven't been using this method, the '...' is for mounting any other partitions; ie. /boot, /home, /dev (mandatory), cp /etc/resolv.conf /mnt/whatever/etc/ (also mandatory), etc.
__________________
Linux since '96. M$ free since 2003.
Reply With Quote
  #3  
Old 10th September 2012, 02:57 PM
Kingtu Offline
Registered User
 
Join Date: May 2005
Posts: 126
linuxsafari
Re: help with /boot inside lvm2 and grub2

Thanks for the info but the whole reason I was trying to use grub is because it allows the boot partition to be part of the LVM as stated in the tutorial I linked. When I installed fedora it created the lvm but with a separate boot partition like you recommend. My problem is my drive with the boot partition was failing and I was trying to avoid purchasing a new harddrive. Is it possible to do without purchasing a new hard drive and just continue to use the 2 drives in my LVM? If I reduce the size of my lvm can I create a separate boot partition? I guess I can do that with gparted but the how do I install grub to that partition with all the correct paths to the kernels and LVM? Please give detailed instructions because I am at a loss. I have tried for hours. I would hate to have to copy my data off the lvm and reinstall
Reply With Quote
  #4  
Old 10th September 2012, 10:57 PM
bkahuna's Avatar
bkahuna Offline
Registered User
 
Join Date: Sep 2007
Location: Georgia
Age: 28
Posts: 22
linuxfirefox
Re: help with /boot inside lvm2 and grub2

if the old system is still workable, you can try changing the volume group size with gparted in some rescueCD style environment, then boot the normal system, create the new /dev/sdX#, mount it to a folder and copy all of /boot into it. then change your fstab to point to the new /dev/sdX# as your /boot partition, run the rescueCD again, fix GRUB to be installed on the MBR of the new disc, reboot.

that should do it
__________________
Linux since '96. M$ free since 2003.
Reply With Quote
  #5  
Old 11th September 2012, 12:50 AM
Kingtu Offline
Registered User
 
Join Date: May 2005
Posts: 126
linuxsafari
Re: help with /boot inside lvm2 and grub2

I'm going to try to reinstall to the bad drive create separate LVM, keeping the old LVM intact and I'll have a good boot partition to transfer to the LVM with grub2
Reply With Quote
  #6  
Old 12th September 2012, 01:26 PM
Kingtu Offline
Registered User
 
Join Date: May 2005
Posts: 126
linuxsafari
Re: help with /boot inside lvm2 and grub2

OK made some progress. I have a grub menu and it starts to boot but fails and drops me into a drak shell?? Anyone know where to go from here. I know about the bash shell but nothing about drak shell
Reply With Quote
Reply

Tags
grub2, inside, lvm2, or boot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO: Fedora 15 with /boot inside LVM using GRUB2 Scipio Guides & Solutions (No Questions) 3 12th September 2012 03:04 AM
[SOLVED] Putting /boot inside LVM with grub2 Scipio Installation and Live Media 2 1st June 2011 06:04 PM
Install Grub2 on LVM2 devent Using Fedora 5 28th November 2010 04:15 PM
Problems mounting /boot with LVM2 (i think) banjoman Using Fedora 2 10th March 2005 03:08 PM
/boot on LVM2 - FC3T3 bards1888 Fedora Core 3 Test Releases 1 13th October 2004 02:27 PM


Current GMT-time: 06:20 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat