I recently did a not-so-intelligent thing: I was installing Win 7 64bit on a new PC and I took my old Mac-formatted 4TB external HDD and mounted it internally on the PC.
What I did not realize was that Win 7 cannot recognize HDD's with more than 3TB capacity. While I was installing Win 7, it destroyed the original GPT partition map of the 4TB drive and replaced it with a MBR. Now I am left with an unrecognizable disk, both by Windows and by my MacBook Pro with Mavericks on.
Here is some of the info that I got from Terminal:
Rians-MacBook-Pro:~ RVL$ sudo gpt -r -vvv show -l /dev/disk1
gpt show: /dev/disk1: mediasize=4000787025920; sectorsize=4096; blocks=976754645
gpt show: /dev/disk1: MBR at sector 0
gpt show: /dev/disk1: Pri GPT at sector 1
gpt show: /dev/disk1: GPT partition: type=48465300-0000-11AA-AA11-00306543ECAC,
start=6, size=51200
gpt show: /dev/disk1: GPT partition: type=48465300-0000-11AA-AA11-00306543ECAC,
start=51206, size=976670666
gpt show: /dev/disk1: Sec GPT at sector 976754644
start size index contents
0 1 MBR
1 1 Pri GPT header
2 4 Pri GPT table
6 51200 1 GPT part - "EFI System Partition"
51206 976670666 2 GPT part - "Mac Ext 6"
976721872 32768
976754640 4 Sec GPT table
976754644 1 Sec GPT header
Is there any way that I can restore the original GPT map and of course the data on the disk? What was particularly troubling was the following:
Rians-MacBook-Pro:~ RVL$ sudo fdisk /dev/disk1
Password:
Disk: /dev/disk1 geometry: 60800/255/63 [976754645 sectors]
Sector size: 4096 bytes
Signature: 0xAA55
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
Does the above mean all the data is destroyed or is there a ray of hope. Is there anybody out there who can help? Thanks!
Rians-MacBook-Pro:~ RVL$ sudo gpt -r show /dev/disk2 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 4 Pri GPT table 6 976754634 976754640 4 Sec GPT table 976754644 1 Sec GPT header
The original list had the EFI System Partition listed at 6 51200. – RianvL Jan 27 '16 at 15:35sudo gpt -r -vvv show -l /dev/disk1
should yield the same as the list in your question except a PMBR instead the MBR and a different type for the EFI partition – klanomath Jan 27 '16 at 20:44diskutil umountDisk /dev/diskX
2.sudo gpt remove -i 1 /dev/diskX
3.diskutil umountDisk /dev/diskX
4.sudo gpt add -b 6 -i 1 -s 51200 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B /dev/diskX
. – klanomath Jan 27 '16 at 20:52