how to repair zfs boot

FreeBSD 15 on a laptop with a sata SSD.
I modified /boot/loader.conf and /boot/device.hints. Hum, certainly made bad configs..
Now I cannot boot. The SSD is ZFS
With a USB FreeBSD key, I boot and make a "zpool import <id>" and I see all zfs sets, but where is /boot ???
How can I correct these 2 files and reboot?
 
Does the loader(8) menu still show when you boot the system?

Drop to loader prompt and:
Code:
load /boot/kernel/kernel
load /boot/kernel/zfs.ko
boot -s
That should boot it in single user mode, from there you can fix /boot/loader.conf and /boot/device.hints.
 
In case you want to use the USB installer nevertheless:
With a USB FreeBSD key, I boot and make a "zpool import <id>" and I see all zfs sets, but where is /boot ???
/boot is part of the root (/) mounted dataset [1], you need to mount the dataset to access it. The root dataset isn't mounted by the zpool-import(8) command in a default, menu guided installation. Assuming pool name is "zroot" and root dataset is "default" (modify if necessary):
Code:
# zfs  mount  zroot/ROOT/default

[1]
Code:
% zfs list -o name,mountpoint zroot-le15/ROOT/default
NAME                   MOUNTPOINT
zroot/ROOT/default     /
 
Back
Top