SATA Won't Boot From UEFI but USB Will

I’ve made a bootable SSD for Home Assistant that I was going to run on an old ASRockRack J1900 motherboard I had laying around. When the SSD is run off the SATA port, it’s not showing. When I take it out and put it in a USB enclosure it can boot under UEFI and it works.

In the bios I have SATA Controller → Enabled and the drive is detected.

I find it odd that there would be a UEFI option for USB but not SATA, but maybe that’s the case?

More than likely I’m missing something or messing something up. Ideas?

Some USB enclosures mess with disk offsets, like hiding the first 512B or 4kB… meaning if you did the disk format and OS install with that USB enclosure, then when you take it out things no longer work because the table data is in the wrong place. Only thing I know of to help, if that isn’t the case then good luck, but I do agree that having UEFI on USB but not Sata would be very weird.

Oh have you made sure the Sata is set to AHCI, not RAID, assuming that’s a thing in that motherboard?

Thanks for the reply.

It wasn’t formatted in the USB enclosure. It was formatted plugged into a SATA port. There is an option for AHCI and RAID and it’s set to AHCI.