recover partitions lost converting to gpt using diskpart

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
iamthebull
Posts: 1
Joined: 29 Sep 2019, 04:11

recover partitions lost converting to gpt using diskpart

#1 Post by iamthebull »

I was not able to install Windows 10 on my hard drive as it was using MBR format. I followed some bad advise and used diskpart to convert to GPT which has deleted all my existing partitions.

I'm trying to use TestDisk to recover the partitions but I am confused between the results I see in the quick scan and the deep scan so I'm hesitant to commit any changes.

My original system was:
1 - NTFS partition for Windows 8.1
2 - ext4 partition for linux /root
3 - linux swap
4 - ext4 partition for linux /home
5 - NTFS partition for Windows Server 2016
about 70GB unallocated space
Grub bootloader

I selected the recommended drive type Intel.

The initial analyze shows all unallocated space (see part1.png attached).

The quick scan seems to show the correct partitions (see part1.png attached).

But the deep scan shows many more partitions (see part2.png attached). It seems to me that some of the partitions are now duplicated in the results. Is this expected?

I also encountered a warning message (see warning.png attached) should I be concerned about this?

Should I commit the results from the quick scan?
Attachments
Warning.PNG
Warning.PNG (19.39 KiB) Viewed 1524 times
part2.png
part2.png (121.36 KiB) Viewed 1524 times
part1.png
part1.png (56.68 KiB) Viewed 1524 times

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

Re: recover partitions lost converting to gpt using diskpart

#2 Post by cgrenier »

You need to switch the partition to recover to
- P(rimary), *(bootable) or L(ogical) when using a PC Intel partition table
- P(rimary) when using an EFI GPT partition table.

You can try the following setup:
* - NTFS partition for Windows 8.1
P - ext4 partition for linux /root
L - linux swap
L - ext4 partition for linux /home
P - NTFS partition for Windows Server 2016

iamnikkei96
Posts: 3
Joined: 08 Oct 2019, 19:23

Re: recover partitions lost converting to gpt using diskpart

#3 Post by iamnikkei96 »

I have the same issue did you recover your partitions successfully?

Locked