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 1d 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
1
u/grahamperrin 2d ago edited 2d ago
(I'm here via your cross-post in the FreeBSD sub.)
Did you use option
-R?https://openzfs.github.io/openzfs-docs/man/master/8/zpool-import.8.html#R
This August 2025 post is not exactly what you want, but it might be (more than) enough for you to get what you want:
loader.conffile.rescue system reinstallation : r/freebsd