I was in Windows 10 and it told me I needed to Initialize Disk so I clicked it and now my LUKS header has been overwritten. I created my encrypted partitions in Linux with cryptsetup command. However, I have another drive that uses the same password and keyfile as the one with the overwritten partition header, ... and I was wondering if it would be possible to backup the good partition header and use it for the one that has been overwritten since both LUKS encrypted partitions were created the same time, and with the exact same password/keyfile?

If anyone has experience in my position, I would be immensely grateful if you could point me in the right direction, or just tell me if am I screwed.

Thanks so much...

  • The LUKS header contains the encrypted master key. If you wiped the whole thing out then you won't be able to decrypt the volume even with the keyfiles/passwords.
    – user
    Commented Feb 7, 2020 at 14:37
  • If the second partition/header is cloned from the first then you will be able to use it, but if you used two separate cryptsetup format commands then they'll have different master keys.
    – user
    Commented Feb 7, 2020 at 14:38
  • @user Please don't post answers as comments.
    – user163495
    Commented Feb 7, 2020 at 14:41
  • @MechMK1 dw I'll convert it to an answer if the information is correct.
    – user
    Commented Feb 7, 2020 at 14:44
  • So am I screwed? All I did was click 'Initialize Disk' in windows. That was literally ALL I DID. Please don't tell me I'm screwed :/
    – Anon User
    Commented Feb 7, 2020 at 18:55


You must log in to answer this question.