Partition wrote as "Primary Bootable" seems messed up my HD

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
jrfernan
Posts: 3
Joined: 16 Aug 2015, 14:59

Partition wrote as "Primary Bootable" seems messed up my HD

#1 Post by jrfernan »

Dear all,
This post is a sequence of an old post that I had (viewtopic.php?f=5&t=5308)

What happened: due to a laptop crash, I removed its HD and, when tried to access the data, it was not possible.
As I explained in the old post (viewtopic.php?f=5&t=5308), I tried to solve with Testdisk, and it seems that I messed things up when I changed a partition that had no indication of partition type to “*=Primary bootable”, and wrote the partition table with testdisk.
Now I am more comfortable to try different things, because fortunately I cloned the HD and I am trying the solutions in the clone disk.
This is the result of a deep search:


-----------------------------------------------------------------------------------------------
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63

The harddisk (500 GB / 465 GiB) seems too small! (< 3400 GB / 3166 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...

The following partitions can't be recovered:
Partition Start End Size in sectors
> HPFS - NTFS 27284 123 40 64517 4 45 598140654
Linux 52947 166 20 72144 106 26 308396032 [Documentos]
Linux 52950 83 62 72147 24 5 308396032 [Documentos]
Linux 52951 251 37 72148 191 43 308396032 [Documentos]
HPFS - NTFS 60801 80 15 121454 223 48 974399488
FAT16 <32M 197873 113 15 413411 6 19 3462611234


Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63
Partition Start End Size in sectors
>D Linux 0 32 33 12304 211 3 197675008
D HPFS - NTFS 147 191 45 60801 80 15 974399488
D Linux 12304 211 4 19599 57 42 117184512
D HPFS - NTFS 37380 77 10 37483 241 6 1665024
D HPFS - NTFS 37426 180 3 37484 18 38 921600
D Linux 37484 18 39 40130 153 23 42516480 [Sistema_Linux]
D Linux 38288 253 46 40935 133 30 42516480 [Sistema_Linux]
D Linux 38291 106 24 40937 241 8 42516480 [Sistema_Linux]
D Linux 38299 114 24 40945 249 8 42516480 [Sistema_Linux]
D Linux 38300 54 27 40946 189 11 42516480 [Sistema_Linux]
D Linux 38300 86 59 40946 221 43 42516480 [Sistema_Linux]
D Linux 40130 153 24 59327 93 30 308396032 [Documentos]
D HPFS - NTFS 42840 189 38 42910 186 28 1124352
D HPFS - NTFS 43246 164 55 43316 161 45 1124352
D HPFS - NTFS 43316 161 46 49773 121 12 103729152
D HPFS - NTFS 44062 38 9 50518 252 38 103729152
D Linux Swap 58354 205 28 59813 181 16 23437312
D Linux Swap 59327 93 31 59813 181 16 7813120
>D HPFS - NTFS 59813 181 17 60801 80 15 15865856 [PBR Image]

-----------------------------------------------------------------------------------------------


When I select the line “ D Linux 40130 153 24 59327 93 30 308396032 [Documentos]”, and press “P”, the structure below appears:

----------------------------------------------------------------------------------------------
Directory /

>drwxr-xr-x 0 0 4096 24-Feb-2019 11:08 .
drwxr-xr-x 0 0 4096 24-Feb-2019 11:08 ..
drwx------ 0 0 0 24-Feb-2019 11:08 lost+found

drwxr-xr-x 1000 1000 4096 20-Feb-2019 20:44 julio
drwxr-xr-x 1001 1001 4096 20-Feb-2019 20:42 dudu
drwxr-xr-x 1002 1002 4096 20-Feb-2019 20:45 leleo

drwx------ 0 0 4096 20-Feb-2019 20:46 .Trash-0
-----------------------------------------------------------------------------------------------


But the folders of interest -- where my files are located -- appear in red. And, when I select “P” in anyone of them, no files are presented. It is stated that there is no data. However, using GParted, as can be seen in the snapshot attached, there is some data in the partitions.
I attached also the log file.
Can someone help me, please?
Attachments
testdisk.log.zip
(9.32 KiB) Downloaded 227 times
GParted snapshot.png
GParted snapshot.png (41.4 KiB) Viewed 2690 times

Locked