When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy
Niels Larsen
nielblue at gmail.com
Mon Nov 2 11:41:52 UTC 2009
Setup of 8.04 encrypted on sdb1 with /boot of 100 mb and sdb2 with / of 30
gb:
##########
The part from menu.lst of sdb1:
title Ubuntu 8.04, kernel 2.6.24-19-generic (sdb1 - boot) 32 bit
encrypted
root (hd1,0)
kernel /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro
quiet splash
initrd /initrd.img-2.6.24-19-generic
quiet
##########
40_customs with content:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "ubuntu 9.04 sda7/8" {
set root=(hd0,7)
search --no-floppy --fs-uuid --set da9ce616-b91d-4428-8987-28eac900f328
linux /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash
initrd /initrd.img-2.6.28-11-generic
}
menuentry "ubuntu 8.04 sdb1/2" {
set root=(hd1,1)
linux /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro quiet splash
initrd /initrd.img-2.6.24-19-generic
}
##############
And here is the output of "sudo grub-mkconfig":
#
# 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="ubuntu 9.04 sda7/8"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=20
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set c70e2db3-827b-45c8-9015-432c69e5a501
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/sda2_crypt ro
quiet splash
initrd /initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set c70e2db3-827b-45c8-9015-432c69e5a501
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/sda2_crypt ro
single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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.
menuentry "ubuntu 9.04 sda7/8" {
set root=(hd0,7)
search --no-floppy --fs-uuid --set da9ce616-b91d-4428-8987-28eac900f328
linux /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash
initrd /initrd.img-2.6.28-11-generic
}
menuentry "ubuntu 8.04 sdb1/2" {
set root=(hd1,1)
linux /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro quiet splash
initrd /initrd.img-2.6.24-19-generic
}### END /etc/grub.d/40_custom ###
####################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091102/815c0552/attachment.html>
More information about the ubuntu-users
mailing list