Multi-booting with CentOS, Mandriva, and openSUSE
Posted: 2008/10/05 03:46:30
I've been messing with this problem for some time, now, and just when I think I have it figured out, I don't have it figured out at all.
I want to multi-boot several Linux distributions to test them, Since CentOS 5.2 is my primary system, it was installed first. Understandably, each succeeding distribution wants to install its own boot loader.
No problem, I think. I'll just edit the grub.conf or menu.lst in the new installation to allow for booting CentOS if I choose. Not so easy. I get error messages such as "wrong file type," or "wrong directory, or bad file type," or "missing file."
Here are the grub.conf or menu.lst files for the three distributions I'm working on;
First, CentOS 5.2
$ sudo cat /boot/grub/grub.conf
# 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,0)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS 5 hda3 (2.6.18-92.1.13.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.13.el5 ro root=/dev/hda3 rhgb quiet resume=/dev/hda2
initrd /initrd-2.6.18-92.1.13.el5.img
title CentOS 5 hda3 (2.6.18-92.1.10.el5.centos.plus)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.10.el5.centos.plus ro root=/dev/hda3 rhgb quiet resume=/dev/hda2
initrd /initrd-2.6.18-92.1.10.el5.centos.plus.img
title desktop586 2.6.24.4-1mnb
kernel (hd0,4)/vmlinuz-2.6.24.4-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.4-1mnb root=UUID=8091cadb-f2fc-429d-abc8-da9adf4e6842 resume=/dev/hda2 splash=silent vga=788
initrd (hd0,0)/initrd-2.6.24.4-desktop586-1mnb.img
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.5-1.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD5000AVJB-_WD-WCAS87395101-part7 resume=/dev/sda2 splash=silent showopts vga=0x314
initrd /boot/initrd-2.6.25.5-1.1-pae
With this as the MBR, CentOS boots just fine, but neither Mandriva 2008.1, nor openSUSE 11.0 will boot. It seems to me that they should, but they won't.
Next, the Mandriva menu.lst;
$ sudo cat /hda5/boot/grub/menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/gfxmenu
default 1
title desktop586 2.6.24.7-1mnb
kernel (hd0,0)/vmlinuz-2.6.24.7-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.7-1mnb root=UUID=8091cadb-f2fc-429d-abc8-da9adf4e6842 resume=/dev/hda2 splash=silent vga=788
initrd (hd0,0)/initrd-2.6.24.7-desktop586-1mnb.img
title CentOS 5 hda3 (2.6.18-92.1.10.el5.centos.plus)
kernel (hd0,0)/vmlinuz-2.6.18-92.1.10.el5.centos.plus BOOT_IMAGE=CentOS_5_hda3_(2618-92110el5cen root=/dev/hda3 ro rhgb quiet resume=/dev/hda2
initrd (hd0,0)/initrd-2.6.18-92.1.10.el5.centos.plus.img
title desktop586 2.6.24.4-1mnb
kernel (hd0,0)/vmlinuz-2.6.24.4-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.4-1mnb root=UUID=8091cadb-f2fc-429d-abc8-da9adf4e6842 resume=/dev/hda2 splash=silent vga=788
initrd (hd0,0)/initrd-2.6.24.4-desktop586-1mnb.img
Again, with this as the MBR, Mandriva will boot, but CentOS will not. At the time I was playing with this, I had not yet installed openSUSE, thus, no entry for it.
Now, the menu.lst for openSUSE;
$ sudo cat /hda7/boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Oct 4 18:55:48 UTC 2008
default 0
timeout 8
gfxmenu (hd0,6)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.5-1.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD5000AVJB-_WD-WCAS87395101-part7 resume=/dev/sda2 splash=silent showopts vga=0x314
initrd /boot/initrd-2.6.25.5-1.1-pae
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.5-1.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD5000AVJB-_WD-WCAS87395101-part7 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x314
initrd /boot/initrd-2.6.25.5-1.1-pae
###Don't change this comment - YaST2 identifier: Original name: CentOS 5 hda3 (2.6.18-92.1.13.el5) (/dev/sda5)###
title CentOS 5 hda3 (2.6.18-92.1.13.el5) (/dev/sda3)
root (hd0,2)
configfile /boot/grub/menu.lst
So,....... What am I missing, besides wealth, good looks, and common sense?
Thanks for any help with this.
owa :-?
I want to multi-boot several Linux distributions to test them, Since CentOS 5.2 is my primary system, it was installed first. Understandably, each succeeding distribution wants to install its own boot loader.
No problem, I think. I'll just edit the grub.conf or menu.lst in the new installation to allow for booting CentOS if I choose. Not so easy. I get error messages such as "wrong file type," or "wrong directory, or bad file type," or "missing file."
Here are the grub.conf or menu.lst files for the three distributions I'm working on;
First, CentOS 5.2
$ sudo cat /boot/grub/grub.conf
# 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,0)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS 5 hda3 (2.6.18-92.1.13.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.13.el5 ro root=/dev/hda3 rhgb quiet resume=/dev/hda2
initrd /initrd-2.6.18-92.1.13.el5.img
title CentOS 5 hda3 (2.6.18-92.1.10.el5.centos.plus)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.10.el5.centos.plus ro root=/dev/hda3 rhgb quiet resume=/dev/hda2
initrd /initrd-2.6.18-92.1.10.el5.centos.plus.img
title desktop586 2.6.24.4-1mnb
kernel (hd0,4)/vmlinuz-2.6.24.4-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.4-1mnb root=UUID=8091cadb-f2fc-429d-abc8-da9adf4e6842 resume=/dev/hda2 splash=silent vga=788
initrd (hd0,0)/initrd-2.6.24.4-desktop586-1mnb.img
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.5-1.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD5000AVJB-_WD-WCAS87395101-part7 resume=/dev/sda2 splash=silent showopts vga=0x314
initrd /boot/initrd-2.6.25.5-1.1-pae
With this as the MBR, CentOS boots just fine, but neither Mandriva 2008.1, nor openSUSE 11.0 will boot. It seems to me that they should, but they won't.
Next, the Mandriva menu.lst;
$ sudo cat /hda5/boot/grub/menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/gfxmenu
default 1
title desktop586 2.6.24.7-1mnb
kernel (hd0,0)/vmlinuz-2.6.24.7-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.7-1mnb root=UUID=8091cadb-f2fc-429d-abc8-da9adf4e6842 resume=/dev/hda2 splash=silent vga=788
initrd (hd0,0)/initrd-2.6.24.7-desktop586-1mnb.img
title CentOS 5 hda3 (2.6.18-92.1.10.el5.centos.plus)
kernel (hd0,0)/vmlinuz-2.6.18-92.1.10.el5.centos.plus BOOT_IMAGE=CentOS_5_hda3_(2618-92110el5cen root=/dev/hda3 ro rhgb quiet resume=/dev/hda2
initrd (hd0,0)/initrd-2.6.18-92.1.10.el5.centos.plus.img
title desktop586 2.6.24.4-1mnb
kernel (hd0,0)/vmlinuz-2.6.24.4-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.4-1mnb root=UUID=8091cadb-f2fc-429d-abc8-da9adf4e6842 resume=/dev/hda2 splash=silent vga=788
initrd (hd0,0)/initrd-2.6.24.4-desktop586-1mnb.img
Again, with this as the MBR, Mandriva will boot, but CentOS will not. At the time I was playing with this, I had not yet installed openSUSE, thus, no entry for it.
Now, the menu.lst for openSUSE;
$ sudo cat /hda7/boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Oct 4 18:55:48 UTC 2008
default 0
timeout 8
gfxmenu (hd0,6)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.5-1.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD5000AVJB-_WD-WCAS87395101-part7 resume=/dev/sda2 splash=silent showopts vga=0x314
initrd /boot/initrd-2.6.25.5-1.1-pae
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.5-1.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD5000AVJB-_WD-WCAS87395101-part7 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x314
initrd /boot/initrd-2.6.25.5-1.1-pae
###Don't change this comment - YaST2 identifier: Original name: CentOS 5 hda3 (2.6.18-92.1.13.el5) (/dev/sda5)###
title CentOS 5 hda3 (2.6.18-92.1.13.el5) (/dev/sda3)
root (hd0,2)
configfile /boot/grub/menu.lst
So,....... What am I missing, besides wealth, good looks, and common sense?
Thanks for any help with this.
owa :-?