1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-01 14:37:46 +02:00

linux: improved luks encryption parameters

This commit is contained in:
tiyn 2025-02-23 02:26:38 +01:00
parent d94a6b9b7e
commit 8faf4bc4ec
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ The right partition has the label `Linux filesystem`.
For this guide this partition is assumed to be `/dev/sda2`.
```sh
cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2
cryptsetup -c aes-xts-plain -s 512 -y -v luksFormat /dev/sda2
```
Afterwards confirm with `YES`.
Now you can assign a passphrase.

View File

@ -7,7 +7,7 @@ DM-Crypt can create and manage encrypted devices.
### Creating an Encrypted Devices
To create a encrypted device simply run:
`cryptsetup -y -v luksFormat /dev/sda2`.
`cryptsetup -c aes-xts-plain -s 512 -y -v luksFormat /dev/sda2`.
Where `/dev/sda2` is the device to be created.
### Create/Add a Key File to an encrypted volume