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.

I wanted to have a dual boot. I have Windows 7 initially installed, then I installed Ubuntu 12.10 in a different partition and now it automatically boots to Ubuntu 12.10 without having a boot menu. Now, I don't know how I can go back to Windows 7. Please help me, how can I see the boot menu that allows me to choose which OS to load?

share|improve this question

migrated from stackoverflow.com Dec 15 '12 at 18:02

This question came from our site for professional and enthusiast programmers.

3 Answers 3

You need to modify the grub menu (/etc/grub.d/40_custom) : http://ubuntuforums.org/showthread.php?t=1817827

Something like this: (modify it for the partition where your Windows 7 is installed)

menuentry "Windows 7 (loader) (on /dev/sda2)" {    
    insmod ntfs    
    set root='(hd0,2)'    search --no-floppy --fs-uuid --set 6040b5fb40b5d7cc    
    chainloader +1 
}
share|improve this answer
    
Okay, the menu shows up but the problem is I can't see Windows 7 in the choices. Is the fact that it was encrypted a factor why I can't see it? If so, what should I do? –  Verne Jules Dec 15 '12 at 4:12

First you change the GRUB configuration:

nano / etc / default / grub

GRUB_TIMEOUT = 10

Where are the seconds value 10 appears to boot menu.

GRUB after upgrade

sudo update-grub

share|improve this answer

You can repair MBR using a Windows 7 installation USB/DVD On command prompt:

bootsect /nt60 all

This will allow you to boot to Windows 7 again.

To add Ubuntu to Windows boot menu see Dual boot Windows 7 and Linux (Ubuntu, Fedora etc.)

share|improve this answer

Your Answer

 
discard

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