[dm-crypt] Detached header offset

Robert Nichols rnicholsNOSPAM at comcast.net
Thu Apr 13 15:21:47 CEST 2017

On 04/13/2017 05:18 AM, 7heo wrote:
> So is there a way to place a detached header arbitrarily on a disk, and not at the start of a partition?

It's not supported within cryptsetup, but you can always use "losetup" to create a loop device starting at the needed offset and then specify that loop device as the detached header:

     Loopdev=$(losetup -f --show -o 65536 /dev/{whatever}
     cryptsetup luksOpen --header $Loopdev ...
     losetup -d $Loopdev

Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

More information about the dm-crypt mailing list