Back up LUKS’s header of an encrypted volume
I read in the documentation of cryptsetup that if the LUKS header of a volume gets damaged, the volume can no longer be decrypted. Sometimes headers of volumes get damaged. The documentation suggests to (1) create a LUKS header backup and (2) save it to a file.
From cryptsetup’s man page:
sudo cryptsetup luksHeaderBackup /dev/sdbX --header-backup-file /var/tmp/nameofthebackup
To find the path to the name of the device, that is for example /dev/sdb2
, you can run $ lsblk
.
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki backintime