ZFS Recovering from "set mountpoint=/"

I created a new partition and then mistakenly ran:
Code:
zfs set mountpoint=/ zroot/tobedeleted

The result? There's an empty root directory.

I booted from a FreeBSD iso image. But when I mount the drive, I'm back to the same place, with an empty root.

How can I undo this,(either by change the mountpoint or removing the partiion)?
 
Sorry for bothering everyone. The answer is in the zpool import man page.

The steps are:
1. Boot from CD/DVD image into Single user mode.
2. Import the pool without the filesystems using:
Code:
zpool import -N zroot
3. Repair the mount. In my case, I moved it somewhere safe:
Code:
zfs set mountpoint=/var/tmp/tobedeleted zroot/tobedeleted
4. reboot
 
Back
Top