Score:0

LUKs backup drive shows as "free space" on Ubuntu 20.04....can someone help?

mn flag

I am on Ubuntu 20.04. I have a backup hard drive that is encrypted with LUKs. I recently installed a third drive and installed Win11. I was trying to access the LUKs drive from within Win11, and obviously...although it sees it, it won't mount it. So, I booted back into Ubuntu and now my LUKs drive shows as being free space, I can't mount it, and it doesn't recognize it as a LUKs encrypted drive. I didn't format it, or take any action on the drive itself, am I screwed, or is there some way to get the system to recognize the drive as a LUKs drive?

UPDATE:

Running

sudo fdisk -l /dev/sdb

shows

disklabel type: gpt

But...running

sudo file -s /dev/sdb

shows

/dev/sdb: DOS/MBR

This seems unusual. Hoping someone smarter than me can help!

Let me know what additional information I can provide, please.

Update:

Thanks everyone for the help so far. I saw other people do a hexdump to help them recover their drive. I ran the following command, and got the following output, could anyone advise me on the potential for recovery? Not sure if I am allowed to offer this here...but if someone is able to successfully help me recover, I'd be happy to make a donation to them via Paypal / Venmo, etc. Please let me know if this is not allowed here. I appreciate everyone's help!

sudo hexdump -C /dev/sda | grep LUKS

Output: 166f6720 21 90 72 67 c0 56 0a 62 02 4c 55 4b 53 59 58 c8 |!.rg.V.b.LUKSYX.|

LovingCoffee avatar
mn flag
UPDATE: Running sudo fdisk -l /dev/sdb shows disklabel type: gpt But...running sudo file -s /dev/sdb shows /dev/sdb: DOS/MBR This seems unusual Hoping someone smarter than me can help!
ar flag
Please [edit your question](https://askubuntu.com/posts/1447273/edit) and add all updates in your question. The comments are mainly for us to ask for clarifications.
ar flag
I suspect when you tried to access the LUKS partition from Windows, it messed the partition up.
oldfred avatar
cn flag
For gpt related issues, I prefer gdisk. http://www.rodsbooks.com/gdisk/ Sometimes just running it and using w to write tables (if correct) updates things. Windows in old BIOS/MBR mode was known to not correctly write logical Linux partitions on changes. But UEFI/gpt has not had those issues.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.