0

I followed these instructions to dual boot windows 8 and ubuntu:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

I was successfully able to install ubuntu. But then I couldn't boot into windows 8

  "File: \Boot\BCD Status: 0xc000000c Info: the boot configuration data for your pc is missing or contains errors."

So I ran boot-repair in ubuntu.

But then when I restarted computer I get:

error: invalid arch independent ELF magic
grub rescue >

At the end of boot-repair I had this message:

Please do not forget to make your BIOS boot on sda2/EFI/ubuntu/shimx64.efi file! 

I have no idea how to do that. I am able to boot into ubuntu by hitting the F12 on startup, otherwise it goes to the screen with the invalid arch error.

Here is the summary of the boot-repair: http://paste.ubuntu.com/6535680

EDIT: Still not able to boot into windows 8 from grub screen btw I get:

error: unknown command 'drivemap'.
error: invalid  EFI file path. 

EDIT: A few more details: when I installed ubuntu I had my BIOS set to legacy mode (not UEFI) as suggested by the article above. When I installed Ubuntu I chose the "Install Ubuntu alongside Windows 8" option.

bdeonovic
  • 143
  • Did you able to boot ubuntu? – Avinash Raj Dec 07 '13 at 16:27
  • Yes, as I said in my post, I can get into ubuntu by going into the boot menu on startup – bdeonovic Dec 07 '13 at 16:28
  • http://askubuntu.com/questions/381601/windows-doesnt-boot-after-updating-to-13-10/381603#381603 try this. – Avinash Raj Dec 07 '13 at 16:36
  • Without windows disk,it's not possible. – Avinash Raj Dec 07 '13 at 16:41
  • 1
    From the boot-repair output, it seems as if it has concluded normally. The message was telling you that if you aren't taken straight into GRUB, you should open BIOS on startup and manually set it to boot from sda2/EFI/ubuntu/shimx64.efi. Inability to load Win 8 looks like a separate problem. – Pavel Dec 07 '13 at 16:43
  • @Pavel can you describe how to set it to boot from sda2/EFI/ubuntu/shimx64.efi I don't believe that is an option – bdeonovic Dec 07 '13 at 16:46
  • From your boot-repair, it appears you have two hard drives: 24GB (sda) and 1000GB (sdb). You need to set the 1000GB drive as the highest-priority boot device in BIOS Setup (in the boot options section). – Pavel Dec 07 '13 at 17:09
  • So i was able to fix windows boot but only if I boot from boot menu (f12) into windows. If i boot into grub and then choose to boot into windows from grub I still get error. How can I fix this? – bdeonovic Dec 07 '13 at 17:29
  • I'm confused. When you boot and DO NOTHING, does GRUB load? If it doesn't my previous comment was abt fixing that. – Pavel Dec 07 '13 at 18:14

1 Answers1

1

Since you say in one of your comments that you can boot to Windows by selecting its boot entry in the firmware's boot manager, my recommendation is to try rEFInd. You can do this risk-free by using the CD-R or USB flash drive image; prepare the medium and try it. If you can boot to both Linux and Windows, you can then install the Debian-package version under Ubuntu. rEFInd will then take over from GRUB as your primary boot manager. You may need to clean up unwanted boot options by deleting files from the /boot/efi/EFI directory tree in Linux or by using the dont_scan_dirs or dont_scan_files options in refind.conf; see the rEFInd documentation for details.

Rod Smith
  • 44,284
  • 7
  • 63
  • 105