From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from v6.tansi.org (ns.km31936-01.keymachine.de [87.118.116.4]) by mail.server123.net (Postfix) with ESMTP for ; Wed, 30 Sep 2015 17:00:04 +0200 (CEST) Received: from gatewagner.dyndns.org (77-57-54-224.dclient.hispeed.ch [77.57.54.224]) by v6.tansi.org (Postfix) with ESMTPA id D2A8E20DC1FA for ; Wed, 30 Sep 2015 17:00:03 +0200 (CEST) Date: Wed, 30 Sep 2015 17:00:03 +0200 From: Arno Wagner Message-ID: <20150930150003.GA21363@tansi.org> References: <20150926071456.GA25267@manjaro.chello.hu> <20150926153823.GE14230@yeono.kjorling.se> <20150927110859.GA31821@manjaro.chello.hu> <20150927140814.GC13009@tansi.org> <20150927141533.GP14230@yeono.kjorling.se> <20150927161208.GA26184@manjaro.chello.hu> <20150927185554.GA15831@fritha.org> <20150927215010.GA2506@manjaro.chello.hu> <20150928201127.GA1669@fritha.org> <20150930121626.GA25001@manjaro.chello.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150930121626.GA25001@manjaro.chello.hu> Subject: Re: [dm-crypt] Basics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de You are using /dev/sdb1 as your keyfile. cryptsetup has a compiled-in size limit on keyfiles, which is per default 8kB. If /dev/sdb1 is larger, you get the error you observe. Regards, Arno On Wed, Sep 30, 2015 at 14:16:26 CEST, Mike Nagie wrote: > Why is this happening? I'm trying to create encrypted luks partition > with a keyfile. > > cryptsetup luksFormat /dev/sda2 /dev/sdb1 > > WARNING! > This will overwrite data on /dev/sda2 irrevocably. > > Are you sure? (Type uppercase yes): YES > Maximum keyfile size exceeded. > cryptsetup luksFormat /dev/sda2 /dev/sdb1 10.54s user 4.55s system 83% > cpu 18.1 > > (and sometimes: command failed with code 22 invalid argument) > > cryptsetup open --type luks /dev/sda2 home -d /dev/sdb1 > Maximum keyfile size exceeded. > cryptsetup open --type luks /dev/sda2 home -d /dev/sdb1 10.43s user > 4.64s system 99% cpu 15.103 total > -- > You are so lucky! > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt -- 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