boot from mountroot

My freebsd 13.2 desktop crashed a while ago, I tried boot-repair which went wrong, I kept the drive with its data in cold storage for quite a while. When I try recovery again now, after a long time, freebsd gets to mountroot prompt, ? showed
gpt/zfs0, ada1, ada0, gpt/swap0, gt/gptboot0, gpt/efiboot0, nvd0p1-4, nvd0
(soon after the crash I tried boot-repair and it went wrong !)


fsck -y
mount -u /
mount -a -t ufs
swapon -a


as given in

From a ubuntu desktop I see the nvme drive icon with the name zroot, but the zpool could not be imported.


zpool import -f


pool: zroot
id: 17885777953876293356
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:

zroot ONLINE
nvme0n1 ONLINE


Is there something that I could do from a memstick freebsd? How do I get to the installed freebsd on the nvme drive from the memstick? What
chroot
commands or other commands that I may type? I wish to save the data in the nvme drive before I reinstall. Please help. Thank you.
 
Last edited:
If it worked, I am unable to mount the zpool and examine and recover data. What are the steps that I need to follow?

Thanks
Code:
buntu@ubuntu:~$ sudo zpool import zroot
cannot import 'zroot': pool was previously in use from another system.
Last accessed by <unknown> (hostid=0) at Thu Oct 27 02:37:17 2022
The pool can be imported, use 'zpool import -f' to import the pool.
ubuntu@ubuntu:~$ sudo zpool import zroot -f
cannot import 'zroot': no such pool or dataset
    Destroy and re-create the pool from
    a backup source.
ubuntu@ubuntu:~$ sudo zpool import nvme0n1
cannot import 'nvme0n1': no such pool available
ubuntu@ubuntu:~$ sudo zpool import disk-by-id/17885777953876293356
cannot import 'disk-by-id/17885777953876293356': no such pool available
 
I have installed freebsd 14.0 in a hard disk to connect the nvme drive and check the freebsd partitions

Is there a way to attach the nvme zfs pools to this new hard disk installation?

Thanks
 
Back
Top