Leporello
April 26th, 2008, 10:37 PM
Hi,
I am trying to chainload Ubuntu from Fedora. My hard disk is set up like this:
sda1 Ubuntu partition
sda2 swap
sda3 /boot partition (created by Fedora, I believe)
sda4 Fedora partition
sda5 swap
When I boot the computer, Fedora's grub menu is displayed. The corresponding grub.conf (on sda3) is below:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.24.4-64.fc8)
root (hd0,2)
kernel /vmlinuz-2.6.24.4-64.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.4-64.fc8.img
title Fedora (2.6.24.4)
root (hd0,2)
kernel /vmlinuz-2.6.24.4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.4.img
title Fedora (2.6.24.3-50.fc8)
root (hd0,2)
kernel /vmlinuz-2.6.24.3-50.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.3-50.fc8.img
...more fedora kernels...
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=ceb85098-0c06-4b1c-9bda-0b78efd50459 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ceb85098-0c06-4b1c-9bda-0b78efd50459 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu
rootnoverify (hd0,0)
chainloader +1
boot
So as it stands, I can boot Ubuntu by picking one of the two non-chainloading Ubuntu options, which I copied and pasted from _Ubuntu's_ grub.conf. But I would like to be able to chainload Ubuntu, since this way I won't have to manually edit Fedora's grub.conf every time there's a new kernel for Ubuntu, for instance. Unfortunately, if I try to do this by picking the last option above (the Ubuntu chainloading one), I get:
Error 13: Invalid or unsupported executable format.
My question is then simply how do I get this to work? Do I need to do something special to make the computer recognize Ubuntu's grub?
I am trying to chainload Ubuntu from Fedora. My hard disk is set up like this:
sda1 Ubuntu partition
sda2 swap
sda3 /boot partition (created by Fedora, I believe)
sda4 Fedora partition
sda5 swap
When I boot the computer, Fedora's grub menu is displayed. The corresponding grub.conf (on sda3) is below:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.24.4-64.fc8)
root (hd0,2)
kernel /vmlinuz-2.6.24.4-64.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.4-64.fc8.img
title Fedora (2.6.24.4)
root (hd0,2)
kernel /vmlinuz-2.6.24.4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.4.img
title Fedora (2.6.24.3-50.fc8)
root (hd0,2)
kernel /vmlinuz-2.6.24.3-50.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.24.3-50.fc8.img
...more fedora kernels...
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=ceb85098-0c06-4b1c-9bda-0b78efd50459 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ceb85098-0c06-4b1c-9bda-0b78efd50459 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu
rootnoverify (hd0,0)
chainloader +1
boot
So as it stands, I can boot Ubuntu by picking one of the two non-chainloading Ubuntu options, which I copied and pasted from _Ubuntu's_ grub.conf. But I would like to be able to chainload Ubuntu, since this way I won't have to manually edit Fedora's grub.conf every time there's a new kernel for Ubuntu, for instance. Unfortunately, if I try to do this by picking the last option above (the Ubuntu chainloading one), I get:
Error 13: Invalid or unsupported executable format.
My question is then simply how do I get this to work? Do I need to do something special to make the computer recognize Ubuntu's grub?