mountroot error

Hi forum
I'm very unfamiliar with zfs.
Please, what is the-right-way to recover from this error ?
Using FreeBSD 14.2.
Yes, backup does exist if any reinstall is needed.
Thx too for any tips or clues.

Screenshot_20250114_082755.png
 
Hi. Do you have mountroot property set in your /boot/loader.conf? Or do you have bootfs option setup on your zfs pool? You can boot from a live USB media and try mounting the system partitions then check them or maybe fix it.
 
Hi. Do you have mountroot property set in your /boot/loader.conf? Or do you have bootfs option setup on your zfs pool? You can boot from a live USB media and try mounting the system partitions then check them or maybe fix it.
How do I check ? Not sure how to know that when I can't bootup. :(
Also, this system was working nicely for a while, but today when I power on, it borks as above.
Perhaps hardware error, but the boot drive is a new SSD. Strange.
Yes, I'll try booting from a live USB.
Is it simple to mount zfs system partitions when everything starts with zroot ? (I'm much more familiar with old skool ufs.)
 
After booting to live medium, skip installer menu and choose a option like "shell" or "live system", then you should drop into tty. Make /mnt tmpfs so that you can mount filesystems under /mnt.

# mount -o size=100m -t tmpfs tmpfs /mnt

Now mount your zfs pool using it's name under /mnt.

# zpool import -fR /mnt/mypool mypool

If that doesn't work for you, i.e. you can't find files you are looking for, try this:

# mount -t zfs mypool/ROOT/default /mnt

Then check /boot/loader.conf with ee or vi text editors.

You can check the bootfs property of zfs pool with this command below.

# zpool get bootfs mypool. For example, i have set this to this below, i don't have mountroot set in my /boot/loader.conf.

# zpool set bootfs=zroot/ROOT/default zroot.

Good luck, I gotta go, it's 2:30 AM here. I hope there isn't a physical damage.
 
nxjoseph thanks for reply and suggestions.
Unfortunately I don't have any "live medium" on a usb device.
I only have the FreeBSD installation iso on a usb stick, which of course contains an immutable iso9660 filesystem.
Do I need to create my own "live medium" on another usb stick (with zfs filesystem) before trying the steps outlined above ?
 
Back
Top