GRUB Multiple boot

alex radsky at ncia.net
Sun Oct 2 01:40:21 UTC 2005


For what it's worth to those concerned with GRUB dual boot .......

.I have two Windows XPs installed on hda1 and hdb1,  two UBUNTUs on hda5
and hda10,  two KNOPPIX on  hda7 and hdb 7, Suse on hda3,  Libranet on
hda6, JAMD on hda9, and Progeny 2 on hda8.  I have been unsuccessful in
installing an old version of Lycoris.
Why do I have all these linuxes?       Don't ask!!!!  I'll just say
UBUNTU is my favorite.but I'm so entrenched in email in ONE of the
Windows that it's difficult to switch it to UBUNTU

Each of the linuxes has an identical  /boot/grub/menu.lst.  At the
moment, one of the UBUNTUs has the default grub. If, for some reason, I
want change the default grub boot to a different linux, I boot that
linux and issue the command  'grub-install  /dev/hda'   (or hdb). It's
important to keep notes of which linux has the default grub.      .

In addition, the two Windows, boot from the MS booter that is created
when a second Windows is installed and this booter in turn appears in
the GRUB menu.as a single boot item.

The trick here is to choose GRUB BOOT as each new linux is installed and
then edit its /boot/grub/menu.lst to include all the other linuxes plus
the dual Windows boot. The new linux will automatically  have the
default GRUB but it can be transferred to a different linux if desired..
If an installation doesn't offer GRUB boot, it can be created with an
editor by copying it from another installation.  It's a good idea to
have a copy of GRUB on a floppy or CD so you can construct it in an
installation that doesn't have it.

Just to show how /boot/grub/menu.lst looks with all these systems on the
menu, I'm including a copy of mine.  There are several # to disable
lines and previously installed systems..
Perhaps you might want to copy and modify it for your partition scheme.

-----------------------------/boot/grub/menu.lst
# grub.conf generated by anaconda
#
color yellow/blue blinking-white/green

# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd1,3)
#          kernel /boot/vmlinuz-version ro root=/dev/hdb4
#          initrd /boot/initrd-version.img
#boot=/dev/hda
color white/blue black/light-gray

default=0
timeout=24

title   > Windows XP (C: hda1 & D: hdb1)
rootnoverify (hd0,0)
chainloader +1
makeactive

title   __________________Using UBUNTU (hda5) GRUB to boot
root

# title   Windows XP-2  (D:  hdb1)
# rootnoverify (hd1,0)
# chainloader +1
# makeactive

title     Knoppix 3.6 (hdb7)
root   (hd1,6)
kernel /vmlinuz root=/dev/hdb7

title     Knoppix 3.3 (hda7)
root   (hd0,6)
kernel /vmlinuz root=/dev/hda7

title    Libranet (kernel 2.4.21)  (hda6)
root    (hd0,5)
kernel  /boot/vmlinuz-2.4.21 root=/dev/hda6 ro hdd=scsi
savedefault

# title   Libranet (kernel 2.4.21 (single user mode) (hda6)
# root    (hd0,5)
# kernel    /boot/vmlinuz-2.4.21 root=/dev/hda6 ro hdd=scsi single
# savedefault

title      Ubuntu (kernel 2.6.8.1-3-386)  (hda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.8.1-3-386 root=dev/hda5 ro quiet splash
initrd /boot/initrd.img-2.6.8.1-3-386
savedefault
boot

title Ubuntu (kernel 2.6.8.1-3-386 recovery mode)  (hda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.8.1-3-386 root=dev/da5 ro single
initrd /boot/initrd.img-2.6.8.1-3-386
savedefault
boot

title     Ubuntu (kernel 2.6.10-5-386)  (hda10)
root (hd0,9)
kernel /boot/vmlinuz-2.6.10-5-386 root=dev/hda10 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

title     Ubuntu (kernel 2.6.10-5-386)  (hda10)  (recovery mode)
root (hd0,9)
kernel   /boot/vmlinuz-2.6.10-5-386 root=dev/hda10 ro single
initrd     /boot/initrd.img-2.6.10-5-386
savedefault
boot

title     Ubuntu (kernel 2.6.10-5-386)  (hda10)   (memtest+)
root (hd0,9)
kernel /boot/memtest86+.bin
savedefault
boot

title   JAMD Linux (2.4.20-9)  (hda9)
root    (hd0,8)
kernel  /boot/vmlinuz-2.4.20-9 root=/dev/hda9 ro hdd=scsi
savedefault

###Don't change this comment - YaST2 identifier:

title SuSE 9.1  (2.6.4-52)   (hda3)
root   (hd0,2)
kernel  (hd0,2)/boot/vmlinuz root=/dev/hda3 vgwopts
initrd   (hd0,2)/boot/initrd

# title   SUSE 9.1 (2.6.4-52)  (hda3)
# root    (hd0,2)
# kernel  /boot/vmlinuz-2.6.4-52 ro root=LABEL=/ hdd=ide-scsi
# initrd  /boot/initrd-2.6.4-52.img
# savedefault

# title   SUSE 9.1 (2.6.4-52)  (hda3)
# kernel (hd0,2) /boot/vmlinuz-2.6.4-52 root=/dev/hda3 vga=0x317
# splash=silent desktop resume=/dev/hda3 showopts
# initrd (hd0,2) /boot/initrd

# title SUSE 9.1 Failsafe (hda3)
# kernel (hd0,2)/boot/vmlinuz-2.6.4-52 root=/dev/hda3 showopts
# ide=nodma apm=off acpi=off vga=normal noresume nosmp noaspic
# maxcpus=0 3
# initrd (hd0,2)/boot/initrd

# For booting Progeny
title  Progeny 2.0 (kernel 2.6.8)  (hda8)
root (hd0,7)
kernel /boot/vmlinuz-2.6.8 root=/dev/hda8 ro hdd=scsi
initrd /boot/initrd.img-2.6.8
savedefault

# For booting Debian
# title  Debian--1 (hdb7)
# root (hd1,6)
# kernel /vmlinuz root=/dev/hdb7

# For booting Debian
# title  Debian--2 (hdb8)
# root (hd1,7)
# kernel /vmlinuz root=/dev/hdb8

# For booting Lycoris/LX
# title   Lycoris/LX (pc97-2.4.18-modular)  (hda5)
# root    (hd0,4)
# kernel  /boot/vmlinuz-pc97-2.4.18-modular root=/dev/hda5

# For booting Lycoris/LX
# title Lycoris Desktop/LX (2.4.18-modular)  (hda5)
# root (hd0,4)
# kernel = /boot/vmlinuz-2.4.18-modular vga=274 quiet console=ttyS3,9600
apm=off acpi=no-idle  root=/dev/hda5

# For booting Lycoris/LX
# title  = Lycoris (pc97-2.4.18-modular)(hda5)
# root   = (hd0,4)
# kernel = /boot/vmlinuz-pc97-2.4.18-modular vga=274 quiet
console=ttyS3,9600 apm=off acpi=no-idle root=/dev/hda5

#The following should be the last item in the active menu
# Change the colors.
title Change the colors
color light-green/white blink-red/blue
# --






More information about the ubuntu-users mailing list