Ubuntu – UEFI dual-boot, how to load recovery partition (Windows 8) after installing Ubuntu

boot-repairdual-bootgrub2uefi

I've installed Ubuntu (~EFI mode) in a ASUS Zenbook UX32VD, which has Windows 8 pre-installed. It had Security Boot disabled. I installed grub in the same partition I put the root directory (sda7 in my case).

After installation Ubuntu loaded and worked, great.

But there were 2 other partitions in grub that didn't run:

Windows Recovery Enviroment (loaer) (on /dev/sda2)
Windows 8 (loader) (on /dev/sda4)

Whenever I try to load any of the above i got:

error: can't find command <<drivemap>>.
error: invalid EFI file path.

I found in Internet multiple people having similar issues: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1024383

I tried using Boot-repair (recommended repair) utility from Ubuntu, and I've got 2 new entries in grub called:

Windows UEFI bootmgfw.efi
Windows Boot UEFI Loader

They load Windows 8, but the recovery partition is missing. I've tried using Boot-repair more times with different parameters which could make the bootmgfw.efi fail but none added a recovery partition entry:

http://paste.ubuntu.com/1690668/ (this is the last one Boot repair I did. EDIT: This Boot-Repair was using Recommended Repair)

I'd like to know how can I add an entry to grub that loads the recovery one. Any help to make my recovery partition to load would be greatly appreciated.

Best Answer

The Windows RE cannot be loaded directly from GRUB, as it requires bootmgfw.efi to call it. The only way to get to it is through Windows 8 because it relies on the underlying framework of Windows to be loaded. As long as you did not move the original partitions (Windows RE and Windows 8) around, you should be able to get into through Windows. Otherwise, you will need to rebuild the BCD, which is outside the scope of this question.