From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vFI-wtmjKAaP for ; Sun, 2 Feb 2014 00:33:42 +0100 (CET) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sun, 2 Feb 2014 00:33:41 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W9k4B-0003uD-K9 for dm-crypt@saout.de; Sun, 02 Feb 2014 00:33:39 +0100 Received: from c-98-227-220-190.hsd1.il.comcast.net ([98.227.220.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Feb 2014 00:33:39 +0100 Received: from rnicholsNOSPAM by c-98-227-220-190.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Feb 2014 00:33:39 +0100 From: Robert Nichols Date: Sat, 01 Feb 2014 17:33:27 -0600 Message-ID: References: <52ED5E0B.3090300@mthode.org> <20140201213444.GA6778@tansi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <20140201213444.GA6778@tansi.org> Subject: Re: [dm-crypt] cryptsetup luksFormat with the size option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 02/01/2014 03:34 PM, Arno Wagner wrote: > On Sat, Feb 01, 2014 at 21:50:19 CET, Matthew Thode wrote: >> Am I correct in stating that setting --size=8 will make the sectors 4k >> in size? Also, how can I check what existing luks volumes are set to? >> >> -- >> -- Matthew Thode >> > > No, you are not. As the man-page clearly states, this sets the > size of the underlying device as multiple of 512B sectors. I submit that for the luksFormat action, the --size option does _nothing_! The size is not recorded in the LUKS header, and luksFormat does not open the encrypted device, so there is neither a temporary nor a persistent effect from that option. In fact, there is not even a check that the requested size is within the limits of the underlying device. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.