Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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? –  innocent_rifle Jan 6 '13 at 19:12
add comment

2 Answers 2

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
add comment

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 –  innocent_rifle 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.