I confused the hard drives, and deleted all sections of the hard disk. No more write operations on this hard drive were made. It was ubuntu with lvm-encryption. On the hard disk is extremely important customer data, and several months of daily (and even weekly work). You need to restore partitions at any cost. How to do it?

PS So far, I launched gparted to search for deleted partitions, it will scan in the region of 30 hours.

  • the exact size of the sections, as I understand it, do not remember? and after recording rebooted? the disk is not unmounted? - Fat-Zer
  • Rebooted. An erroneous deletion happened by this fucking Windows installer when he wanted to reinstall the axis on another broom, but didn’t wipe the wrong one. Deleted only sections and that's it. There for all 750 GB there was one partition, wrapped in lvm, that is, several other small sections of several hundred MB. - MIKS
  • then just re-create the partition table with fdisk and everything ... just look carefully at the first sector: the partition could start from the 63rd sector (if it was originally created in DOS compatibility mode), or from the first megabyte (2048th sector) - Fat-Zer
  • How to do it? Scanning gparted gave nothing. Scanned using testdisk, and found 5 sections. Apparently some of them are those that were created in the past, before the current lost markup. only files are read from one where grub. It is logical that others should not be read. This is LVM - MIKS
  • fdisk use? if so, start with a clean partition table ( o ) and simply create one partition for the whole disk ( p ) and enter several times and assign it the type lvm ( t -> 8e ), then save ( w ). After that, pvscan will have to find the lvm volume ... If it does not help, try doing the same thing, only with the dos-compatibility flag enabled ( c ). All these actions work only with the partition table and, with due regard, should not spoil the data, but be careful ... If it is not clear, then I can write in more detail later (much later). - Fat-Zer

0