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 Feb 7 '20 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 Feb 7 '20 at 14:38
  • @user Please don't post answers as comments. – MechMK1 Feb 7 '20 at 14:41
  • @MechMK1 dw I'll convert it to an answer if the information is correct. – user Feb 7 '20 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 Feb 7 '20 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.