I have installed Ubuntu 15.04 with Windows 8 on my Vaio. When I shut down from Windows and start the laptop, I get the GRUB menu and can select between booting with Windows and Ubuntu. However, after I shut down from Ubuntu and start, directly Windows opens.
How can I fix this?
Here’s how I installed Ubuntu:
- I used a 64-bit iso.
- I disabled Fast Startup and hibernation in Windows.
- I left SecureBoot enabled while installing Ubuntu in UEFI mode. I set Secure Boot Mode to ‘Custom’ in the BIOS Settings.
- I created free space for Ubuntu from within Windows.
- While installing from a LiveUSB, I manually created partitions for /, /home and swap. I did not create a /boot partition.
- I selected the ‘Device for bootloader information’ as the only hard disk on my laptop. I did not select a specific partition. Also, I did not create an EFI System partition as described in Ubuntu UEFI Guide because it recommends having only one ESP per disk.
Dual Boot did not work. Then, I disabled SecureBoot and ran the following command on Windows:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
And the GRUB menu started showing every time after I had shut down from windows. But whenever I shut down from Ubuntu and start, it directly boots Windows.
I did consult the following threads and pages:
How to fix dual-booting Windows 8 and Ubuntu 14.04 on a Sony Vaio?,
Installing Ubuntu Alongside a Pre-Installed Windows with UEFI
Here are some of the possible solutions I found and need advice on which of them to try:
Reinstall Ubuntu and this time create a /boot partition. Then run Boot Repair.
manually copy the ubuntu Boot directory in place of the \EFI\Boot Directory, and rename shimx64.efi to \EFI\Boot\bootx64.efi (not \EFI\Microsoft\Boot\bootmgfw.efi ), like in this guide: http://www.slideshare.net/Tinydile/vaio-pro13-win8ubuntu1310uefi. (I’ve never used xTerm or rEFInd. So I do not understand what the commands in this guide are exactly for and whether this guide solves the problem.)
Can somebody please explain what is causing this problem and how I should fix it? I'm confused because dual-boot does work, just not straight after shutting down from Ubuntu. Thank you in advance.