Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 831  / 3 Years ago, tue, may 11, 2021, 5:30:38

I have a computer with a dual boot ubuntu 14.04/windows8.1. Recently, my windows screwed up and I had to factory reset it. Everything was fine: my system downgrade to windows 8 and I still had the grub to choose what operating system I'd like to use.



But as soon as I went into windows, I updated it to 8.1: that made the system boot directly to windows. Thankfully it didn't mess up with my linux partitions as I could see on GParted.



Then I put my ubuntu live usb and ran Boot-Repair. The log can be seen on http://paste.ubuntu.com/9304059/



But that didn't change anything, it boots to windows directly yet.
At the end of the boot-repair setup, it shows:




Boot successfully repaired.



You can now reboot your computer. Please do not forget to make your
BIOS boot on sda1/EFI/ubuntu/shimx64.efi file!



If your computer reboots directly into Windows, try to change the boot
order in your BIOS. If your BIOS does not allow to change the boot
order, change the default boot entry of the Windows bootloader. For
example you can boot into Windows, then type the following command in
an admin command prompt: bcdedit /set {bootmgr} path
EFIubuntushimx64.efi




I ran Powershell with adm rights on windows and run the command it gave me, but it said command specifications were not valid.



How can I fix my boot?


More From » boot

 Answers
5

After a couple of research I found out a solution:



sudo efibootmgr


Then check what was ubuntu boot number. In my case, it was 3, and for windows boot it was 1. (there were some other options for ubuntu and windows, but those two are the important ones)



Then type in a terminal:



sudo efibootmgr -o 3,1

[#22225] Wednesday, May 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
listeerrated

Total Points: 354
Total Questions: 112
Total Answers: 100

Location: Guam
Member since Fri, Jun 18, 2021
3 Years ago
;