Friday, February 6, 2009

My /boot/grub/menu.lst

There are a few different ways to set up multi-boot system in Linux. I use Debian Etch to boot Mepis, Linux Mint, and Ubuntu. Here are the key parts of my /boot/grub/menu.lst file:


title Debian GNU/Linux, kernel 2.6.18-6-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-6-486 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-6-486
savedefault

title Debian GNU/Linux, kernel 2.6.18-6-486 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-6-486 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18-6-486
savedefault

title Debian GNU/Linux, kernel 2.6.18-5-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-486 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-5-486
savedefault

title Debian GNU/Linux, kernel 2.6.18-5-486 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-486 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18-5-486
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry added by me
title MEPIS 7.0 at hdb1, kernel 2.6.22-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-1-mepis-smp root=/dev/sdb1 nomce quiet nosplash vga=791
savedefault
boot

# This entry added by me
title Linux Mint, kernel 2.6.24-23-generic (on /dev/hdb7)
root (hd1,6)
kernel /boot/vmlinuz-2.6.24-23-generic root=/dev/sdb7 ro quiet nosplash
initrd /boot/initrd.img-2.6.24-23-generic
savedefault
boot

# This entry added by me
title Linux Mint, kernel 2.6.24-23-generic (recovery mode) (on /dev/hdb7)
root (hd1,6)
kernel /boot/vmlinuz-2.6.24-23-generic root=/dev/sdb7 ro single
initrd /boot/initrd.img-2.6.24-23-generic
savedefault
boot

# This entry added by me
title Ubuntu 8.04, kernel 2.6.24-23-generic
root (hd1,8)
kernel /boot/vmlinuz-2.6.24-23-generic root=/dev/sdb9 ro quiet nosplash
initrd /boot/initrd.img-2.6.24-23-generic
savedefault
boot

# This entry added by me
title Ubuntu 8.04, kernel 2.6.24-23-generic (recovery mode)
root (hd1,8)
kernel /boot/vmlinuz-2.6.24-23-generic root=/dev/sdb9 ro single
initrd /boot/initrd.img-2.6.24-23-generic
savedefault
boot

No comments: