GRUB UEFI windows boot fail

I've read about this, but still can't figure out my problem. I've got a new laptop with windows 8 preinstalled. First thing I did was installing ubuntu, then GRUB, as I always did. Now I can boot Ubuntu, but not windows. While the machine starts I get this message:

Failed to open \EFI\Microsoft\Boot\grubx64.efi - 80000000000000E
Failed to load grub
Failed to open \EFI\BOOT\grubx64.efi - 80000000000000E
Failed to load grub
Checking media [FAIL]
Checking media [FAIL]

Then GRUB shows up with 4 options

Ubuntu
Advanced Settings for Ubuntu
Windows Boot Manager (UEFI on /dev/sda1)
System setup

Selecting Ubuntu goes fine, but selecting windows outputs this message:

/EndEntire
file path: /ACPI(a0....)/PCI... etc.
error: cannot load image.

and it returns to GRUB menu. I've read, that installing GRUB with UEFI isn't a good idea. I always had BIOS. I can change the boot option to UEFI secure mode off and Legacy secure mode off. The second one says there are no boot images. How should I repair my bootloader so that I can choose between Ubuntu and Windows?


Solution 1:

First, disable Secure Boot. It sounds like you may have tried this already, but that's not quite 100% clear from your question.

Second, as user207507 suggests, Boot Repair may be able to fix the problem. This isn't guaranteed, though, and in rare cases it can even render Ubuntu unbootable. (Making a backup of your EFI System Partition can provide you with a way back in case you have this problem.)

Third, you might try my rEFInd boot manager. You can try the USB flash drive or CD-R image (both available on the downloads page) without installing rEFInd to your hard disk. If you can boot both Ubuntu and Windows that way, try installing the Debian package in Ubuntu.

If these suggestions don't work, then please post back with the URL that Boot Repair generates. That will give us more detailed information about your system that will be helpful in diagnosing the problem.

Solution 2:

Search for the Boot-Repair cd. And boot live. I've used this often when installing win7 after Ubuntu when dual booting. It brings back the correct options in Grub.