Accidentally dd'd my Mac drive...

How to use TestDisk to recover lost partition
Post Reply
Message
Author
User avatar
cgrenier
Site Admin
Posts: 3687
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Accidentally dd'd my Mac drive...

#1 Post by cgrenier » 05 Sep 2015, 20:16

Your Mac OS X was probably using EFI GPT partition table and grub may be detecting it.

When you start TestDisk, select the disk and choose EFI GPT, Analyse.
If you see your partitions, take a screenshot, save this screenshot somewhere safe, select Backup, choose Quick Search, Load the backup, use your screenshot to get the same partitions, go on next screen, compare with the screenshot and if the results are ok, choose to rewrite the partition table.

You will have to repair your installation to repair the damage caused by dd, but if no mistake is done, you should be able to boot again and access all your data.

Sponsored links

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

Re: Accidentally dd'd my Mac drive...

#2 Post by cgrenier » 07 Sep 2015, 17:03

TestDisk can't list the content of HFS partition. Usually for the correct HFS partition, TestDisk 7.0 or later will display at the bottom of the screen some information (ie. blocksize) and " + Backup".

As the beginning of the partition may have been overwritten, fsck may have to use a backup HFS block to access and repair the filesystem.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests