Re: cryptsetup align problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/25/2010 11:50 PM, Peter Smith wrote:
> I am trying to align a LUKS volume to 512K boundary. I calculate the
> --align-payload value like this:
> 
> (512*1024) / 512 = 1024
> 
> cryptsetup luksFormat --align-payload=1024 /dev/sda1
> 
> When i confirm the task with cryptsetup luksDump /dev/sda2 the Payload
> offset is set to 2048 which is 1024K?
> 
> What am i doing wrong?

Nothing, it works as expected. It is not fixed offset but req. alignment.

Using --align-payload=1024 means alignment to the nearest 512KiB boundary,
because the keyslots space requires more than 512KiB it aligns to next multiple
of it - i.e. 2048 sectors.

If you increase key size (thus keyslots size), it will probably switch to to 3072 etc.

Milan
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux