Edited Question:
How to have a secure dual boot running with Linux and Windows 10 on Sony Vaio Duo 11?
Answer,
see below.
Edited Question:
How to have a secure dual boot running with Linux and Windows 10 on Sony Vaio Duo 11?
Answer,
see below.
I should not have sped read this Ubuntu article the first few times I came upon it. It has one sentence that could have saved me a month of headache; [the laptop is] hard-coded to boot from the file /dev/sda3/EFI/Microsoft/Boot/bootmgfw.efi
Knowing this, the solution became pretty easy. 1. Move or rename /EFI/Microsoft/Boot/bootmgfw.efi to /EFI/Microsoft/Boot/xxxx.efi (or whatever you would like to name that file). 2. Move or copy all the contents of the linux boot folder to /EFI/Microsoft/Boot 3. Rename or copy shimx64.efi or shim.efi to bootmgfw.efi 4. Edit grub's custom_40 file to point to windows' xxxxxx.efi. This is the code to use:
menuentry "Windows 10" { insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/xxxxx.efi
}
I tested this technique with Fedora 25 and Kubuntu 16.10.
You want to know the funny part about this whole debacle? I solved the issue after deleting Windows... go figure. I currently boot with secure boot on for an OS that doesn't need it. Hahahaha....
For Alex;
I accidentally deleted Windows in this particular laptop, so my 40_custom file is blank. I found the code to use in rod's page... scroll down to the part where it says configuring grub 2 and you will see this code;
menuentry "Windows 7" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/xxxxx.efi
}
This is what you paste at the bottom of the 40_custom file. Make sure that the chainloader DOES NOT point to the bootmgfw.efi and instead points to the windows efi file you renamed. If it points to the bootmgfw.efi, selecting the option windows will just load grub again. Also make sure that '(hd0,gpt1)' points to the actual partition where your efi partition is. I don't remember how the partitions are laid out since I accidentally wiped out this HD (ooopss). Also please note my updated steps above. Good luck!