Return-Path: Received: from v1.tansi.org (mail.tansi.org [84.19.178.47]) by mail.server123.net (Postfix) with ESMTP for ; Sun, 4 Feb 2018 17:46:56 +0100 (CET) Received: from gatewagner.dyndns.org (unknown [212.51.156.222]) by v1.tansi.org (Postfix) with ESMTPA id 7D5A714010B for ; Sun, 4 Feb 2018 17:46:54 +0100 (CET) Date: Sun, 4 Feb 2018 17:46:55 +0100 From: Arno Wagner Message-ID: <20180204164655.GA26958@tansi.org> References: <8d4a95d9-d034-9bc1-b6a0-681942a5afb8@gmail.com> <20180204120630.GG13685@h-174-65.A328.priv.bahnhof.se> <6404eb7d-4deb-3640-a05b-923c96382343@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6404eb7d-4deb-3640-a05b-923c96382343@gmail.com> Subject: Re: [dm-crypt] Open a LUKS container storing the operating system, with a header file in another location List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Sun, Feb 04, 2018 at 14:32:03 CET, 21naown@gmail.com wrote: [...] > I have an unencrypted boot partition with GRUB. My final goal is to have > this partition in a USB key, in the same partition or in another one than > the one where the header file will be stored, obviously unencrypted. > > I assume crypttab is embedded in initrd when I do “update-initramfs -u”, > because, among the errors I got, it showed me just after selecting the OS to > launch in GRUB “LUKS header “/boot/headerFile” missing”, which is the path I > put in crypttab. The Cryptsetup FAQ gives you more info about how to mount a LUKS volume from the initrd in Section 9: https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions I recommend you do away with crypttab, at least for the moment, and do a direct setup as described there. That will at least give you a better understanding of how things work. Regards, Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier