Score:0

Lost access to encrypted Kubuntu partition

ao flag

I have Kubuntu 20.04 installed on my second hard drive (/dev/sdb). It is encrypted with LVM. The partitions are /dev/sdb1, /dev/sdb2, /dev/sdb5, and /dev/sdb6. sdb5 and sdb6 are contained, encrypted, within sdb2.

While attempting to install a new OS on my first hard drive (/dev/sda), the logical volume mapper (unsure if this is the correct terminology) for the volume group on /dev/sdb was inadvertently deleted by the installer, meaning that I lost access to /dev/sdb5 and /dev/sdb6.

Kubuntu 20.04 on /dev/sdb now does not boot. If anyone has a solution that would allow me to recover the logical volume mapper which would enable me to boot /dev/sdb6, or alternatively mount /dev/sdb6 from a live OS so I can retrieve files from it, I'd appreciate it very much.

J-roc

Nmath avatar
ng flag
Did you back up the headers? Because without a backup, you cannot recover data that was on an encrypted partition that has been deleted. You will need to restore from some other backup. That data is unrecoverable.
ao flag
No, unfortunately not. To be clear, I don't think the encrypted partition was deleted - it's all there within /dev/sdb2. Although I don't know how logical volume management works, to my inexperienced eyes I think whatever aspect of it that points to /dev/sdb5 and /dev/sdb6 was removed. If this is true, would the data nonetheless be unrecoverable?
Nmath avatar
ng flag
What is the problem you experience when you try to mount it from a live session?
ao flag
I try to mount /dev/sdb2 as a LUKS device, but my passphrase doesn't work for it. I try to mount /dev/sdb6, but the system cannot see it.
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.