Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2018 22:05:19 +0800
From:      thor <thor@irk.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to disable GELI selectively?
Message-ID:  <51a1ff0e-a5ed-7f65-c405-cbf8cdfef150@irk.ru>
In-Reply-To: <99c15b36-0a38-38f7-8fa1-53009759d038@cyberleo.net>
References:  <07733d85-d212-8866-b3eb-56ee42340294@irk.ru> <99c15b36-0a38-38f7-8fa1-53009759d038@cyberleo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Not acceptable. It's necessary to keep the option of changing the drives 
and booting from the second one. It's formatted exactly as the first one 
just for this purpose.


On 06/26/18 21:23, CyberLeo Kitsana wrote:
> 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.
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51a1ff0e-a5ed-7f65-c405-cbf8cdfef150>