From owner-freebsd-questions@freebsd.org Tue Jun 26 13:23:25 2018 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 B7E401026030 for ; Tue, 26 Jun 2018 13:23:25 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from mail.cyberleo.net (paka.cyberleo.net [216.226.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57A83701AF for ; Tue, 26 Jun 2018 13:23:25 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from [172.16.44.4] (vitani.den.cyberleo.net [216.80.73.130]) by mail.cyberleo.net (Postfix) with ESMTPSA id 36FA95980C; Tue, 26 Jun 2018 09:23:16 -0400 (EDT) Subject: Re: How to disable GELI selectively? To: thor , freebsd-questions@freebsd.org References: <07733d85-d212-8866-b3eb-56ee42340294@irk.ru> From: CyberLeo Kitsana Message-ID: <99c15b36-0a38-38f7-8fa1-53009759d038@cyberleo.net> Date: Tue, 26 Jun 2018 08:23:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <07733d85-d212-8866-b3eb-56ee42340294@irk.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 13:23:25 -0000 On 06/18/2018 11:19 AM, thor wrote: > Hello! > > Here I have a computer with 2 HDDs partitioned identically with GELI > encrypted root as in > https://forums.freebsd.org/threads/howto-full-disk-encryption-fast-way.19082/ > > > When I boot the computer it properly asks the passphrase for /dev/ada0p3 > and mounts /dev/ada0p3.eli as a root. > > Then, it asks "Enter passphrase for gptid...." which I don't want since > the second HDD should be attached manually when needed ONLY and all > other time it should be unmounted. I am to press enter enough times to > make me mad. > > I have found > https://lists.freebsd.org/pipermail/freebsd-stable/2012-July/068704.html > but it resolves the problem how to mount /dev/ada1p3.eli on boot but not > how not to mount it. > > kern.geom.eli.tries=0 makes geli not to ask for every passphrase > including /dev/ada0p3 and the boot correspondingly totally fails. > > What should I do? Try running geli configure -b on the root and geli configure -B on all the others. That should set resp. clear the BOOT flag that geli.ko uses to determine which geoms to attach at boot. See the documentation for the 'configure' command in geli(8) for more information. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Element9 Communications http://www.Element9.net Furry Peace! - http://www.fur.com/peace/