Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 864 Bytes

freebsd-zfs-other-system.md

File metadata and controls

38 lines (30 loc) · 864 Bytes

Mount external ZFS pool

# Show info about a ZFS label ln a partition
# Debian install
doas zdb -l /dev/ada0p3 # debian ZFS on root
doas zdb -l /dev/nda0p4 # main FreeBSD ZFS on root
daos zdb -l /dev/ada1p3.eli # geli encrytped FreeBSD system

# List pools, and their IDs
doas zpool import

# Import pool under /mnt
doas zpool import -fR /mnt POOL_ID
# Prompt for encryption key
doas zfs load-key -L prompt zroot

# Check konwn pools status
doas zpool list

# Check available volumes
doas zfs list -r zrool

# Mount partitions
doas zfs mount zroot/ROOT/debian
doas zfs mount zroot/home

# Mount encrypted geli system
doas geli attach /dev/ada1p3
doas geli list
# Find proper pool ID in case there are duplicated names
doas zpool import
doas zpool import -fR /mnt POOL_ID

# Export the pool once no more used
doas zpool list
doas zpool export zroot