update :
After 12 hours of reading and searching online, I was able to restore the Bootcamp partition table BUT :
Now Bootcamp starts in Legacy mode not EFI
If try to install the Windows 8 again, it says it can't use the disk as it expects GPT whereas the disk has MBR.
In the past I used to have 2 options, one to boot Windows in Legacy and other UEFI.
Now anyone kind enough ( MacRumors Guru or expert in partition tables ) to tell me how to restore the EFI option for Windows boot ? )
When I boot from USB using Legacy it detects the OS but it doesn't when I run the USB in EFI, says device not found.
I'm half way there and need your support guys !
Thanks.
Code:
gpt show: disk0: mediasize=500277790720; sectorsize=512; blocks=977105060
gpt show: disk0: Suspicious MBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 977105059
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 292968736 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
293378376 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
294647912 1944
294649856 682455040 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
977104896 131
977105027 32 Sec GPT table
977105059 1 Sec GPT header
Code:
Karims-iMac:~ $ sudo gdisk /dev/disk0
GPT fdisk (gdisk) version 0.8.10
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): p
Disk /dev/disk0: 977105060 sectors, 465.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 43DFAFB8-5595-44E0-9A3F-2E7B7ECBD9F2
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 977105026
Partitions will be aligned on 8-sector boundaries
Total free space is 2081 sectors (1.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 293378375 139.7 GiB AF00 Customer
3 293378376 294647911 619.9 MiB AB00 Recovery HD
4 294649856 977104895 325.4 GiB 0700 BOOTCAMP