Windows is missing from GRUB’s menu.lst
I moved the Windows entry in
/boot/grub/menu.lst to the first position. When Ubuntu installed a new kernel, the Windows entry was wiped out :( How to get it back?
A Windows entry looks like this:
title MS Windows XP root (hd0,0) savedefault makeactive chainloader +1
The question is: how to figure out the numbers of the Windows partition (“
hd0,0” in this example)?
Execute the following command:
sudo fdisk -l
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS ...
My Windows is on “sda1”, i.e. on disk “sda”, on partition “1”. For GRUB, “sda” is “hd0”, while partition “1” is “0”. That is, GRUB starts indexes with 0.
This post is based on this thread.