Hi,
I have installed FreeBSD 13 and everything went well, including booting. But after one failed shutdown (by failed shutdown I meant it's waiting for something and I cut off the power after a long time), it never boot.
I use efi, and FreeBSD is installed in a separate SSD. I used to be able to set that SSD as the first boot option. It worked until the failed shutdown. I think for some reason the efi system is corrupted.
I have no clue what I can do to restore the efi system. So I hope to get some guidelines how to recover it and be able to boot from the SSD again.
Below is my current situation and the system information.
1. How do I boot into FreeBSD now.
I have Gentoo Linux installed in a different SSD and that uses GRUB. I add an entry in the GRUB configuration and set that SSD as the first boot option. I don't like that because once I complete remove or repurpose that SSD, I won't be able to boot FreeBSD. The entry in GRUB in case that helps is
2. I'm using 64 bit FreeBSD 13-RELEASE-p4
3. My partition is
4. The contents in EFI file system
5. efibootmgr doesn't work properly too
Please let me know if I didn't provide any information. I don't find anything obvious wrong from my investigation. If anybody knows what direction I can continue investigate, please let me know. Thanks so much.
I have installed FreeBSD 13 and everything went well, including booting. But after one failed shutdown (by failed shutdown I meant it's waiting for something and I cut off the power after a long time), it never boot.
I use efi, and FreeBSD is installed in a separate SSD. I used to be able to set that SSD as the first boot option. It worked until the failed shutdown. I think for some reason the efi system is corrupted.
I have no clue what I can do to restore the efi system. So I hope to get some guidelines how to recover it and be able to boot from the SSD again.
Below is my current situation and the system information.
1. How do I boot into FreeBSD now.
I have Gentoo Linux installed in a different SSD and that uses GRUB. I add an entry in the GRUB configuration and set that SSD as the first boot option. I don't like that because once I complete remove or repurpose that SSD, I won't be able to boot FreeBSD. The entry in GRUB in case that helps is
Code:
menuentry "FreeBSD load kernel" {
savedefault
insmod ufs2
insmod part_gpt
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 61d236690097e4d2
kfreebsd /boot/loader
}
2. I'm using 64 bit FreeBSD 13-RELEASE-p4
3. My partition is
Code:
~ $ sudo gpart show /dev/ada0
=> 2048 1000213135 ada0 GPT (477G)
2048 532480 1 efi (260M)
534528 104857600 2 freebsd-ufs (50G)
105392128 67108864 3 freebsd-swap (32G)
172500992 167772160 4 freebsd-ufs (80G)
340273152 209715200 5 freebsd-ufs (100G)
549988352 450226831 6 freebsd-ufs (215G)
Code:
~ $ ls -l /boot/efi/efi/*
/boot/efi/efi/boot:
total 875
-rwxr-xr-x 1 root wheel 896000 Jan 2 23:36 bootx64.efi
/boot/efi/efi/freebsd:
total 875
-rwxr-xr-x 1 root wheel 896000 Jan 2 23:36 loader.efi
Code:
~ $ sudo efibootmgr
efibootmgr: efi variables not supported on this system. root? kldload efirt?
~ $ sudo kldload efirt
kldload: can't load efirt: module already loaded or in kernel
Please let me know if I didn't provide any information. I don't find anything obvious wrong from my investigation. If anybody knows what direction I can continue investigate, please let me know. Thanks so much.