Score:0

LVM got Unallocated after MBR to GPT using gdisk

cn flag

I accidentally deleted (not formatted) my Ununtu LVM partition on Windows today using it's Disk Management software. After a long night, I've managed to boot into Ubuntu again with my data intact.

However, now my Nvidia GPU won't work. After some googling it says that I need to boot with a GPT (i don't know why), but it seems like the case as I've the same setup (dual boot Win 10 + Ubuntu 20.04) on my other rig with GPT.

I ran gdisk and it showed that I have MBR: present and GPT: damaged and it also said that I'm supposed to "repair" my disk.

gdisk said that my GPT backup is ok, so I rebuild the partition table by loading from the backup and write it to the disk.

After I rebooted the system, my computer just hanged saying waiting for cryptsetup from [disk UUID].

I've chose to encrypt my disk on Ubuntu during installation, so I've my file system on a LVM (LUKS).

I boot into a Ubuntu Live CD and run gdisk again on my drive, now it says MBR: protective and GPT: present, but when I opened gparted, it showed that the LVM partition is unallocated.

Is there a chance that I can get my data back by converting GTP back to MBR or some other way?

I've lost -> recovered -> and lost my data again ...

I am no expert in disks and hard drives, so my question might not be clear. Please let me know any extra information is required.

A.B avatar
cl flag
A.B
Next time you manage to see your data, do a backup.
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.