Re: SSD dm-crypt partition alignment

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

 



> Hi.
>
>
> Unfortunately this is still rather black magic to me,.. especially when
> one combines LVM/MD/partitons and perhaps even the striping options in
> ext-filesystems.
>
> But AFAIK, if you just want to use _LUKS_ (guess this does not work with
> plain dm-crypt devices) on partitions, and if you use a recent enough
> kernel (IIRC it was 2.6.34) and recent enough cryptsetup (IIRC 1.1.3)
> then the alignment should happen automatically.
>
> The payload offset in the LUKS header is simply set accordingly.
>
> So AFAIK you shouldn't need to use "-H 32 -S 32"...
>
>
> Any better experts,... please correct me if I'm wrong.
>
>
> Cheers,
> Chris.

Hi

I agree with you on that. I have spent weeks investigating this, but
without finding any clear answers.

So far i am pretty clear on that i need to align the partitions to EBS
(erase block size). The EBS on Intel X25-M SSD is thought to be 512
KiB. By running fdisk with the parameters -H 32 -S 32 the partitions i
create will automatically be 512 KiB aligned. Everything would be fine
now, if i did not need to encrypt the drive, but because this is a
laptop used for work it is a demand.

We are using the newest Ubuntu LTS therefore cryptsetup and the Linux
kernel are not supporting automatic alignment. If i try to configure
LUKS without LVM through partman with everything default and then dump
the LUKS header, the "Payload offset" is configured to 2056, but i do
not know if this is fine or not?


Peter
_______________________________________________
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