[dm-crypt] cryptsetup luksFormat with the size option
rnicholsNOSPAM at comcast.net
Sun Feb 2 00:33:27 CET 2014
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.
More information about the dm-crypt