Home arrow Latest Tutorials arrow Boot multiple OSes with Grub: Linux, Windows XP and FreeBSD
Boot multiple OSes with Grub: Linux, Windows XP and FreeBSD  
Digg Reddit Ma.gnolia Stumble Upon Facebook Twitter Google Yahoo! MyWeb Furl" BlinkList Technorati Mixx Bookmark
If you want to be able to choose at boot time between multiple Operating Systems, all installed on different partitions on the same drive or on other drive but on the same system you must edit the /boot/grub/menu.lst file and add the following content:

# --------------------- /boot/grub/menu.lst file ------------------
default         4
timeout         10
color cyan/blue white/blue

title           Debian GNU/Linux, kernel 2.6.26-2-686
root            (hd0,4)
kernel          /vmlinuz-2.6.26-2-686 root=/dev/sda3 ro quiet
initrd          /initrd.img-2.6.26-2-686

title           Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root            (hd0,4)
kernel          /vmlinuz-2.6.26-2-686 root=/dev/sda3 ro single
initrd          /initrd.img-2.6.26-2-686

title           Debian GNU/Linux, kernel 2.6.26-2-486
root            (hd0,4)
kernel          /vmlinuz-2.6.26-2-486 root=/dev/sda3 ro quiet
initrd          /initrd.img-2.6.26-2-486

title           Debian GNU/Linux, kernel 2.6.26-2-486 (single-user mode)
root            (hd0,4)
kernel          /vmlinuz-2.6.26-2-486 root=/dev/sda3 ro single
initrd          /initrd.img-2.6.26-2-486

title           FreeBSD 8.0
rootnoverify    (hd0,0)
chainloader +1

title           Windows XP
rootnoverify    (hd0,1)
savedefault
chainloader     +1
# ---------------- end of file  /boot/grub/menu.lst file ------------------

In this config file we asume that your FreeBSD OS is on first partition, Windows XP on second and Linux on 5th.
Counting starts at 0, so (hd0,0) means, hard drive 1 (first), partition 1 (first).

 
< Prev   Next >

Misc

Linux Tips

Polls

What is your favorite Linux Distribution ?