Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.04 KB

cryptsetup-luksHeaderRestore.8.adoc

File metadata and controls

34 lines (24 loc) · 1.04 KB

cryptsetup-luksHeaderRestore(8) Manual Page

NAME

cryptsetup-luksHeaderRestore - restore a binary backup of the LUKS header and keyslot area

SYNOPSIS

cryptsetup luksHeaderRestore --header-backup-file <file> [<options>] <device>

DESCRIPTION

Restores a binary backup of the LUKS header and keyslot area from the specified file.
NOTE: Using '-' as filename reads the header backup from a file named '-'.

<options> can be [--header, --header-backup-file, --disable-locks].

WARNING: Header and keyslots will be replaced, only the passphrases from the backup will work afterward.

This command requires that the volume key size and data offset of the LUKS header already on the device and of the header backup match. Alternatively, if there is no LUKS header on the device, the backup will also be written to it.