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.