Page 1 of 1

Recovering partition problem with Geometry

Posted: 14 May 2020, 07:34
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 2093 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 2093 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.

Re: Recovering partition problem with Geometry

Posted: 15 May 2020, 09:00
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).

Re: Recovering partition problem with Geometry

Posted: 19 May 2020, 11:01
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

Re: Recovering partition problem with Geometry

Posted: 19 May 2020, 22:26
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 2060 times
This is the log file:
https://www.dropbox.com/s/pnderpheu7t0x ... 2.log?dl=0

Re: Recovering partition problem with Geometry

Posted: 20 May 2020, 23:54
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 2005 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 1940 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 1938 times
How can I mount the HDD so I can gain access to my files?
Please help.

Re: Recovering partition problem with Geometry

Posted: 26 May 2020, 07:06
by chanchochoncho
Hello?

Re: Recovering partition problem with Geometry

Posted: 26 May 2020, 07:50
by PassNGrin
Maybe look up the error message on the wiki?