Home > ubuntu > Windows is missing from GRUB’s menu.lst

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)
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

My output:

/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.

Update (20170918)
Under Manjaro I installed a new kernel, and when the system was rebooted, I noticed that the Windows entry was missing from the GRUB menu. The solution was very simple. I had to run “sudo update-grub“, and it put everything back in the GRUB menu.

Categories: ubuntu Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: