diff options
author | Ondrej Kozina <okozina@redhat.com> | 2021-02-05 18:13:26 +0100 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2021-03-24 16:14:35 +0100 |
commit | 8d0e90b90a5dd1b01ca73e10b5525d50cb2eb77e (patch) | |
tree | deb4aa758064ac3578354cec9ae7e27315bedeb2 /man | |
parent | 1aeb0a1f6ea175331ba60a7d16b9d1b2f490cb35 (diff) | |
download | cryptsetup-8d0e90b90a5dd1b01ca73e10b5525d50cb2eb77e.tar.gz |
Autodetect optimal encryption sector size on LUKS2 format.
Diffstat (limited to 'man')
-rw-r--r-- | man/cryptsetup.8 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/man/cryptsetup.8 b/man/cryptsetup.8 index 3b249643..05ee1b7a 100644 --- a/man/cryptsetup.8 +++ b/man/cryptsetup.8 @@ -1328,8 +1328,15 @@ action asks for passphrase to proceed further. .TP .B "\-\-sector\-size <bytes>" Set sector size for use with disk encryption. It must be power of two -and in range 512 - 4096 bytes. The default is 512 bytes sectors. -This option is available only in the LUKS2 mode. +and in range 512 - 4096 bytes. This option is available only in the LUKS2 +or plain modes. + +The default for plain mode is 512 bytes. For LUKS2 devices it's established +during luksFormat operation based on parameters provided by underlying data device. +For native 4K block devices it's 4096 bytes. For 4K/512e (4K physical sector size +with 512 bytes emulation) it's 4096 bytes. For drives reporting only 512 bytes +block size it remains 512 bytes. If data device is regular file put in filesystem +it's 4096 bytes. Note that if sector size is higher than underlying device hardware sector and there is not integrity protection that uses data journal, using |