1. 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 indicates the version of LUKS, either 1 or 2.

    • PBKDF indicates the key derivation function, either pbkdf2 or argon2id.

    If your encrypted volume already uses LUKS2 and Argon2id, you can stop here.

  2. 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

  3. 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

  4. 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 is 2 and not 1.

    • The PBKDF is argon2id and not pbkdf2.

  5. Try to unlock your encrypted volume.