BootCamp Partition- Missing Operating System Windows Startup Repair
Hi.
I made the mistake of creating a new partition on my HD with an existing Boot Camp partition. I tried to follow the advice of Loner T in this thread https://discussions.apple.com/thread/6574886, and got made the Windows installation bootable. Upon starting up Windows the screen displayed 'Missing Operating System', I tried doing a Windows Startup Repair using the Windows Installation Media without any luck.
Here is the current state of my hard drive.
diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *256.1 GB disk0
1: Apple_HFS 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 201.3 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Windows_NTFS 20.0 GB disk0s4
sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 31130/255/63 [500118192 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: AF 1023 254 63 - 1023 254 63 [ 1 - 409639] HFS+
2: AF 25 127 15 - 1023 254 63 [ 409640 - 393139416] HFS+
*3: AB 1023 254 63 - 1023 254 63 [ 393549056 - 1269536] Darwin Boot
4: 07 1023 254 63 - 1023 254 63 [ 461056000 - 39061504] HPFS/QNX/AUX
sudo gpt -vv -r show /dev/disk0
gpt show: /dev/disk0: mediasize=256060514304; sectorsize=512; blocks=500118192
gpt show: /dev/disk0: MBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: error: bogus map
gpt show: unable to open device '/dev/disk0': Undefined error: 0
sudo dd if=/dev/disk0s4 count=1 2>/dev/null | hexdump -C
00000000 80 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 |.. . . . . . . .|
00000010 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . .|
*
00000140 04 00 00 00 02 01 00 0c 00 00 78 2e 50 15 00 00 |..........x.P...|
00000150 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 |.. .............|
00000160 00 00 00 00 00 00 8a 00 78 2e 50 15 00 03 00 00 |........x.P.....|
00000170 01 00 03 00 35 35 09 00 00 00 3e 00 8c 09 00 00 |....55....>.....|
00000180 76 01 00 00 15 00 02 00 91 77 1c 00 00 00 02 01 |v........w......|
00000190 c9 b5 04 00 01 00 02 00 2c 00 00 00 8c 09 00 00 |........,.......|
000001a0 76 01 00 00 15 00 00 01 00 00 1e 00 00 00 00 01 |v...............|
000001b0 00 00 00 00 41 00 03 00 fb 03 00 00 0c 00 20 00 |....A......... .|
000001c0 10 00 f8 03 35 35 09 00 01 d2 46 00 00 c3 29 0b |....55....F...).|
000001d0 23 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 |#. . . . . . . .|
000001e0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . . . . .|
*
00000200
MacBook Pro (13-inch Mid 2010), OS X Yosemite (10.10.2), null