Misplaced partition recovered by TestDisk

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
Post Reply
Message
Author
itoniaxi
Posts: 5
Joined: 02 Mar 2021, 09:23

Misplaced partition recovered by TestDisk

#1 Post by itoniaxi »

Originally I have a non-empty 4TB HDD with

Code: Select all

| 1.5TB | 1.5TB | 1TB |
partitions, and something happened (because of Windows Recovery Tools) that now it is partitioned as :

Code: Select all

| 32MB | 2TB |raw/unpartitioned|
I have ran testdisk and I found that my last 1TB partition, it was listing the correct files. Then testdisk was showing 3 partitions to write : 32MB, 2TB (current partition), 1TB (my lost partition).
After confirming to write my partition table and restarted. But I found that from gparted that my 1TB partition was placed next after the 2TB one :

Code: Select all

| 32MB | 2TB | 1TB | raw |
while it supposedly placed on relatively last position of the whole disk

Code: Select all

| 32MB | 2TB | raw | 1TB |
(1 TB is remaining of 1.5+1.5TB as before). Running testdisk again resulting me found only 32MB, 2TB and raw again, and I'm putting on hold to search partitions again.

What should I do? Should I delete my 1TB partition and do partition search again? How to get back my 1TB partition that was relatively on the end?

While my priority is to find my last 1TB and get it backed up, I plan to recover the former partition (1.5TB-1.5TB) after that. Does it possible to return it back to my original partition, which is :

Code: Select all

| 1.5TB | 1.5TB | 1TB |

Or at least recovering the files from it. Thank you

recuperation
Posts: 1663
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Misplaced partition recovered by TestDisk

#2 Post by recuperation »

I would rerun Tesdisk including deep search. When finding the 1TB partition I would have Testdisk copy its content immediately to another drive. If Testdisk does not find more information you could continue with Photorec or use some commercial recovery software.

itoniaxi
Posts: 5
Joined: 02 Mar 2021, 09:23

Re: Misplaced partition recovered by TestDisk

#3 Post by itoniaxi »

Yes, I found my 1TB partition again after running deep search again. Now I am listing the files and attempting to copy the files. It is still running right now, but it have many failed copies. Does it possibly copying all hidden files too? if so, how to skip it? (rather than copying it manually for each of folder tree)?

recuperation
Posts: 1663
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Misplaced partition recovered by TestDisk

#4 Post by recuperation »

I don't know. You have to do post processing on your own afterwards.

itoniaxi
Posts: 5
Joined: 02 Mar 2021, 09:23

Re: Misplaced partition recovered by TestDisk

#5 Post by itoniaxi »

Is there any way to create image of my correct 1TB partition? As I mentioned, I have it written the partition table after running first search, but it was misplaced so it won't list the correct file listing (displayed as bad/error) just like when I searching again and got correct list / found my files. I have tried writing it again, but it results same.

recuperation
Posts: 1663
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Misplaced partition recovered by TestDisk

#6 Post by recuperation »

itoniaxi wrote: 05 Mar 2021, 10:26 Is there any way to create image of my correct 1TB partition? As I mentioned, I have it written the partition table after running first search, but it was misplaced
There is no such thing as a "misplacement" as you are supposed to check the validity of the content using the "p"-key ("list files). And even when you can see your file and directory structures there is no guarantee that the data is as expected. Use Testdisk to export the content and check the exports later. Anyway, I have difficulties in understanding exactly how your problems arise. Go and document the case - from two sentences of yours I can hardly judge any wrongdoing on your side.

so it won't list the correct file listing (displayed as bad/error) just like when I searching again and got correct list / found my files. I have tried writing it again, but it results same.

itoniaxi
Posts: 5
Joined: 02 Mar 2021, 09:23

Re: Misplaced partition recovered by TestDisk

#7 Post by itoniaxi »

the thing is, now I have recovered most files (but not completely, as you said) on my 1TB partition.

the problem was, I could not get correct partition table rewrite on EFI/GPT. After retries, it was either the partition was not found or it was but failed to rewrite the partition table found.
It was detected by testdisk as EFI/GPT, possibly since the hdd was an external hdd (NTFS, GPT) before it got formatted as windows recovery drive (NTFS, MBR).

After I tried Intel partition type, partition that I wanted was back :

Code: Select all

| 32MB | 2TB | raw | 1TB (DONE) |
Thank you for keeping up with me. I decided that I have done with my last 1TB.

Next thing I want to do is recover files from the first 3TB.

Code: Select all

| (first 3TB) | 1TB (DONE) |
testdisk could not find the partitions back like it was :

Code: Select all

| 1.5TB | 1.5TB |  1TB (DONE) |
the question is, should I straight using photorec? could I delete and join first 1.5+1.5TB partition first, then do recovery on that?

Code: Select all

| 32MB + 2TB + raw |  1TB (DONE) |

recuperation
Posts: 1663
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Misplaced partition recovered by TestDisk

#8 Post by recuperation »

Did you extract your drive from an external housing?

itoniaxi
Posts: 5
Joined: 02 Mar 2021, 09:23

Re: Misplaced partition recovered by TestDisk

#9 Post by itoniaxi »

recuperation wrote: 21 Sep 2021, 11:35 Did you extract your drive from an external housing?
yes, I thought it would be faster on SATA than USB. or was I not supposed to do that?

recuperation
Posts: 1663
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Misplaced partition recovered by TestDisk

#10 Post by recuperation »

No. There might be interface electronics that changes the sector size.

Post Reply