Add windows to my boot menu
I have windows installed on /dev/sda3 and running Ubuntu 11.10 on /dev/sda5. The boot loader points to /dev/sda1 and /dev/sda2. Both are parts of the recovery system for my laptop.
How do I edit the boot menu so that it points to /dev/sda3. I've tried following the directions, but I'm confused by them and many are outdated as things changed, apparently with 11.04.
Can someone help me, please? I just need to add the one entry.
Thanks!
It turns out that /dev/sda2 was my windows loader, but it was failing to boot. After a helpful comment (in an answer below), I re-installed windows and it fixed the issue. thanks for the help.
Solution 1:
update-grub
should automatically detect and add Windows partitions. What's the output of this command?
This page is long, but the directions here should work for adding a custom menu entry:
https://help.ubuntu.com/community/Grub2
It would be something like:
menuentry "Windows" {
set root=(hd0,2)
chainloader +1
}
You might need to twiddle the numbers to get the right partition.
Solution 2:
It turns out that /dev/sda2 was my windows loader, but it was failing to boot. After a helpful content, I re-installed windows and it fixed the issue. thanks for the help