1

I created test LUKs container in a file, the luksDump says

MK bits: 256
Payload offset: 4096

implying that the header is 4096*512 = 2MiB
but the file produced by

cryptsetup luksHeaderBackup --header-backup-file header.backup /dev/loop0

is only 1052672 (1MiB + 4096)

Why ?

1

The payload start is rounded up for alignment purposes. How much can be controlled by providing the --align-payload option to luksFormat.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.