2 SSDs and 2 OSs

I have 2 SSDs in my laptop. On 1 have EndeavourOS as my daily driver, and on the other I want to install CachyOS. So, this is a different, separated dual boot rather than have 2 OSs on the same drive.

During the boot process I want to be able to choose which OS will be booted into, rather than open the BIOS and change the boot order.

From what I have read, CachyOS’s installer may overwrite the EndeavourOS EFI partition and bootloader entries, potentially removing access to EndeavourOS if it uses systemd-boot, which it does in my case.

So, is there a way to get the choice between EOS and COS without have to dive into the BIOS each time?

The easiest way is to let them share an EFI partition and then use one bootloader to chainload the other.

1 Like

Seems logical alright. Making them share an EFI partition means during Cachy’s installation I have to manually create partitions, one of which will be an EFI partition, for which I choose EOS’s EFI partition. Correct?

Calamares should always try to re-use your existing ESP, even when you use automatic partitioning unless Cachy has done some customization there. You can easily check that, it will show you that in the partition module before it has taken any action.

Just boot off the Cachy ISO and see what it wants to do.

1 Like

OK, can’t get it any easier. But will Cachy try that even though it is being installed on a different drive?

How does one set that up?

It should, yes. That being said, it is easy enough to test without hurting anything. Just look at which ESP the installer is pointing to.

Which bootloader do you want to use as the primary?

That’s may not actually be the case with CachyOS.

I just did this with CachyOS and Void linux. When you install CachyOS, select rEFInd as the boot manager you want to install. It’s the first question on their installer. The installation should proceed, and rEFInd will find your EndeavourOS installation as well as become the default boot loader. When you reboot, you will be greeted by the rEFInd screen and can select your OS (via keyboard arrow keys, no mouse in default config but that can be added).

Read through the CachyOS installation wiki for details

I was using CachyOS and Void on separate drives for about 2 weeks without issues.

1 Like

Refind can’t find our kernels. It doesn’t support kernel-install.

You would need to chainload.

1 Like

Good to know, thanks.

As it is new and I have to familiarize myself with, I want to have Cachy as my primary.

I believe that refind will find systemd-boot automatically. If it doesn’t, you can add a manual stanza in refind.

Alternatively, you can do the opposite. Add a manual entry in systemd-boot to refind.

I suppose you could also do both and then you could loop back and forth between bootloaders for fun. :cowboy_hat_face:

Thanks for suggesting that. Reading thru the wiki, it makes perfect sense to go that route.

Does cachyos support systemd-boot still?

Because if it does, that would just work completely seamlessly without you having to do anything.

Yep! To quote from the Cachy wiki:

Systemd-boot is the recommended and default boot manager for CachyOS.

What do you mean by that? No need for rEFInd?

Yeah, if you install systemd-boot into the same ESP, it will “just work”.

That is the beauty of systemd-boot, there is no detection. Each OS writes and maintains it’s own entries in a single bootloader. It will probably overwrite the EOS systemd-boot with the Cachy version but it doesn’t really matter. You will not notice the difference since systemd-boot is basically all the same. It just reads the entries in loader/entries and both OSes will write their entries to the same place.

1 Like

When I boot up the computer, will both OSes be shown as options to be chosen from, and if I at that point I sit back and don’t make a choice it will boot into the primary OS which will then be CachyOS?

Yes

You may need to set CachyOS as the default in loader/loader.conf unless CachyOS already is the default(Which it might be due CachyOS being lower alphabetically)

Many thanks for your help. I am going to try to do this, and will let you know how I fare, which might also be useful for others too who are considering a 2-drive dual boot.

1 Like

@dalto I have been able to successfully install CachyOS on the other SSD. I did, however, install it with the rEFIned boot loader because I did not like the idea of COS overwriting the EOS boot.

The issue I am faced with now is that when I boot up, the regular EOS boot loader is shown with only EOS as an “option”. I cannot change the boot loading sequence in my BIOS so it shows Refined with the 2 options EOS and COS.

But in the BIOS there is a so-called BBS Menu, which shows both EOS and Refined. If I click on Refined it opens it up, and sure enough both EOS and COS are shown as options. Clicking on EOS boots to EOS, clicking on COS boots to COS. Like I indicated, I cannot get it to make Refined the primary boot loader.

Someone has suggested to me to remove the boot flag from EOS’s EFI partition. That way, when I fire up my computer, only Refined will be detected and thus presented. What is your take on that?

Also, what about the ESP flag?

My take is…no.

Use efibootmgr to set the default you want.

I tried that, 1st by listing the boot entries with sudo efibootmgr -v, which listed:

  • BootOrder: 0000,0005,0001
    Boot0000* Linux Boot Manager HD(1,GPT,e9a22f70-9ae4-4f37-bd27-b64de1d8fb7a,0x1000,0x200000)/\EFI\systemd\systemd-bootx64.efi
  • Boot0001* rEFInd Boot Manager HD(1,GPT,ec72156e-e8b8-425a-b981-59908e757d85,0x1000,0x400000)/\EFI\refind\refind_x64.efi
  • Boot0005* UEFI OS HD(1,GPT,e9a22f70-9ae4-4f37-bd27-b64de1d8fb7a,0x1000,0x200000)/\EFI\BOOT\BOOTX64.EFI0000424f

Then I tried to change the boot order by typing sudo efibootmgr -o 0001,0000,0005, which seems to change the boot order. But when I reboot, it is EOS again that launches, and sudo efibootmgr -v shows that 0000 is still the primary.

What is it you don’t like about removing EOS’s EFI partition boot and/or esp flags?