Page 1 of 1

DD zerod MBR and trying to recover the partition table

Posted: 29 Nov 2017, 16:26
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

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

Posted: 29 Nov 2017, 17:00
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.