EFI+APFS partition table mangled

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
masbass
Posts: 1
Joined: 10 May 2021, 20:46

EFI+APFS partition table mangled

#1 Post by masbass »

Hello all, I have a system SSD with two partitions, one small EFI GPT with a Clover bootloader and an APFS that follows til the end of the disk, It somehow got mangled after some power downs and now it can't boot into APFS. After powering up, Clover runs normally in the EFI partition but then as it should enter the APFS partition it just freezes. Here's the summary of running a TestDisk on it (on a Windows 10 machine scanning the disk via USB):

Disk /dev/sde - 480 GB / 447 GiB - CHS 58369 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (480 GB / 447 GiB) seems too small! (< 1054 GB / 982 GiB)
The following partitions can't be recovered:
Mac HFS 83342850 1157084675 1073741826
HFS blocksize=536870912, 549 GB / 512 GiB
Mac HFS 182786221 2059705458 1876919238 [é^Aëûf.„]
HFS blocksize=16777216, 960 GB / 894 GiB
Mac HFS 351846538 1425588363 1073741826
HFS blocksize=536870912, 549 GB / 512 GiB
Mac HFS 937440900 1874472163 937031264
HFS+ blocksize=4096, 479 GB / 446 GiB

Results
P EFI System 40 409639 409600 [EFI System Partition] [EFI]
FAT32, blocksize=512, 209 MB / 200 MiB
Mac HFS 409640 937440903 937031264
HFS+ found using backup sector!, 479 GB / 446 GiB
EFI System 2836016 2838895 2880 [EFI System Partition] [EFISECTOR]
FAT12, blocksize=512, 1474 KB / 1440 KiB
EFI System 2838928 2841807 2880 [EFI System Partition] [EFISECTOR]
FAT12, blocksize=512, 1474 KB / 1440 KiB

and here's the complete log: https://pastebin.com/mfaSGdCU

It looks like a complete mess beyond recovery, from what I understand there's 4 APFS partitions where only one fits and I'm just posting it here in case there's something that can be fixed and not all hope is lost. Thanks

Locked