Dual boot - move control of boot from Manjaro to EOS

I have both, Manjaro and EOS on this computer and Manjaro is controlling the boot. Since I may soon nuke partition with Manjaro (flatpacks, no thank you), how do I move boot control to EOS? Other partitions are not that relevant, was just testing:

lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 vfat FAT32 6DA1-7470
├─sda2 ext4 1.0 MX21.Main 63cfca3b-a2ab-4ee1-96e4-620f01dc8172
├─sda3 ext4 1.0 DATA b5cb80f5-791e-40bb-a26d-63268006d8e0 527.7G 3% /run/media/mx/DATA
├─sda4 swap 1 cc1470d4-1c95-4099-a23e-f52f258418a9
├─sda5 ext4 1.0 ENDV.takp c5d713cb-8a6b-4049-a144-c9ff9cbf6b99 29.8G 32% /
├─sda6 ext4 1.0 MO.takp 85b4c0cb-29cb-41e7-bd2e-b6b4e094efdc
├─sda7 ext4 1.0 MX21.takp 24678105-3290-41dc-a0ca-a23d104d622f
├─sda8 ext4 1.0 MX21.book 217ca6b1-bcf9-4849-b19c-843f1d0c0f75
└─sda9 ext4 1.0 other bacb1f02-0625-4078-94cd-0d8e9918af91

System: Kernel: 5.15.6-arch2-1 x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: Xfce 4.16.0 Distro: EndeavourOS
base: Arch Linux
Machine: Type: Desktop System: Hewlett-Packard product: HP Compaq 6200 Pro MT PC v: N/A serial:
Mobo: Hewlett-Packard model: 1497 serial: UEFI: Hewlett-Packard v: J01 v02.15 date: 11/10/2011
Battery: Device-1: hidpp_battery_0 model: Logitech Wireless Mouse B330/M330/M331 charge: 55% (should be ignored)
status: Discharging
CPU: Info: Quad Core model: Intel Core i7-2600 bits: 64 type: MT MCP arch: Sandy Bridge rev: 7 cache: L2: 1024 KiB
flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 54300
Speed: 1622 MHz min/max: 1600/3800 MHz Core speeds (MHz): 1: 3791 2: 2088 3: 1697 4: 1801 5: 2476 6: 1950 7: 2113
8: 2123
Graphics: Device-1: AMD Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] vendor: Sapphire Limited driver: amdgpu
v: kernel bus-ID: 01:00.0
Display: x11 server: X.org 1.21.1.1 driver: loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa
resolution: <missing: xdpyinfo>
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel
v: kernel bus-ID: 00:1b.0
Device-2: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] vendor: Sapphire Limited
driver: snd_hda_intel v: kernel bus-ID: 01:00.1
Sound Server-1: ALSA v: k5.15.6-arch2-1 running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.40 running: no
Network: Device-1: Intel 82579LM Gigabit Network vendor: Hewlett-Packard driver: e1000e v: kernel port: f040 bus-ID: 00:19.0
IF: eno1 state: down mac:
Device-2: Intel 82540EM Gigabit Ethernet driver: e1000 v: kernel port: d000 bus-ID: 06:00.0
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac:
Drives: Local Storage: total: 931.51 GiB used: 34.14 GiB (3.7%)
ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB
Partition: ID-1: / size: 47.76 GiB used: 15.5 GiB (32.5%) fs: ext4 dev: /dev/sda5
Swap: Alert: No swap data was found.
Sensors: System Temperatures: cpu: 35.0 C mobo: N/A gpu: amdgpu temp: 55.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1073
Info: Processes: 231 Uptime: 1h 44m Memory: 7.72 GiB used: 1.9 GiB (24.6%) Init: systemd Compilers: gcc: 11.1.0
Packages: 914 Shell: Bash v: 5.1.12 inxi: 3.3.09

Have you tried booting into Endeavouros and make sure os-prober is installed and then update grub.

sudo grub-mkconfig -o /boot/grub/grub.cfg

If you don’t want Manjaro’s grub to be in control after then disable it in /etc/default/grub in Manjaro.

2 Likes

Thank you very much!

I have os-prober installed and I ran your command.
I will check /etc/default/grub on manjaro, after I read more about this, and learn first, what to do inside that folder. It is about time to start learning some of these things :wink:

When all is done, I will come back and mark it as solution.

Thanks again and happy holidays everyone

Just to confirm,

This is exactly the command that’s run by the update-grub wrapper script in Manjaro.

Isn’t this only needed for automatically detecting MS Windows?

1 Like

You asking this? :thinking:

Edit: os-prober is a command that lists other operating systems. It is used during installation and reconfiguration to create a GRUB boot menu that shows other installed OSes as well.

1 Like

Manage your boot order with efibootmgr.

You can remove the Manjaro efi boot entry and re-order so that the system boots using the EOS grub stub.

1 Like

Thank you!
I’m assuming I need to run this command from the system that controls the boot? Or it does not matter?

Isn’t it possible to just boot into UEFI settings and change the boot order to have EnOS at the top of the boot priority?

1 Like

Sure … and you can use efibootmgr to change a boot order too. Problem is if os-prober is installed on any of the other os and you booted in them and you happen to update grub it’s going to find the other os’s and add them to the boot order and also take over.

Edit: I have EOS triple boot and i am using rEFInd as a boot manager but they still use grub as i boot from rEFInd with grubx64.efi. So i have os-prober disabled so that it doesn’t add all the other os to each because i don’t want that. If i boot to another OS i do it from rEFInd not grub.

1 Like

As far as I know, os-prober won’t be changing the order of efi boot entries.

1 Like

No os-prober will detect other OS’s and add them to grub in which ever os you are booted in if you have os-prober installed and you update grub. So then it will become the master.

1 Like

I agree but I am not really sure about:

:slightly_smiling_face:

1 Like

Doesn’t work like that for me. Had a system with Manjaro and Arcolinux installed on the same ssd and it would always boot from Manjaro, as I selected in UEFI. Before that they were installed on a separate ssd, both had there own Grub and os-prober. Same result…

2 Likes

You’re talking about another Arch based distro that doesn’t properly set up grub. We had this issue with EOS too until @manuel reconfigured the tools to make it work.

2 Likes

Thank you for explaining. That will save me the hassle when I’ll install another distro alongside EOS.

1 Like

Manjaro always seems to play nice with others on the grub side anyway.

1 Like

Thats sarcasm right? I had no choice but to use Manjaro’s Grub or else it resulted in a kernel panic.

1 Like

No…that’s just always been my experience with it. I’ve not had issues with Manjaro working and booting other OS.

1 Like

Oh how times have changed. :roll_eyes:

1 Like

I’m not sure i understand?

1 Like