Page 1 of 1

Restore MAC GUID Partition Map

Posted: 08 Dec 2016, 02:58
by DStall
Is there a way to recover the GUID partition that is missing from my external HFS+ formatted HD?
I've installed TestDisk with home brew.
When I unzip the file, testdisk-7.0.mac_intel.tar.bz2, and click on the testdisk file, I'm able to list disks,
but I don't know where to go from there.

Re: Restore MAC GUID Partition Map

Posted: 08 Dec 2016, 03:08
by DStall
The external HD with missing GUID partition is 2TB, and the internal HD is 1TB with a 801.97 GB boot drive partition, and 197 GB Bootcamp partition (unmounted).
Disk Utility only shows the partition on the 2TB drive (2.VIDEO) without listing it within the physical disk, as compared to the internal drive (Apple HDD).
See attached screenshot of Disk Utility.
Here is what TestDisk lists -
>Disk /dev/disk0 - 1000 GB / 931 GiB (RO)
Disk /dev/disk2 - 2000 GB / 1863 GiB
Disk /dev/disk3 - 2000 GB / 1863 GiB
Disk /dev/disk5 - 2000 GB / 1863 GiB
Disk /dev/rdisk0 - 1000 GB / 931 GiB (RO)
Disk /dev/rdisk1 - 801 GB / 746 GiB (RO)
Disk /dev/rdisk2 - 2000 GB / 1863 GiB
Disk /dev/rdisk3 - 2000 GB / 1863 GiB
Disk /dev/rdisk5 - 2000 GB / 1863 GiB

Re: Restore MAC GUID Partition Map

Posted: 08 Dec 2016, 04:18
by DStall
From Terminal, diskutil list -
HD with problem is disk4, which has no GUID partition scheme listed nor EFI.

Mac-mini:~ darrellstall$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage MAC_MINI 802.3 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data BOOTCAMP 197.0 GB disk0s4
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS MAC_MINI +802.0 GB disk1
Logical Volume on disk0s2
DD13EF34-B8B1-4C19-ABE1-71A591D5E633
Unencrypted
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: 2.VIDEO *2.0 TB disk4
/dev/disk6 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk6
1: EFI EFI 209.7 MB disk6s1
2: Apple_HFS MAC_DOCS 2.0 TB disk6s2
Mac-mini:~ darrellstall$

Re: Restore MAC GUID Partition Map

Posted: 08 Dec 2016, 04:43
by DStall
Why can't I access drive?
Mac-mini:~ darrellstall$ sudo gpt recover /dev/disk4
Password:
gpt recover: unable to open device '/dev/disk4': Resource busy

Re: Restore MAC GUID Partition Map

Posted: 08 Dec 2016, 04:49
by DStall
Mac-mini:~ darrellstall$ sudo gpt recover /dev/disk4
gpt recover: /dev/disk4: no primary or secondary GPT headers, can't recover

Mac-mini:~ darrellstall$ sudo fdisk /dev/disk4
Disk: /dev/disk4 geometry: 243201/255/63 [3907029152 sectors]
Signature: 0x0
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused