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've built a new UEFI 64-bit system with both Windows 7 and Ubuntu 11.10 installed (on separate hard drives). I'd like to be able to boot Windows 7 from the grub menu, but I have so far been unsuccessful in getting grub to chainload it.

After getting the grub menu, I choose the option for the command line and I can see that bootmgfw.efi is at (hd1,gpt1)/efi/Microsoft/Boot/bootmgfw.efi. However, when I attempt to chainload I get an error:

grub> chainloader (hd1,gpt1)/efi/Microsoft/Boot/bootmgfw.efi
error: invalid signature

I am not sure whether I chose the UEFI boot option when I installed Linux from the LiveCD, and so I am wondering if the grub I have is perhaps unable to chainload in this manner? In any case I am not sure how to get the chainload to work.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

As I began to suspect when I was writing my question, the issue is that Linux was installed using MBR, so that grub was unable to chainload an EFI Windows 7. I reinstalled Linux, this time making sure to select the UEFI boot option for the LiveCD from BIOS. With Linux now installed with an EFI grub, I was able to add a grub menu entry for Windows 7 and chainload successfully.

I used this link to create the menu entry for Windows 7.

After doing sudo vi /etc/grub.d/40_custom and adding the menu entry to the end of the file, don't forget to run sudo update-grub.

share|improve this answer
    
If you found the solution to your own problem, go ahead and mark it "answered" by clicking the checkmark next to your answer. It may help someone in the future :) –  Raystafarian Mar 25 '12 at 11:54
    
Ha yeah I will do that as soon as the site lets me; yesterday when I tried to accept my own answer it informed me I need to wait a day, and just now it says 10 hours remain. But I'll take care of it tomorrow. –  atomicpirate Mar 26 '12 at 2:00

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.