Working on installing openSUSE 11.2 grub for chainloading. I’ve installed Linux Mint’s Grub2, here is the grub.cnf, will it be possible to add centos, ubuntu entries in SUSE Grub.
DO NOT EDIT THIS FILE
It is automatically generated by /usr/sbin/grub-mkconfig using templates
from /etc/grub.d and settings from /etc/default/grub
BEGIN /etc/grub.d/00_header
if -s $prefix/grubenv ]; then
load_env
fi
set default=“0”
if ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fifunction savedefault {
if -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}function recordfail {
set recordfail=1
if -n ${have_grubenv} ]; then if -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fiEND /etc/grub.d/00_header
BEGIN /etc/grub.d/05_debian_theme
set menu_color_normal=white/black
set menu_color_highlight=black/light-grayEND /etc/grub.d/05_debian_theme
BEGIN /etc/grub.d/06_mint_theme
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
insmod png
if background_image /boot/grub/linuxmint.png ; then
set color_normal=white/black
set color_highlight=white/light-gray
else
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
fiEND /etc/grub.d/06_mint_theme
BEGIN /etc/grub.d/10_linux
menuentry “Linux Mint 9, 2.6.32-21-generic (/dev/sda18)” --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=b8deaaa0-5614-4b65-ba7a-c0893ef60b95 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry “Linux Mint 9, 2.6.32-21-generic (/dev/sda18) – recovery mode” --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
echo ‘Loading Linux 2.6.32-21-generic …’
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=b8deaaa0-5614-4b65-ba7a-c0893ef60b95 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-21-generic
}END /etc/grub.d/10_linux
BEGIN /etc/grub.d/10_lupin
END /etc/grub.d/10_lupin
BEGIN /etc/grub.d/20_memtest86+
menuentry “Memory test (memtest86+)” {
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root=‘(hd0,18)’
search --no-floppy --fs-uuid --set b8deaaa0-5614-4b65-ba7a-c0893ef60b95
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}END /etc/grub.d/20_memtest86+
BEGIN /etc/grub.d/30_os-prober
menuentry “Windows 7 (loader) (on /dev/sda1)” {
insmod ntfs
set root=‘(hd0,1)’
search --no-floppy --fs-uuid --set 1e419fde2bb6a036
chainloader +1
}
menuentry “Desktop – openSUSE 11.3 - 2.6.34.7-0.2 (on /dev/sda10)” {
insmod ext2
set root=‘(hd0,10)’
search --no-floppy --fs-uuid --set e30264b8-70c3-44f8-836b-dd0ab868cde0
linux /boot/vmlinuz-2.6.34.7-0.2-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part10 resume=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part5 splash=silent quiet showopts vga=0x317
initrd /boot/initrd-2.6.34.7-0.2-desktop
}
menuentry “Failsafe – openSUSE 11.3 - 2.6.34.7-0.2 (on /dev/sda10)” {
insmod ext2
set root=‘(hd0,10)’
search --no-floppy --fs-uuid --set e30264b8-70c3-44f8-836b-dd0ab868cde0
linux /boot/vmlinuz-2.6.34.7-0.2-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part10 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317
initrd /boot/initrd-2.6.34.7-0.2-desktop
}
menuentry “Fedora (2.6.33.3-85.fc13.x86_64) (on /dev/sda12)” {
insmod ext2
set root=‘(hd0,12)’
search --no-floppy --fs-uuid --set 26c0a7c1-96e5-4c50-a8f2-50f10b2113d3
linux /boot/vmlinuz-2.6.33.3-85.fc13.x86_64 ro root=UUID=26c0a7c1-96e5-4c50-a8f2-50f10b2113d3 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.33.3-85.fc13.x86_64.img
}
menuentry “SUSE LINUX (on /dev/sda14)” {
insmod ext2
set root=‘(hd0,14)’
search --no-floppy --fs-uuid --set 191d7017-0d9f-46c6-b78d-51f78f2ed1b3
linux /boot/vmlinuz root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part14 repair=1 resume=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part5 splash=silent quiet showopts vga=0x317
initrd /boot/initrd
}
menuentry “Failsafe – SUSE LINUX (on /dev/sda14)” {
insmod ext2
set root=‘(hd0,14)’
search --no-floppy --fs-uuid --set 191d7017-0d9f-46c6-b78d-51f78f2ed1b3
linux /boot/vmlinuz root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part14 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
initrd /boot/initrd
}
menuentry “Ubuntu, with Linux 2.6.35-19-generic (on /dev/sda16)” {
insmod ext2
set root=‘(hd0,16)’
search --no-floppy --fs-uuid --set d9a771bc-8b4c-44cc-a3b8-ae1893ce975e
linux /boot/vmlinuz-2.6.35-19-generic root=UUID=d9a771bc-8b4c-44cc-a3b8-ae1893ce975e ro quiet splash
initrd /boot/initrd.img-2.6.35-19-generic
}
menuentry “Ubuntu, with Linux 2.6.35-19-generic (recovery mode) (on /dev/sda16)” {
insmod ext2
set root=‘(hd0,16)’
search --no-floppy --fs-uuid --set d9a771bc-8b4c-44cc-a3b8-ae1893ce975e
linux /boot/vmlinuz-2.6.35-19-generic root=UUID=d9a771bc-8b4c-44cc-a3b8-ae1893ce975e ro single
initrd /boot/initrd.img-2.6.35-19-generic
}
menuentry “PClinuxOS 17 (on /dev/sda6)” {
insmod ext2
set root=‘(hd0,6)’
search --no-floppy --fs-uuid --set 773f0b6f-7115-4e4c-b9a1-b9f7193f7b8a
linux /boot/vmlinuz BOOT_IMAGE=PClinuxOS_17 root=UUID=773f0b6f-7115-4e4c-b9a1-b9f7193f7b8a resume=UUID=c5afe5a4-2ba5-48b7-b577-3a477a4b978a splash=silent vga=788
initrd (hd0,5)/boot/initrd.img
}
menuentry “PClinuxOS-nonfb (on /dev/sda6)” {
insmod ext2
set root=‘(hd0,6)’
search --no-floppy --fs-uuid --set 773f0b6f-7115-4e4c-b9a1-b9f7193f7b8a
linux /boot/vmlinuz BOOT_IMAGE=PClinuxOS-nonfb root=UUID=773f0b6f-7115-4e4c-b9a1-b9f7193f7b8a resume=UUID=c5afe5a4-2ba5-48b7-b577-3a477a4b978a
initrd (hd0,5)/boot/initrd.img
}
menuentry “PCLinuxOS failsafe (on /dev/sda6)” {
insmod ext2
set root=‘(hd0,6)’
search --no-floppy --fs-uuid --set 773f0b6f-7115-4e4c-b9a1-b9f7193f7b8a
linux /boot/vmlinuz BOOT_IMAGE=PCLinuxOS_failsafe root=UUID=773f0b6f-7115-4e4c-b9a1-b9f7193f7b8a failsafe
initrd (hd0,5)/boot/initrd.img
}
menuentry “CentOS (2.6.18-194.11.3.el5) (on /dev/sda8)” {
insmod ext2
set root=‘(hd0,8)’
search --no-floppy --fs-uuid --set e389a097-ef84-48f7-a065-5cb8bbbf805c
linux /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-194.11.3.el5.img
}
menuentry “CentOS-base (2.6.18-194.el5) (on /dev/sda8)” {
insmod ext2
set root=‘(hd0,8)’
search --no-floppy --fs-uuid --set e389a097-ef84-48f7-a065-5cb8bbbf805c
linux /boot/vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-194.el5.img
}END /etc/grub.d/30_os-prober
BEGIN /etc/grub.d/40_custom
This file provides an easy way to add custom menu entries. Simply type the
menu entries you want to add after this comment. Be careful not to change
the ‘exec tail’ line above.
END /etc/grub.d/40_custom