From owner-freebsd-questions@freebsd.org Sat Aug 27 17:17:47 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11999B772B2 for ; Sat, 27 Aug 2016 17:17:47 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-it0-f52.google.com (mail-it0-f52.google.com [209.85.214.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D83B5E19 for ; Sat, 27 Aug 2016 17:17:46 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-it0-f52.google.com with SMTP id d65so40717966ith.0 for ; Sat, 27 Aug 2016 10:17:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=yUhkjQmNj5SO+dX/lMLut53gxNm6iqE3LkQ1QqIMdtc=; b=QfNgY3WJx9Iis/PCP1M5KKsclrHO+uRPBPW2f2zXJbjath/q7XUXTySzgp4/+g2tEX wATsgrFxmEm1qYmNZhfdCiM1+Ls9IvVGCrrs2tMDSoJRfkVZOi/uAAcWH+Af3GxWURuX 25BTfVTDBokbiNY4z1cCRHigg7BNI83HWD6JM1I8R/rNM405pamR4bMQToZHMSraOU+m 5ZOzfAR3p3q0b8OEFiz/YT1bOd28YaKu6P+Td9Vu+sEnEM9jcAeTKWmjKsgXbgfKzkja vCqttSVaFjEtzsz1+KAD2ssvoBSK7B0hUoLr2di11AsOMhmYWCOxRAYjbC/Bw1vTWG6L 5DCQ== X-Gm-Message-State: AE9vXwPJTqFZSpTebjns2chcj/APsFH7CmcjxafZb4heCCFLXa5h2vKtn/gVehg752em/Q== X-Received: by 10.107.142.129 with SMTP id q123mr10574367iod.84.1472317876803; Sat, 27 Aug 2016 10:11:16 -0700 (PDT) Received: from WorkBox.Home.gmail.com (97-116-18-208.mpls.qwest.net. [97.116.18.208]) by smtp.gmail.com with ESMTPSA id g78sm1838079itb.12.2016.08.27.10.11.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Aug 2016 10:11:16 -0700 (PDT) References: <3cf460d4-9ebc-c473-a369-5b30f498176d@ohlste.in> User-agent: mu4e 0.9.16; emacs 24.5.1 From: Brandon J. Wandersee To: Magnus Ahriman Cc: "freebsd-questions\@freebsd.org" Subject: Re: How do I mount another system's zfs root partition on new system? In-reply-to: Date: Sat, 27 Aug 2016 12:11:16 -0500 Message-ID: <86r39annm3.fsf@WorkBox.Home> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2016 17:17:47 -0000 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 ----------------------------------