SDB:Dual boot on 2 drives
GRUB boot manager
GRUB is the default boot manager for openSUSE/SUSE Linux as well as many other well known Linux distributions. It is selected by default in YaST when you install openSUSE/SUSE Linux, therefore it's most probably the one installed on your computer. GRUB uses a file called /boot/grub/menu.lst
to store it's configuration information (this file may be different on another Linux distribution).
LILO boot manager
LILO is the Linux boot manager which was used as the default instead of GRUB in the beginning of Linux, openSUSE still has the option to use LILO if you would like to. As LILO uses pretty much the same naming convention as GRUB most of the following information still applies, with a few exceptions like the GRUB commands (eg. map
). The configuration file for LILO is /etc/lilo.conf
, so edit that file if you use LILO instead of GRUB.
Booting Windows Vista from the first hard drive
To enable the booting of Vista add the following to /boot/grub/menu.lst under the "Windows" section:
title Windows Vista rootnoverify (hd0,0) savedefault makeactive chainloader +1
Starting Windows from a hard disk other than the first hard disk
Because Windows must be started from the first hard disk, you need to use the map
command in the GRUB configuration file. If Windows is installed on a third hard disk, change (hd1,0)
to (hd2,0)
Add the following to /boot/grub/menu.lst under the "Windows" section:
map (hd0,0) (hd1,0) map (hd1,0) (hd0,0) rootnoverify (hd1,0) makeactive chainloader +1
- The
map
commands change the way GRUB sees your hard drives, in this case swappinghd1
(hard disk 1) withhd2
(hard disk 2). - The
root
command tells grub which hard drive to boot.
GRUB should then give you the option to boot into Windows on the second drive. Very Handy !!.
See Also
- http://www.gnu.org/software/grub/manual/html_node/map.html
- http://www.gnu.org/software/grub/manual/grub.html#Naming-convention
- http://en.wikipedia.org/wiki/NTLDR
- http://en.wikipedia.org/wiki/LILO
- http://www.netadmintools.com/html/5lilo.conf.man.html
- http://linux.die.net/man/5/lilo.conf
- http://linux.die.net/man/8/lilo
- http://www.wlug.org.nz/LiloErrorCodes