Guide
The recovery key
Keeping it, and using it when the passphrase doesn't work.
When the disk is encrypted, the installer makes a recovery key: eight groups of eight letters. It unlocks the disk when the passphrase doesn’t: you forgot it, the keyboard layout is wrong, or the TPM chip refuses (after a Secure Boot database update, when the chip was cleared, or, with unlock by PIN, after too many wrong PINs or a forgotten PIN).
- Keep it away from the computer: on paper, in a password manager on your phone, or in a safe place you will remember. Anyone with it and the computer can read the disk.
- Use it wherever the passphrase is asked: at the start (the passphrase prompt on the start-up screen accepts it too), in Asima Rescue, or in Asima Maintenance → Security.
- Make a new one in Asima Maintenance → Security → Recovery key. The old one stops working.
Without the passphrase and the recovery key, nobody can read the disk, Asima OS included. A backup to another drive (Asima Maintenance → Backups) keeps your files safe from that too.
If the disk’s encryption header is damaged
The header at the start of the encrypted partition holds the key slots; when it is damaged, neither the passphrase nor the recovery key can open the disk. Every backup (Asima Maintenance → Backups) keeps a copy of it (the newest four). To put one back:
-
Start the Asima OS USB stick and open Konsole in the live session.
-
Fetch the copy from the backup (it asks for the backup’s password):
restic -r ADDRESS-OF-YOUR-BACKUP restore --tag asimaos-disk-header latest --target /tmp/header -
Write it back onto the encrypted partition:
sudo cryptsetup luksHeaderRestore "$(blkid -t PARTLABEL=crypt_pool -o device)" \ --header-backup-file /tmp/header/var/lib/asimaos/backup/disk-header.img -
Restart. The passphrase or recovery key that was valid when that backup ran opens the disk again; set up TPM unlock again in Asima Maintenance → Security.
The copy only opens the disk with a secret that was valid when it was made, so keep the backup’s password as safe as the recovery key.