Problem:
I have two partitions. On one I have installed Fedora 9 and on my other partition I just installed Fedora 12. Now that I've installed Fedora 12 I can't get Grub to boot the old partition. How can I configure Grub to boot to my old fedora partition?
Some Notes:
- My Fedora 9 seems to show up as Linux LVM instead of just Linux in fdisk. I had virtual box installed on that Linux, but it isn't a virtual machine itself.
- I'm pretty sure Fedora 12 installs grub instead of grub2
- I can see and mount both partitions from the Fedora 12 live CD if that helps
- My box is 64 bit.
Info:
This is what I get from fdisk -l
:
Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005745c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64685 519578624 83 Linux
/dev/sda2 65706 65730 200812+ 83 Linux
/dev/sda3 65731 91201 204595807+ 8e Linux LVM
/dev/sda4 64686 65705 8193150 5 Extended
/dev/sda5 64686 65705 8192000 82 Linux swap / Solaris
And this is what is currently in my menu.lst
:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.12-174.2.3.fc12.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-2.6.31.12-174.2.3.fc12.x86_64 ro root=UUID=876dd1b5-104a-46de-b5fb-08f96d2ce420 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet mem=8192M
initrd /boot/initramfs-2.6.31.12-174.2.3.fc12.x86_64.img
title Fedora 9
rootnoverify (hd0,3)
chainloader +1
The first fedora in that list is Fedora 12 which boots correctly, the second was just a guess as to where my Fedora 9 install was. When I select that in Grub on boot it goes to a blank screen with a blinking cursor that doesn't respond to the keyboard.
Update:
I was able to mount my old FC9 system and in the /boot section I found this under menu.lst if that helps:
title Fedora (2.6.27.25-78.2.56.fc9.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.27.25-78.2.56.fc9.x86_64 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.27.25-78.2.56.fc9.x86_64.img
Question:
What do I need to do to boot into my old Fedora?
Best Answer
LVM isn't "Linux Virtual Machine", it's "Logical Volume Manager". If I understand LVM correctly, to boot to a root partition on LVM, you need a separate /boot partition outside of the LVM (was that the small partition on /dev/sda2?). Your system may still have this, but if your FC12 installation overwrote it, recovery will be much more difficult.
Here's a couple of links to Grub vs LVM problems: link 1, link 2
Also see "Mounting a Linux LVM volume" -- you should be able to verify that your old FC9 system is still OK by mounting and examining its root partition while booted into FC12. If so, you can probably recover fairly easily, even if you've overwritten the FC9 /boot partition.
Here's an example Grub boot entry for an LVM system (source). In this case, (hd0,0) (meaning /dev/sda1) is a small /boot partition, and the rest of the system resides on an LVM on /dev/sda2. Note the root= and lvm2root= entries on the kernel line:
Postmortem: This user ended up with the best-case scenario. The FC12 installation didn't overwrite or reformat FC9's /boot partition, /dev/sda2, and all that was needed was to access FC9's old /boot/grub/menu.lst and copy the boot entries into FC12's Grub menu.