Um zu überprüfen, ob Ihr verschlüsseltes Volume PBKDF2 oder Argon2id verwendet, führen Sie den folgenden Befehl aus.
Ersetzen Sie [partition] durch den Partitionsnamen, der in Schritt 1.6 gefunden wurde.
cryptsetup luksDump /dev/[partition]
In der Ausgabe:
Version
gibt die Version von LUKS an, entweder1
oder2
.PBKDF
indicates the key derivation function, eitherpbkdf2
orargon2id
.
If your encrypted volume already uses LUKS2 and Argon2id, you can stop here.
Execute the following command to do a backup of your LUKS1 header.
Ersetzen Sie [partition] durch den Partitionsnamen, der in Schritt 1.6 gefunden wurde.
cryptsetup luksHeaderBackup /dev/[partition] --header-backup-file /home/amnesia/luks1header
If something goes wrong, you will be able to restore your LUKS1 header from this backup with:
cryptsetup luksHeaderRestore /dev/[partition] --header-backup-file /home/amnesia/luks1header
To update your LUKS header to LUKS2, execute the following command.
Replace [partition] with the device name found in step 1.6.
cryptsetup convert /dev/[partition] --type luks2
To verify that Argon2id is the new key derivation function, execute the following command again.
Ersetzen Sie [partition] durch den Partitionsnamen, der in Schritt 1.6 gefunden wurde.
cryptsetup luksDump /dev/[partition]
Überprüfen Sie in der Ausgabe, dass:
The
Version
is2
and not1
.The
PBKDF
isargon2id
and notpbkdf2
.
Try to unlock your encrypted volume.