[dm-crypt] Creating dm-crypt target from the second sector?

Ondrej Kozina okozina at redhat.com
Fri Jan 5 11:40:23 CET 2018


On 01/05/2018 10:36 AM, Ondrej Kozina wrote:
> On 01/05/2018 10:09 AM, Lukáš Pohanka wrote:

Or, you can simply use cryptsetup for it. It'll be more user-friendly 
and do the device size calculations for you:

cryptsetup open --type plain --offset 1 --cipher aes-xts-plain64 
/dev/sdb1 my_crypt_device

Also depending what your use case is, i'd look for cryptsetup --skip 
option (aka IV offset).

in raw dm table, the IV offset position is right behind the key.

Hope it helped
O.


More information about the dm-crypt mailing list