I have a theoretical question about multi-booting in UEFI mode. I have Manjaro 20.2.1 installed alongside Ubuntu 20.04. Because Manjaro was installed later. Grub menu is configured by Manjaro. I want to give the control back to Ubuntu. I understand UEFI partition.
I tried to look in the internet. I found some commands:
- update-grub
- grub-install
I know partially about them only. The first one to update /etc/default/grub into actual grub. The second one to install a grub (for managing boot)
I also found some files and folder:
- /boot/EFI (UEFI partition)
- /boot/grub (corresponding os partition)
- /etc/default/grub (cfg file to change grub option)
What I want to know?
What are the contribution of the commands and files/folders. What they actually do?
How to change the OS that would controls grub? (in my case from manjaro to ubuntu)
Thanks in advance ! :)
sudo efibootmgr -v
And you can change boot order with efibootmgr. See.man efibootmgr
and http://askubuntu.com/questions/485261/change-boot-order-using-efibootmgr Grub install uses efibootmgr to set boot order. – oldfred Jan 26 '21 at 15:51sudo update-grub
add manjaro? If LVM or other type install, you need to mount it first. If not copy a manjoro boot stanza into 40_custom.sudo nano -B /etc/grub.d/40_custom
& see menu at bottom for commands. Then do:sudo update-grub
– oldfred Jan 26 '21 at 16:05