Recovering partition problem with Geometry

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
chanchochoncho
Posts: 7
Joined: 14 May 2020, 06:45

Recovering partition problem with Geometry

#1 Post by chanchochoncho »

Hello and thanks in advance

Long story short I accidentally erased my partitions while trying to install Ubuntu.
I stopped the installation and restarted the computer from a boot usb. I tried to use Testdisk but wasn't sure how to proceed. After analysing a couple times It appeared that the system was creating sectors or something.
fqfkVSuA.png
fqfkVSuA.png (66.31 KiB) Viewed 1764 times
So, after Deeper search TestDisk recomended to Use Geometry but I really dont' know how to proceed.
This is the partition I need to recover:
-VpDmyLQ.png
-VpDmyLQ.png (98.44 KiB) Viewed 1764 times
Also this is the log file in case it helps:
https://www.dropbox.com/s/a6c6zkeqvtzue ... k.log?dl=0

Thanks a lot for your help.
Last edited by chanchochoncho on 19 May 2020, 10:13, edited 1 time in total.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Recovering partition problem with Geometry

#2 Post by cgrenier »

Why are you forcing the partition table type to PC Intel ? Unless you are using a system older than 10 year, EFI GPT is the recommended choice.
You can ignore the message about the Geometry.
After Deeper Search, use the arrow keys to switch the partition to keep/recover from D(eleted) to P(rimary) or *(bootable).

chanchochoncho
Posts: 7
Joined: 14 May 2020, 06:45

Re: Recovering partition problem with Geometry

#3 Post by chanchochoncho »

Thank you very much. I'll do what you suggest and report.
To answer the question about why was I forcing the table type, I had this partition (NTFS) for storage only and was dual booting windows and Ubuntu. So when I Analysed I assumed PC was the option because the whole problem started when I tried to install ubuntu 20.04 and accidentally formated the disk. So I was afraid TestDisk would detect That new OS partition instead and so I went for PC. I got confused and scared as you can see.
Anyway I hope this works.
BTW: I attached my images because they weren't displaying.
Thank you very much again for your answer, Mr. Grenier It means a lot to me. :D

chanchochoncho
Posts: 7
Joined: 14 May 2020, 06:45

Re: Recovering partition problem with Geometry

#4 Post by chanchochoncho »

Hello,
Thank you very much for your help.
This is what happended:
I tried analysing with EFI as you suggested but TestDisk wouldn't find my partition, so I stopped the search and tried PC intel again. There, after deeper search I found it. I changed the D to Primary y went ahead to write. Reebooted but I don't know if I shold mount the image to find my files or do I have to do something else. I really don't want to screw this up. I'll wait for your suggestions.
Screenshot from 2020-05-19 21-23-34.png
Screenshot from 2020-05-19 21-23-34.png (97.29 KiB) Viewed 1731 times
This is the log file:
https://www.dropbox.com/s/pnderpheu7t0x ... 2.log?dl=0
Last edited by chanchochoncho on 22 May 2020, 02:33, edited 1 time in total.

chanchochoncho
Posts: 7
Joined: 14 May 2020, 06:45

Re: Recovering partition problem with Geometry

#5 Post by chanchochoncho »

In case my last post wasn't that clear:
Apparently Testdisk successfully wrote my missing partition. There were other partitions on that scheme but I don't need those So I chose to write Only the one selected in this image:
-VpDmyLQ.png
-VpDmyLQ.png (98.44 KiB) Viewed 1676 times
I rebooted, no errors were shown but when I plug the HDD Ubuntu doesn't detect it.

I looked for the device to try and mount it. It was there:
Device.png
Device.png (94.97 KiB) Viewed 1611 times
But I couldn't mount it. when I tried sudo mount I got this:
wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage, or helper program, or other error
If I use Disks It shows me this:
Parts.png
Parts.png (88.67 KiB) Viewed 1609 times
How can I mount the HDD so I can gain access to my files?
Please help.

chanchochoncho
Posts: 7
Joined: 14 May 2020, 06:45

Re: Recovering partition problem with Geometry

#6 Post by chanchochoncho »

Hello?

PassNGrin
Posts: 32
Joined: 23 May 2020, 23:56

Re: Recovering partition problem with Geometry

#7 Post by PassNGrin »

Maybe look up the error message on the wiki?

Locked