DD zerod MBR and trying to recover the partition table

Using TestDisk to repair the filesystem
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
beapal
Posts: 1
Joined: 29 Nov 2017, 16:15

DD zerod MBR and trying to recover the partition table

#1 Post by beapal »

Hi there,

Can any one help me with my current situation ?

After backuping up HDD MBR with dd, for both 466 and 512 bytes, I purposely write zero to first 466 to get ride mbr so I can install grub2 freshly.

Now it seems all partition table is erased too. I remember that I specifily dd zero to 466 bytes.

Since TestDisk repair MBR, in this case, will it help ?

I have a backup of mbr in one of partition in .img. whats the way to recover that particular backup file to restore the MBR ?

Does TestDisk/Photorec will recover from disk with a partition table ?

Please shed any suggestion, advice or ideas for worst situation.

Regards,
Noorul

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

Re: DD zerod MBR and trying to recover the partition table

#2 Post by cgrenier »

You have probably confused bytes and sectors when using dd.
Run TestDisk, Analyze, Quick Search. If the partition is still missing, use Deeper Search.
When all partitions are listed, set the partition to recover as P(rimary), L(ogical) or *(bootable).
On next screen, choose Write, confirm, Quit and restart your computer.

Locked