lacks superblock backup
Issue 19 by jo...@freesources.org on 2009-07-20 01:27:11:
I just lost 1.5TB data because I accidentally installed grub over the
LUKS superblock and there seems to be no way to restore it.
I'm missing 2 things:
1) an on disk backup of the superblock
That would not only help with accidental overwrites but also if a
block gets damages on the disk.
It might also be a good idea to move the superblock 4k or 64k from
the start of the device so a mbr/bootloader does not overwrite the
2) cryptsetup luksBackup and luksRestore command
There should be a command to dump the superblock of a luks volume
into a file for backup purposes and one to restore it from a file.
cryptsetup could even automatically store a backup on every change
like lvm does.