Can't boot FreeBSD 15 after installing over GhostBSD

A while ago I tried to install FreeBSD 15 with UI but couldn't get it to work, so I installed GhostBSD.

The environment is a Gigabyte Z790 Aorus Elite with two Samsung NVMe and two WD blues and one Samsung SSD.
A few days ago I installed FreeBSD 15 successfully, with all SATA connectors disconnected but for the NVMes. It worked and booted. However, when I reconnected the other three devices, it tried to boot into GhostBSD, freezing at the logo splash screen.

I set the MB secure boot off and also TPM. I also tried to have only the NVMe devices listed in the MB boot options, but this didn't stop the GhostBSD boot.

When I boot with all devices attached, I went into the boot prompt and listed a few items.

load_dev=zfs:zroot/ROOT/default:
loader_brand=ghostbsd
lsdev

disk0: 195352158 x 512 blocks
disk0p1: EFI
disk0p2: FreeBSD ZFS
disk0p3: FreeBSD swap
disk1: 195352158 x 512 blocks
disk1p1: EFI
disk1p2: FreeBSD ZFS
disk1p3: FreeBSD swap
disk2: 3707029168 x 512 blocks
disk3: 195352158 x 512 blocks
disk3p1: EFI
disk3p2: FreeBSD ZFS
disk4: 195352158 x 512 blocks
disk4p1: EFI
disk4p2: FreeBSD ZFS
http: (unknown)
net devices:
zfs devices:
zfs:zroot
zfs:zroot

When I connect only the NVMes and boot into FreeBSD:
gpart show
=> 40 1953525088 nda0 GPT (932G)
40 532480 1 efi (260M)
532520 2008 - free - (1.0M)
534528 1952989184 2 freebsd-zfs (931G)
1953523712 1416 - free - (708K)

=> 40 1953525088 nda1 GPT (932G)
40 532480 1 efi (260M)
532520 2008 - free - (1.0M)
534528 1952989184 2 freebsd-zfs (931G)
1953523712 1416 - free - (708K)

So disk0 and disk1 must be the WD disks and disk2 the Samsung SSD.

Can anyone help me get this straight? I am lost.
 
Check what you have with:
# efibootmgr -v
The entry made by GhostBSD probably is yet here, like ... File(\EFI\ghostbsd\BOOTX64.EFI).
If it is, you have to reorder the priorities, disable or delete this entry. See efibootmgr(8).
 
Back
Top