September 22, 2024

Back up LUKSs 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

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88