I performed a clean installation of Ubuntu 20.04 LTS on my PC in the dual boot configuration using UEFI mode. I used the "Something else..." option during disk selection and followed this tutorial, How to use manual partitioning during installation?, on how to do it.
Windows is installed on a separate SSD. Installation was successful, but after a restart the PC didn't boot and I was not able to access BIOS/UEFI. After clearing the CMOS, and setting the boot order manually to use Ubuntu, GRUB was showing both operating systems and Ubuntu worked normally.
However, after each restart, I have to reset BIOS settings and set boot order for PC to boot at all.
- I disabled secure boot in UEFI and disabled fast boot in Windows.
- I already tried reinstalling Ubuntu 3 times, but each time I had similar problems.
- I also tried using Boot-Repair tool, but it didn't help,
I have an MSI X570 ACE motherboard and Nvidia RTX 2070 SUPER GPU.
This Boot-info summary report was generated after another reinstall, where I tried using different partitioning schema using this tutorial: Dual Boot Windows 10 and Linux Ubuntu on Separate Hard Drives.
I had to set this boot order, so that I would be able to boot using Ubuntu from a USB drive. I did not update either SSD firmware or UEFI. I installed nVidia drivers by clicking install additional drivers during OS installation. I set swap partition as big because i have 32GB of RAM, and I read that it is supposed to be bigger that my memory size. When I set boot order in a way you describe I am able to boot to Ubuntu and everything works flawlessly, but after reboot I am not able to do anything and have to reset BIOS settings to use my PC.
I performed a reset with the Ubuntu power-off option. When I booted Windows from GRUB everything worked well, so what is causing the issue is the booting of Ubuntu itself. I tried finding "fast boot" in MSI UEFI but I did not find it anywhere. According to this Polish website (there is also a screenshot included), there is no fast boot option in MB for Ryzen CPUs. I was thinking about trying to install a different distro and checking if it would work properly.
What else could I do?
sudo efibootmgr -o 4,3,5,6
If efibootmgr does not work use your UEFI settings tab and change boot order (not UEFI boot menu). Have you updated UEFI? Updated SSD firmware? Did you install nVidia drivers as part of Ubuntu install? You need those from Ubuntu repository. See alsoman efibootmgr
and askubuntu.com/questions/485261/… Installer now uses swap file, so swap partition not required, but will be used if you have one. And swap does not need to be that large.bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
undo:bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
Grub only boots working Windows, have Windows repair flash drive.