1

What should I enter below to run Windows 8 from the Grub menu? I'm a total newbie, and it doesn't work from the beginning somehow.

Ubuntu works perfectly fine, but Windows gives me some error message like incorrect something (Secure Boot forbids loading module and unknown command 'drivemap'). I know I need to change something here to make it work, but I don't know what.

menuentry "Windows 8" {
set root = "(hd0,4)"

  chainloader +1

  }

I got a purple screen with this error message:

error: Secure Boot forbids loading module from (hd3, gpt0)/boot/grub/normal.mod.
error: no such device: 861287C9128786A9.
error: unknown command ‘drivemap’.
error: no such partition.

Press any key to continue..._

Update: I disabled Secure Boot, and again I got a purple screen with the following error message:

error: unknown command ‘drivemap’.
error: invalid EFI file path.

Press any key to continue..._
karel
  • 114,770
Lazio
  • 11
  • 1
  • 3
  • This would help you. – Avinash Raj Mar 26 '14 at 02:59
  • I don't understand it. – Lazio Mar 26 '14 at 03:05
  • I don't know what set root is supposed to be etc. – Lazio Mar 26 '14 at 03:05
  • What is the output of sudo os-prober? – Avinash Raj Mar 26 '14 at 03:06
  • I have no idea what you're talking about. Could you please explain it to me clearly what I should do and what to focus on instead of giving me names I have no idea about. – Lazio Mar 26 '14 at 03:12
  • Okay, I got this: /dev/sdb2:Windows Recovery Environment (loader):Windows:chain

    /dev/sdb4:Windows 8 (loader):Windows1:chain

    – Lazio Mar 26 '14 at 03:14
  • I've got answer to your question @AvinashRaj – Lazio Mar 26 '14 at 03:19
  • Now try sudo update-grub command.That's all.Now your windows entry will appear on the grub. – Avinash Raj Mar 26 '14 at 03:23
  • I've done that but it changes nothing. The problem is that I had Windows 8 loader in the grub from the beginning but it couldn't run properly. Just have a look at the problem: http://imgur.com/cCaSnTl – Lazio Mar 26 '14 at 03:28
  • I've also changed that hd gpt to the one that you see now because I thought this may work. Oh my god. – Lazio Mar 26 '14 at 03:29
  • You mean windows entry appears on the grub but it fails to load.Am i correct? – Avinash Raj Mar 26 '14 at 03:30
  • I think so. It is on the list but just doesn't load Windows. – Lazio Mar 26 '14 at 03:32
  • Any solutions? @AvinashRaj – Lazio Mar 26 '14 at 13:15
  • What was the error message displayed while you click on Windows option in the grub? – Avinash Raj Mar 26 '14 at 13:16
  • Already gave you a link to a screenshot. Have a look http://imgur.com/cCaSnTl – Lazio Mar 26 '14 at 13:18
  • Anything? @AvinashRaj – Lazio Mar 26 '14 at 13:38
  • Disable secureboot in bios.And then try again. – Avinash Raj Mar 26 '14 at 14:03
  • There is just less text than previously. Same thing. Take a look: http://imgur.com/zz0UWtn – Lazio Mar 26 '14 at 14:22
  • invalid efi path error, try this http://askubuntu.com/a/424145/202806 answer. – Avinash Raj Mar 26 '14 at 14:25
  • But this error was already there when I installed Ubuntu for the very first time. System didn't allow me to run Windows even straight after the installation. I've tried to repair boot many times and it just didn't work. @AvinashRaj – Lazio Mar 26 '14 at 14:43
  • post the boot-repair log. – Avinash Raj Mar 26 '14 at 14:44
  • What's that? Where do I find it? First of all when I put the recovery files onto the USB and tried to run it everything went fine but when that blue windows 8 screen appeared when I was meant to click on troubleshoot I have noticed run USB flash drive or something like that while I've already booted the recovery from the USB. It's like a loop. I boot the system from the USB and when it goes to the troubleshoot screen I can click on the USB again and again and again. I can't really repair boot with this USB method or maybe I'm doing this wrong. @AvinashRaj – Lazio Mar 26 '14 at 15:03
  • Everything is as on the very beginning. When I press 'e' to see the Windows 8 details in grub, everything is after I've installed the system. All I need is the correct details to put into there so the Windows could finally run. I think that the boot has been repaired but some incorrect details are being stored in the boot repair thingy. – Lazio Mar 26 '14 at 15:08
  • Searching for drivemap should have brought your to http://askubuntu.com/q/233687/40581 without the Boot-Repair bogus. :) If your partition table is not GPT but MBR, then you might want to look at this answer: http://askubuntu.com/q/447686/40581 it deals with MBR installations and creates a new separate boot configuration, though this is intended for using more than one hard drive and requires a bootable Windows installation (I haven't tried running bcdboot with wine yet). – LiveWireBT Apr 16 '14 at 06:28

1 Answers1

1
menuentry "Windows 8 (loader) (on /dev/sda2)" --class windows8 --class os {
        insmod ntfs
        set root='(hdo,2)'
        search --no-floppy --fs-uuid --set 5e32cd5e32cd3bb1
        drivemap -s (hD0) ${root}
        chainloader +1
}
amc
  • 7,142
user269384
  • 11
  • 1