I'm struggling to get a simple dual-boot setup where I have two independent drives without having to disconnect one of them when installing the second OS. In other words, I'd like each drive to have its own EFI partition and bootloader.
I thought I could do it by creating an EFI partition on my Ubuntu drive and selecting that partition as the bootloader location, but apparently that made no difference. Here's my situation, and whoever manages to help me fix this with the least amount of pain gets a cookie and my eternal gratitude:
HD 1: A Nvme drive with a Win11 installation - and of course an EFI partition with the windows boot loader.
HD 2: An empty SSD drive onto which I wanted to install Ubuntu using this image: ubuntu-22.04.2-desktop-amd64.iso
.
Expected behavior:
HD1 and Win11 installation are untouched, including the EFI partition.
HD2 has its own boot partition, along with the Ubuntu root
The system boots by default into Windows. If I want Ubuntu, I have to go to the BIOS and select it.
If I select the Ubuntu drive in the BIOS, I boot straight into Ubuntu (no possibility of selecting Windows after that)
What I did to try to achieve it:
Booted into the Ubuntu installer, created 2 partitions in HD2: a small EFI partition (formatted as FAT32) and a primary partition for root (formatted as ext4).
Selected the HD2 as the location of the boot loader.
Actual result:
Expectation #3 is fulfilled, but #1 and #2 are not. In fact, for god knows what reason Ubuntu's boot is in HD1, which means HD1's EFI partition has been modified, and I have a feeling that if I just format HD2 again I won't be able to boot into Windows again.
What now? How can I fix this mess in the simplest way possible? How can I move Ubuntu's boot stuff onto Ubuntu's drive? And how can I safely erase all trace of Ubuntu on the Windows drive?
And if you are feeling especially charitable/patient, could you care to explain how the behavior described makes sense? In what parallel dimension would one want two drives that have nothing to do with other so tightly coupled that one stops working without the other?
Thank you in advance!