Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2016 12:11:16 -0500
From:      Brandon J. Wandersee <brandon.wandersee@gmail.com>
To:        Magnus Ahriman <magnus.ahriman@gmail.com>
Cc:        "freebsd-questions\@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: How do I mount another system's zfs root partition on new system?
Message-ID:  <86r39annm3.fsf@WorkBox.Home>
In-Reply-To: <CAM4nNt-VevT2d7cyq05kEqDaAFq8BBuJBR%2BP6%2Bgn-gQu=FYBXg@mail.gmail.com>
References:  <CAM4nNt8Aivpauh5ZtChBYLAo1R_2aMiQrOJq6o82-sPpCXS-2g@mail.gmail.com> <3cf460d4-9ebc-c473-a369-5b30f498176d@ohlste.in> <CAM4nNt-VevT2d7cyq05kEqDaAFq8BBuJBR%2BP6%2Bgn-gQu=FYBXg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Magnus Ahriman writes:

>>> The root partition was encrypted, will I be asked to enter password upon
>>> mounting it?
>>
>> I would think so.
>>

> Thanks! I managed to RTFM and google the question, but the disk seems
> broken as it only shows bootpool as available for import.

zpool(8) doesn't handle encryption, geli(8) does. The password prompt
you see during boot is not triggered by the mounting of the pool: your
boot process is configured (via /boot/loader.conf) to attempt to decrypt
the partition(s) with geli(8) during boot. The mounting of the ZFS pool
is handled by ZFS later in the boot process, after the partition is
decrypted.

You need to unlock the drive manually. The Handbook has the relevant
info on that. If you used the automatic root-on-ZFS option in the
FreeBSD installer then unlocking the unlocking of root partition during
boot was configured for you automatically. You'll need to import/mount
"bootpool," take a look at the options set in /boot/loader.conf on that
pool, and then feed them to `geli attach`to unlock the partition. Then
you can mount the pool using the command Jim gave you.

-- 
::  Brandon J. Wandersee
::  brandon.wandersee@gmail.com
::  --------------------------------------------------
::  'The best design is as little design as possible.'
::  --- Dieter Rams ----------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86r39annm3.fsf>