I know, I only have myself to blame, but yesterday I mistakenly deleted all my partitions of my main drive - a standard ubuntu xenial install using LUKS and LVM, but everything with default options using the whole 1 TByte drive. No EFI etc.
Here you can see fdisk -l from another laptop with the same installation (it has a smaller drive though!):
Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 999423 997376 487M 83 Linux /dev/sda2 1001470 624949247 623947778 297.5G 5 Extended /dev/sda5 1001472 624949247 623947776 297.5G 83 Linux
Gpart is running (10 hours plus now), I also let testdisk do a scan but was confused as to what to do in the end (it also found some old HP_Tools partition which was deleted a long time ago). Sorry I'm still a learner with Linux.
I see that I could be able to restore the two main partitions sda1 and sda2, but how do I have to proceed to get the LUKS container inside sda2 back and the LVM inside the LUKS, while not actually changing any data?
Am I correct that by just dropping the partitions, I did not loose yet any data?
Thanks for any help with detailed steps.