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 –  jm_____ Jun 22 '14 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 '14 at 17:23

1 Answer 1

up vote 6 down vote accepted

Sony's and many others now, do not boot Ubuntu, just Windows. There are several work arounds and Boot-Repair used to rename 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. Not recommended to rename the Windows boot file unless nothing else works. And if you ran Boot-Repair before, best to change to use the rename of bootx64.efi.

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 (Not recommenced, but many may have done this) 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.

From live installer mount the efi partition on hard drive, lines with # are comments only: Mount efi partition. check which partition is FAT32 with boot flag. Often sda1 or sda2 but varies.

sudo mount /dev/sda1 /mnt

only if not already existing,

sudo mkdir /mnt/EFI/Boot
sudo cp /mnt/EFI/ubuntu/* /mnt/EFI/Boot

If new folder created, the bootx64.efi will not exist, skip this command

sudo mv /mnt/EFI/Boot/bootx64.efi /mnt/EFI/Boot/bootx64.efi.backup

make grub be hard drive boot entry in UEFI. If not existing, may have to update UEFI also with efibootmgr.

sudo mv /mnt/EFI/Boot/grubx64.efi /mnt/EFI/Boot/bootx64.efi 

a2:(this is the same as what Boot-Repair used to do in B:. Not now recommended: 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: If you ran Boot-Repairs fix for "buggy UEFI" with an older copy best to undo it. And then make the change above to use bootx64.efi 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 '14 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.