After installing Ubuntu on an external SSD, it asks to restart. When I do, it asks me to remove the installation media (the USB) that I installed linux with. After I do this and press enter, it skips booting from the SSD and boots windows instead. I have made sure the boot order prioritises the SSD over windows. I have tried with 2 different laptops. Both have secure boot disable and fast boot disabled. Both have the boot order prioritising the SSD. The first computer, an HP, does not detect the SSD when I try to select a disk to boot from. The second computer, an Acer, does see it in the bios but does not boot from it (it just skips it and moves onto windows).
The HP laptop doesn't have an option for AHCI. The Acer does, and it is enabled.
GParted can see the partitions of the SSD, and the first one (512MB) has the boot and esp flags. I can access the file system of the SSD, and it shows the default folders.
Any thoughts?
Specific information:
Version of ubuntu: 22.04 LTS https://ubuntu.com/download/desktop The second computer is an Acer i7-3537u, 2.0ghz, 4GB memory, 500TB HDD, with USB 3.0 and a nvidia geforce graphics card. Windows is installed on the HDD (I do not want to touch this HDD).