loke, (edited ) FreeBSD help requested!
Long story short: I have an important system failing to boot, and I've already broke something, and I would really appreciate someone giving some suggestions before I break it even further.
So I have a home server running FreeBSD, with a zfs-root SSD and a separate zfs volume with some spinning disks keeping all the data.
All of a sudden, the machine went down and failed to reboot. I connected a monitor to it and it was stuck with an error saying it was unable to boot an operating system, pressing a key got me to the "OK" prompt, and waiting for a reboot got me into the bios config.
It's been a while (and one upgrade to FreeBSD 14) since I installed it, and booting from the FreeBSD installer and using
gpart
to check the partitions shows that I have both an EFI and afreebsd-boot
partition on there.I tried to reinstall the bootcode using:
gpart bootcode -p /boot/boot1.efi -i1 nda0<br></br>
But this did not change anything.
Then I thought that perhaps I was using BIOS and used that instead:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nda0<br></br>
Well,.that was a bad idea. Now nothing boots, and the drive doesn't even show up in the bios settings screen as a bootable drive anymore.
At this point I realise I'm flailing aimlessly and probably shouldn't touch the drive anymore.
I'm pretty sure the zfs root is still there, as I can see it if I do
zfs import
, but I haven't tried importing it after booting from the USB drive.