Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can i add windows to the boot menu when using grub-bios. I couldn't find menu.lst file in my boot/grub directory. My bootloader is on /dev/sda1. Windows is on /dev/sda2, root and home are on /dev/sda3 and /dev/sda5

share|improve this question
    
Is it grub 2 or 1? – Simon Sheehan Jan 6 '13 at 19:02
    
@Simon How can i check this? – RomanKapitonov Jan 6 '13 at 19:12

Here is the answer https://wiki.archlinux.org/index.php/Grub#With_Windows

Assuming Windows is in sda3 Add the following to /etc/grub.d/40_custom

# (2) Windows 7
menuentry "Windows 7" {
  set root=(hd0,3)
  chainloader (hd0,3)+1
}

Save and then run

grub-mkconfig -o /boot/grub/grub.cfg
share|improve this answer

Many distros now use grub2, which instead uses /boot/grub/grub.cfg. However, they often recommend against manually editing this file, instead using the update-grub script. If this is the case, simply installing os-prober should cause update-grub to automatically detect a Windows install and add it to the GRUB menu.

share|improve this answer
    
os-prober returns No volume groups found – RomanKapitonov Jan 6 '13 at 19:58
    
It's likely to do that if it's looking for LVM, but it usually picks up things on non-LVM volumes as well. Does it mention anything else? – Darael Jan 6 '13 at 20:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .