Sunday, December 27, 2009

Add Windows XP to the GRUB menu

  1. Back up GRUB configuration file.
    cp /boot/grub/menu.lst /root/backup/menu.lst.grub.bak
    cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
  2. Add Windows XP boot up option in the GRUB menu.
    Vi /boot/grub/menu.lst
    add following lines in the menu.lst:
    title Windows XP
    map (hd0) (hd1)
    map (hd1) (hd0)
    root (hd1,0)
    chainloader +1




    Note:
    map (hd0) (hd1)
    map (hd1) (hd0)
    This two lines are called "virtual swap" which can solve windows installed on second harddisk.
    root (hd1,0) (hd1,0)means on second harddisk's first partition.


No comments: