Accidentally changed mbr to gpt

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
johnfg
Posts: 2
Joined: 04 Dec 2015, 03:47

Accidentally changed mbr to gpt

#1 Post by johnfg »

Would testdisk be able to recover or fix my mistake I made with parted? I accidentally ran mklabel gpt.
User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Accidentally changed mbr to gpt

#2 Post by Fiona »

What's your OS, file system and size of your disk?
Did you create another partition and format it?
As long as you've nothing written to your disk, TestDisk could help?

Fiona
johnfg
Posts: 2
Joined: 04 Dec 2015, 03:47

Re: Accidentally changed mbr to gpt

#3 Post by johnfg »

I was running debian Linux, 2 different versions. there are 10 partitions, /dev/sda1 - /dev/sda10. My plan was to install Gentoo Linux in place of one of the debian's. So, I booted the minimal install cd, ran parted, then ran the command: `mklabel gpt`, which I didn't need to do, and shouldn't have done, since I had a working mbr. I've not run anything but `print` from parted since. I'm really hoping that testdisk can help.
Locked