From owner-freebsd-questions@freebsd.org Sat Mar 2 18:39:20 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E31315087E4 for ; Sat, 2 Mar 2019 18:39:20 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.holgerdanske.com", Issuer "www.holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 71388748E6 for ; Sat, 2 Mar 2019 18:39:19 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 2 Mar 2019 10:39:16 -0800 Subject: Re: Moving raw system image to another drive breaks GELI To: freebsd-questions@freebsd.org References: From: David Christensen Message-ID: Date: Sat, 2 Mar 2019 10:39:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 18:39:20 -0000 On 2/26/19 10:00 AM, David Christensen wrote: > I have a computer: > > 2019-02-26 09:50:14 dpchrist@ragnar ~ > $ freebsd-version ; uname -a > 11.2-RELEASE-p9 > FreeBSD ragnar 11.2-RELEASE-p9 FreeBSD 11.2-RELEASE-p9 #0: Tue Feb  5 > 15:30:36 UTC 2019 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64 > > > I installed to a SanDisk Ultra Fit USB 3.0 16 GB flash drive: > >       Partitioning                      Auto (ZFS) >         Pool Type/Disks                 stripe,da0 >         Pool Name                       zroot >         Force 4K Sectors                YES >         Encrypt Disks                   YES >         Partition Scheme                MBR (BIOS) >         Swap Size                       2g >         Mirror Swap                     NO >         Encrypt Swap                    YES >         Install > > > If I do a raw binary copy of the USB flash drive to a Intel 520 Series > SSD 60 GB with dd(1) and boot the SSD, GELI rejects the passphrase and I > end up at a "mountroot>" prompt. > > > I would like to be able to move raw FreeBSD system images from drive to > drive and have them work. If I insert another USB flash drive such that the device node of the system drive changes, GELI breaks (refuses to accept the passphrase). So, it appears that GELI requires the device node name when created and the device node name when later opened to match (?). Is this a bug or a feature? Can I disable it? David