Hello!
I've managed to mess up my boot loader, after reboot I ran into "Missing boot loader" error message, and now I'd like some help to try and fix this.
My setup:
I'm using freebsd 12.1 (or maybe 12.2, not exactly sure - can figure out if it is important).
I used bsdinstall's guided ZFS setup. The pool is two mirrored disks, ada0 and ada2, using GPT and encrypted.
(copied by hand, so sorry for the off formatting; I'm assuming the block start/lengths aren't relevent so replaced them with dots.)
The error:
I think I caused this problem a few months ago when I ran
The problem:
Today I rebooted the machine and got the very simple message "Missing boot loader".
What I've tried (all from a live-usb):
1.
2.
3.
4.
There was no change with any of them except 2.; with boot1.efifat my motherboard at least detects ada0 as having a UEFI bootloader, but still gives the same error message.
I've been trying to figure out what
Would very much appreciate some help with figuring this out.
I've managed to mess up my boot loader, after reboot I ran into "Missing boot loader" error message, and now I'd like some help to try and fix this.
My setup:
I'm using freebsd 12.1 (or maybe 12.2, not exactly sure - can figure out if it is important).
I used bsdinstall's guided ZFS setup. The pool is two mirrored disks, ada0 and ada2, using GPT and encrypted.
gpart show ada0
gives something like (it is the same for both ada0 and ada2)
Code:
. . ada0 GPT (112G)
. . 1 efi (200M)
. . - free - (1.0M)
. . 2 freebsd-swap (6.0G)
. . 3 freebsd-zfs (106G)
. . - free - (452K)
The error:
I think I caused this problem a few months ago when I ran
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada{0,2}
, assuming then that it was the right thing to do. But this might not be the cause...The problem:
Today I rebooted the machine and got the very simple message "Missing boot loader".
What I've tried (all from a live-usb):
1.
gpart bootcode -p /boot/boot1.efi -i 1 ada0
2.
gpart bootcode -p /boot/boot1.efifat -i 1 ada0
3.
gpart bootcode -p /boot/gptbootzfs -i 1 ada0
4.
gpart bootcode -b /boot/pmbr -p /boot/gptbootzfs -i 1 ada0
There was no change with any of them except 2.; with boot1.efifat my motherboard at least detects ada0 as having a UEFI bootloader, but still gives the same error message.
I've been trying to figure out what
bsdinstall
actually does but no luck so far. I only have a basic grasp of the boot procedure, and this is really my first *nix system on UEFI.Would very much appreciate some help with figuring this out.