Recovering a deleted partition (one encrypted)
Posted: 09 Jun 2022, 07:09
My filesystem was corrupted in such a way I could login, but was only able to use the command line. So I installed an upgraded OS (from Linux Mint 19 to 23). To do so I wrote the reboot iso image to an external drive (below, sdc), and launched the reboot from there. The end result is: the old partition is gone. It had three partitions containing data: Vol1 (unknown file format), Vol2 (ext4 / encrypted) and Vol3 (ext4). Only Vol1 and Vol2 contain critical data. Is there anyway I can recover this data, how would I go about it? Please mind that I'm a below average geek when it comes to hardware and such. I'm posting this in parallel to reading about Step by Step guide, should the specifics of my case warrant special care.
Here's a snapshot of gnome-disk-utility 3.36.3's dashboard.
Code: Select all
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 731M 0 part /boot
└─sda6 8:6 0 296.9G 0 part
└─sda6_crypt 253:0 0 296.9G 0 crypt
├─vgmint-root 253:1 0 295.9G 0 lvm /
└─vgmint-swap_1 253:2 0 976M 0 lvm [SWAP]
sdc 8:32 0 931.5G 0 disk
├─sdc1 8:33 0 2G 0 part
└─sdc2 8:34 0 3.9M 0 part
Code: Select all
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121597 255 63
Partition Start End Size in sectors
>P FAT12 0 10 11 0 137 9 8000 [EFI System Partiti
P NTFS 0 32 33 35160 213 54 564856825 [Vol1]
P NTFS 838 122 38 851 58 24 204800
P NTFS 851 58 24 863 249 10 204800
P HFS+ 4790 202 53 5723 114 55 14983104
P NTFS 6017 98 18 27783 148 61 349673984
P HFS 28832 100 2 29354 146 39 8388866
P HFS+ 31453 157 61 32386 69 63 14983104
P HFS+ 32386 71 2 33318 238 4 14983104
P NTFS 35160 213 54 70321 140 12 564856825
P Linux LUKS 70604 13 2 70604 78 2 4096
Structure: Ok.
Keys T: change type, P: list files,
Enter: to continue
FAT12, blocksize=2048, 4096 KB / 4000 KiB
Code: Select all
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121597 255 63
Analyse cylinder 57249/121596: 47%
ext4 18608 43 36 20566 42 60 31455232
ext4 18608 45 38 20566 44 62 31455232
ext4 18608 47 40 20566 47 1 31455232
ext4 18608 49 10 20566 48 34 31455232
ext4 18608 50 35 20566 49 59 31455232
ext4 18608 51 60 20566 51 21 31455232
ext4 18608 54 55 20566 54 16 31455232
ext4 18608 56 49 20566 56 10 31455232
ext4 18608 58 51 20566 58 12 31455232
ext4 18608 62 39 20566 61 63 31455232
ext4 18608 64 1 20566 63 25 31455232
ext4 18608 71 24 20566 70 48 31455232
ext4 18608 72 25 20566 71 49 31455232
ext4 18608 71 24 20566 70 48 31455232
n] [EFISECTOR]