I already have Windows10 on SSD. I want to install Ubuntu 18.04 LTS on HDD. I made the partition and started to install it, it did not ask the location for installation and arranged it itself. But when I restart my laptop, windows started, the grub screen did not show up. How can I fix it?
1 Answer
From Windows 10 side
- Start Windows 10.
- Run
cmd
as Administrator. - type this command:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
- Restart and I hope You’ll be welcomed by the familiar Grub screen.
If the above entry didn’t change anything, you can reverse it using the command below:
bcdedit /deletevalue {bootmgr} path \EFI\ubuntu\grubx64.efi
Even if the above command didn’t work, try the command below to set the boot back to Windows.
bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
From live Ubuntu media (DVD or USB) side
- Insert or connect the Ubuntu live media (DVD or USB).
Find out how to boot your computer from removable media.
Note that there is a difference between booting of older computers (BIOS/MBR) and newer ones designed for Windows 8 and later releases (UEFI/GPT).
Reboot the computer from live media and choose Try Ubuntu when asked.
Connect to the internet, then open a terminal with Ctrl+Alt+t, paste the following commands and run them by pressing Enter:
sudo apt install software-properties-common; \ sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \ sudo apt-get update; \ sudo apt-get install -y boot-repair && boot-repair
Note: You copy and run them all at once. If you want to run them individually just remove the trailing "
; \
".That's it, the Boot-Repair window will appear!
Related:
-
1Excellent answer. I'd just add at the end to click "Recommended repair". Commented Apr 13, 2019 at 19:00
-
1ROTFL! I assumed your user name was a self-deprecating reference to being an old-timer. Then I checked out your home page. Glad a professional is supporting the professionals. Commented Apr 13, 2019 at 19:08
-
@fixer1234 Always happy to help and glad that did not disappoint!– slavaCommented Apr 13, 2019 at 19:13
-
Thank you for yout attention but bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi command did not work for me. I did not mentioned that i could not be able to boot on the first place. askubuntu.com/questions/1085550/… I tried second solution from the link. I can boot it after that but maybe my setup is completely wrong? Can you help me please? Commented Apr 13, 2019 at 19:43
-