Jonas Meurer wrote: >> cryptsetup luksDump $DEVICE >> >> Find the payload number >> >> dd if=$DEVICE of=luks_header_bakup count=$PAYLOAD >> >> To restore them just reverse if and of in dd >> >> dd if=$luks_header_backup of=$DEVICE count=$PAYLOAD > > you should add bs=1 to the dd commandline. default is 512, which would > result in $PAYLOAD*512 bytes being read/written. Nope, payload offset in dump _is_ in 512 byte sector units. bs=512 is correct. (You will save all (even unused) keyslots here, but this is not problem) Milan _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt