Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

my computer is a Sony Vaio Notebook. I used Ubuntu and Win 8 with dualboot but windows somehow managed to remove the choosing of the OS at startup. I think the bios is EFI and secureboot was disabled already and Boot Repair somehow fails, I attach the error links it gives. Can someone help please? I already spent half a day to find a solution.. Thanks a lot!

igor igel

http://paste.ubuntu.com/7685696/

share|improve this question
    
sda is missing GRUB ... "Place GRUB into sda" using: help.ubuntu.com/community/Boot-Repair –  jmunsch Jun 22 at 17:21
1  
With UEFI you do not have grub in the MBR of sda, just in the efi partition which it is. –  oldfred Jun 22 at 17:23

1 Answer 1

up vote 3 down vote accepted

Sony's do not boot Ubuntu, just Windows. There are several work arounds and Boot-Repair renames the Windows efi boot file to be grub/shim so system thinks it boots Windows but really boots grub. But a Windows update overwrites the Windows named shim file and you are back to square one. May be better to use one of the other work arounds.

I have seen all of these. I suggest renaming bootx64.efi and boot hard drive or use rEFInd.

Systems that only boot Windows from UEFI. Work arounds -Often Sony & HP, maybe others

Backup entire efi partition before making changes.

A: Manually rename files either efi\Microsoft\Boot\bootmgfw.efi and/or /EFI/BOOT/BOOTX64.EFI to be grub or shim

a1: Rename /efi/boot/bootx64.efi, copy shim or grub into /efi/boot and name it bootx64.efi Then boot harddrive entry.

a2:(this is the same as what Boot-Repair does in B:. Rename /efi/Microsoft/Boot/bootmgfw.efi and copy grub or shim into /efi/Microsoft/Boot and name it bootmgfw.efi Then boot Windows entry to boot to grub menu. You have to manually add a grub menu entry to boot renamed Windows efi file. Grub2's os-prober entry boots bootmgfw.efi entry which is now just grub, so it will not work.

Users who manually moved efi files around see post #6

http://ubuntuforums.org/showthread.php?t=2101840

http://ubuntuforums.org/showthread.php?t=2219452

http://ubuntuforums.org/showthread.php?t=2221498&p=13012109#post13012109

B: Boot_Repair renames Windows bootmgfw.efi. But cannot boot Windows from UEFI only grub Always say no until proven that you only can boot Windows entry from UEFI menu. buggy-kernel detected. Do you want to activate [Backup and rename Windows EFI files]? yes (if any choice fails, please retry with the other) To undo & to rename files to their original names, you just need to tick the "Restore EFI backups" option of Boot-Repair.

Any rename either manually or with Boot-Repair will need to be redone after a Windows update as it will restore Windows files.

C: Edit Windows BCD, one Alternative to Boot-Repairs rename to make shim have Windows name. Some systems work better to register grub/shim from inside Windows - for those that keep resetting Windows as default

Grub not showing on startup for Windows 8.1 Ubuntu 13.10 Dual boot

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

https://coderwall.com/p/vfyqkg

D: If Description has to be Windows then change UEFI description.

sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\ubuntu\shimx64.efi"

E: Some install rEFInd which seems to be another workaround and has nice boot icons.

http://www.rodsbooks.com/refind/index.html

http://www.rodsbooks.com/refind/secureboot.html

PPA available to make it easy to install in Ubuntu:

http://www.rodsbooks.com/refind/getting.html

share|improve this answer
    
Yes! Renaming worked for me! I mounted the efi partition and copied the files ../EFI/ubuntu/grubx64.efi to ../EFI/Boot/ and to /EFI/Microsoft/Boot and changed the name of the file as follows. In the ../EFI/Boot directory I overwrote the bootx64.efi with the file and in the ../EFI/Microsoft/Boot i overwrote the bootmgfw.efi with the file . That was all I think. Thank you very much! –  user296880 Jun 23 at 20:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.