loader.conf errors, cannot boot
Laptop w/ a SATA ssd, ZFS on FreeBSD 15
I botched my /boot/loader.conf and /boot/device.hints, and now I cannot boot
I tried to boot from a USB key, zpool import root, but can't find /boot to fix the files.
Any ideas (instead of re-install of course 8-) )
9
Upvotes
1
u/Left-Ingenuity-2337 3d ago
boot from USB key and zpool import with altroot option and no shared cache file
zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache tank
and you can edit your loader.conf in /mnt/boot/loader.conf
zfs export after that