I want to install Windows 10 on Drive 1 and Ubuntu/Suse Leap on Drive 2. Drive 2, an add-on, is much larger than Drive 1. I don't need to preserve anything from my current system.
So I repartitioned Drive 1 as GPT and did a clean install of Windows 10 on Drive 1. I had Windows 10 running perfectly, though somehow the EFI partition ended up on Drive 2. I next tried to install Ubuntu 22.04. The installation first aborted because it needed an EFI partition. I was able to fix that, but now grub-install aborts with "failed to get canonical path of `udev'". How can I get past this?
I don't mind throwing away installations as long as I can get the right end-result.
Update 1: A big part of the problem was something in the HP BIOS. Unfortunately the main pointer to information on the HP BIOS, which I've been sent to several times, is both incomplete and badly out of date to the extent of being totally useless.
But casting about more or less blindly I managed to repair the BIOS and now Ubuntu is mostly working. I don't dare to investigate more thoroughly for fear of screwing it up again.