I have deleted boot partition, tried to recover it with testdisk however in the process I deleted my two other partition.
My inital setup was pretty simple:
- one EFI system partition
- one encrypted ext4 partition making most of the disk
- one encrypted swap partition.
I've tried a deeper searc(simple search just wasn't seing so much) with testdisk here's what I found:
Code: Select all
Disk /dev/nvme0n1 - 512 GB / 476 GiB - CHS 488386 64 32
Partition Start End Size in sectors
P EFI System 2048 1619967 1617920 [EFI System Partition] [ESP]
D MS Data 2054 1619973 1617920 [NO NAME]
D EFI System 4096 618495 614400 [EFI System Partition]
D MS Data 4102 618501 614400
D MS Data 37699 43872 6174
D MS Data 43872 50045 6174 [Boot]
D Linux filesys. data 618494 1000206893 999588400
P Linux filesys. data 618496 622591 4096
D Linux filesys. data 618496 1000206895 999588400
D MS Data 374180459 374183338 2880 [NO NAME]
D MS Data 374180483 374183362 2880 [NO NAME]
D MS Data 374181379 374184258 2880 [NO NAME]
>P Linux filesys. data 965039160 965043255 4096
I've been able to backup Luks header maybe they come useful ?
My partitions look like this from /sys/class/block
Code: Select all
#main partition
/sys/class/block/nvme0n1p2/start
618496
/sys/class/block/nvme0n1p2/size
964420664
#Swap partition
/sys/class/block/nvme0n1p3/start
965039160
/sys/class/block/nvme0n1p3/size
35167740
Code: Select all
Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
Model: BC511 NVMe SK hynix 512GB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 56029EED-7ABF-414D-9D67-7ECF15B53AAC
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1000215182
Partitions will be aligned on 2048-sector boundaries
Total free space is 998597229 sectors (476.2 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1619967 790.0 MiB EF00 EFI System Partition
Thank you