Boot Camp repair after deleting Linux Partitions
I'm running OS X 10.9.4 and Windows 7 x64 Ultimate on Parallels 8. This is on a Mid 2011 iMac with a 1TB Hard Drive.
Earlier this year I decided to update my setup to allow a triple boot with Ubuntu to familiarize myself a bit with Linux (using rEFIt. I was able to successfully boot into Mac and Linux and continue to use Parallels to use my Windows, however I was unable to boot into Windows anymore. Initially I setup Windows using the bootcamp assistant and then added parallels later. I no longer have a need for Linux so I used disk utility to remove the Linux partitions and gave the space back to OS X. I also moved the EFI folder to stop it from using rEFIt anymore. I tried again to boot into windows using the Startup Disk section in System Preferences but got the following message:
"No bootable device --- insert boot disk and press any key"
I restarted, put in my boot disk and was able get back into OS X. I have read some other posts on similar issues but it seems as if my case might be different since I deleted the Linux partitions.
Here are the results of the "gpt -r -vv show disk0" and "fdisk /dev/disk0" commands, tilde's added by me:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sudo gpt -r -vv show disk0
gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168
gpt show: disk0: Suspicious MBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 1953525167
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 1464844248 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1465253888 262144
1465516032 488007680 3 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
1953523712 1423
1953525135 32 Sec GPT table
1953525167 1 Sec GPT header
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>
2: AF 1023 254 63 - 1023 254 63 [ 409640 - 1464844248] HFS+
3: 0C 1023 254 63 - 1023 254 63 [1465516032 - 488007680] Win95 FAT32L
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If needed, 2.8GHz Intel Core i7 processor, 8GB 1333 MHz DDR3 Ram.
iMac (21.5-inch Mid 2011), OS X Mavericks (10.9.4)