Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hello after a successfull installation of Ubuntu 12.10 amd64, I am now unable to boot Windows 8.

Here are my actions:

  1. Made room (15 GB) for Ubuntu from Windows 8 Computer Managment
  2. Boot Ubuntu 12.10 amd64 LiveUSB with EFI and with Secure Boot enabled
  3. Created 2 new partitions at the end (13 GB Ext4 Root amd 2 GB Swap)
  4. Selected Windows 8 EFI System Partition to install bootloader

Grub gives me at boot:

  1. Ubuntu (works without problems)
  2. Windows Recovery Environment (lots of errors)
  3. Windows 8 (2 error messages describe just below)

The 2 error messages are:

  • error: can't find command drivemap.
  • error: invalid EFI file path
share|improve this question
Rectification I selected "the newly created EFI System Partition" to install the bootloader, but in reallity it installed the bootloader on the Windows 8 EFS... – Kouros Dec 28 '12 at 17:07
Did you do a backup beforehand? i.e the windows 8 start/system partition is something small like 150-350 MB so maybe you did dd if=/dev/sda1 of=/media/some_usb_pendrive/backupfile? If such a backup exists I would restore the windows system/start partitio which might have been "damaged". – humanityANDpeace Dec 28 '12 at 17:58
Sorry no backup but I managed to get Windows 8 back using Recovery Environment (by pressing the assist button instead of the power on button) – Kouros Jan 4 at 10:39
did you seriously make a duplicate of your own question? Install Ubuntu 12.10 on UEFI along Windows 8 – duxk.gh Jan 4 at 10:49

3 Answers

up vote 4 down vote accepted

Found a temporary solution.

Append to /etc/grub.d/40_custom

menuentry "Windows 8" {
   set root='(hd0,gpt1)'`
   chainloader /EFI/microsoft/BOOT/bootmgfw.efi
}

Warning: gpt1 here is my ESP, yours could be different, like gpt3

Now apply changes to grub

update-grub

Warning: If you boot Windows 8, grub will be replaced by Windows Boot Manager as default boot manager. I haven't found a solution until now.

share|improve this answer
what should i 'aim' for? i thought it was the windows data partition (gpt4 here) but it worked with gpt1, which is the only EFI partition i have. i though installing ubuntu would have overwritten the windows content of the EFI partition, like grub does to the MBR... – gcb Feb 15 at 6:16

The wrong Windows entries in GRUB are due to this bug: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1024383

Solution: run Boot-Repair's Recommended Repair from a liveCD (or liveUSB).

share|improve this answer
I had to disable "secure boot" in the bios before this would work. – Robin Winslow Apr 30 at 16:21

I found a way to shut Windows 8 up. See http://superuser.com/questions/499923/preinstalled-windows-8-and-linux-uefi-dual-boot-on-a-laptop/528581

Under W8, in an elevated privilege command window, run powercfg /h off. By the time you do this, W8 may already have overwritten the EFI partition. It took me a few iterations of changing bootmgfw.efi and having it reset until it stuck, but now I'm happy.

I can't tell if just booting W8 is enough, or if you have to log in and then reboot. Perhaps somebody with more patience (I was working on this for more than half a day) can tell.

share|improve this answer

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.