Hi guys.
If i accidentally removed all root (rm -f ${EMPTYVAR}/) on my VM, is it possible to boot another BE?
Now I only have boot: prompt, that's it and ? shows subdirs on root. VM was installed using BIOS+GPT, no checkpoints, only BEs.
Regards.
Normally, you can choose a boot environment from the loader's menu. However, the loader is gone together with the files comprising its menu. That's why you are getting that boot: prompt which should be coming from gptzfsboot(8).
What you can try is:
At the boot: prompt enter the path to the loader from an alternative boot environment as described in gptzfsboot(8). Maybe this won't work because the loader will then try to load various files from the default boot environment where those files are missing.
Boot from an install medium in Live CD mode and after importing the zroot pool change the active boot environment with a command like zpool set bootfs=zroot/ROOT/alternative-boot-environment zroot.
On livecd you first import zpool: zpool import -fa -R /tmp/cd
and then everything worked exactly as you said, thanx JordanG !
And all of a sudden I managed to restore my lost data, it was a surprise.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.