Okay. I've been trying to get GRUB to load for a long time (bordering on two years of attempts). I have windows 7 on a Sony VAIO (SVS151190X
) and I am attempting to boot Ubuntu 15.04 through GRUB, but I can't get to GRUB...
This post is an overall extension of details of a similar/same problem posted in: https://askubuntu.com/questions/666690/cannot-boot-ubuntu-15-04-using-sony-vaio-with-win-8-1-pre-installed
Things I've Tried:
- Use easyBCD (yes, I realized it only works with MBR based systems so I undid everything I did with that
- Use
bcdedit
command in cmd in windows to change the path of{bootmgr}
to/EFI/ubuntu/grubx64.efi
that didn't work, I ran boot-repair and used it to ONLY reinstall grub and then I went back to windows and change the path of{bootmgr}
to/EFI/ubuntu/shimx64.efi
and still no success. Then I reset{bootmgr}
's path to the original windows path (/EFI/Microsoft/Boot/bootmgfw.efi
). - Then, I tried what was mentioned in other articles: replacing the bootmgfw.efi with the grubx64.efi file, but that did not work. There were many other efi boot files (ones for UEFI boot as stated in grub.cfg, which I used as a reference to figure out what some files did) in
/EFI/Microsoft
and/EFI/Boot
. I replaced every single one with grubx64.efi (renamed of course). For each replacement I renamed the windows file fromfile.efi
tofile.win.efi
.
By the way, I attempted to directly edit grub.cfg (carefully, using the files I was supposed to edit as reference, in addition to searching the file for all references to bootmgfw.efi. I only edited the list, and specifically the path when I renamed the windows files; nothing else (except right below the list where it has a path for one of the windows things). Now, the reason I had to do this was because sudo grub-update
returned:
/usr/sbin/grub-probe: error: failed to get canonical path of /cow.
This occurred after installing boot-repair in a live session, since before I install it boot-repair is just an unknown command...BUT then I tried it again right now in this live session (after sudo apt-get install grub
) and it worked fine and I made sure the windows paths were set correctly, but that is not important until I actually gain access to grub.
Also, my BIOS only contains the options of booting off the internal HDD, external device, disk drive, or network. There are no options of selecting windows or Ubuntu, just HDD.
I've viewed so many help pages, including:
- How to fix dual-booting Windows 8 and Ubuntu 14.04 on a Sony Vaio?
- Ubuntu 12.10 and dual Boot with Windows 8 uefi on Sony VAIO SVS1512
- How to understand Ubuntu UEFI Secure Boot install?
- https://help.ubuntu.com/community/Laptop/Sony/Vaio/Duo11/Trusty
- How to fix dual-booting Windows 8 and Ubuntu 14.04 on a Sony Vaio?
- http://ubuntuforums.org/showthread.php?t=2227580
- And many, many more that I can't remember
So, has anyone successfully dual booted Ubuntu with Windows, after the things I listed above did not work for you and you found a solution that did?
Help is much appreciated, thanks in advance.
Edit: To clarify, Ubuntu is installed and so is the grub boot loader, I just can't manage to arrive at the grub boot loader when I boot my laptop.
sudo efibootmgr -c -g -d /dev/sdX -p Y -w -L "UEFI: Hard Drive Boot" -l "\EFI\Boot\bootx64.efi"
sdX is drive, Y is efi partition. yours is sda3. Details on each parameter. linux.die.net/man/8/efibootmgr