You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Repairing Boot Camp after creating new partition

I'm running OS X 10.8 and Windows 7 x64 Pro.


After properly setting up Boot Camp to dual-boot Windows on my Mac mini, I decided to test whether or not it was true that creating another partition (a data partition for OS X) would interfere with Boot Camp. Wikipedia claims it does interfere but without citing a source, whilst the Boot Camp documentation itself only specifies that the disk must be a single partition _prior_ to setup - there's no mention of whether the disk must be _kept_ that way afterwards.


I opened Disk Utility, reduced the size of my OS X parition from 420GB to 80GB, and created a new partition in the unallocated space. Here's how it looks now:

User uploaded file

When I attempted to proceed with the process, I did receive a warning that doing this (and I quote), "may" cause problems with Boot Camp. Seeing as it was inconclusive, I thought I'd give it a shot - nothing ventured…


Of course, it borked Boot Camp, otherwise I wouldn't be posting here. Whilst OS X boots just fine, the Boot Camp partition now no longer shows up in the Startup Manager, though it does in the Startup Disk prefPane. If I do attempt to boot into Boot Camp, I receive the following message on a black screen:

No bootable device --- insert boot disk and press any key

The advice given to someone who had this same problem was, "fix your damaged Boot Camp volume." But I'm at a loss as to how to do that.


So, anyone know how to proceed now so that I can keep my partitions as is, whilst fully restoring normal Boot Camp functionality?

Mac mini (Mid 2011), Mac OS X (10.7.4)

Posted on Jul 26, 2012 11:28 PM

Reply
1,534 replies

Aug 19, 2013 12:30 AM in response to Christopher Murphy

@Christopher Murphy,


I am able to boot into Windows now. Thank you so much 🙂 🙂 You are really awesome. I wish I could return you the favour. Not many take their time off and help people with such complex issues. Thanks again. I will be posting a detailed note on each and every step that I have followed, later.


By the way, where did gdisk install, on Mac, if I want to uninstall it? Thank again and again 😀

Aug 20, 2013 11:29 PM in response to Scotch_Brawth

Christopher Murphy can you please help me. I upgraded to lion a month ago and tried to boot my windows partition and received the following message: bootcamp partition missing operating system. I erased my whole harddrive, reinstalled snow leopard from disk, created bootcamp partition and restored it from disk image, then used migration assistant to transfer files from my lion backup (such as music and pictures). Before using the migration assistant to transfer the files, my windows that was restored from the disk image worked fine. After transferring the files from the lion backup, Snow Leapord works fine. When I reboot using Bootcamp as startup disk I get the error: bootcamp partition missing operating system.


Results for "sudo gpt -r -v show disk0"

User uploaded file



Results for "sudo fdisk /dev/disk0"

User uploaded file


Thanks in advance!

Aug 20, 2013 11:33 PM in response to Christopher Murphy

Christopher Murphy can you please help me. I upgraded to lion a month ago and tried to boot my windows partition and received the following message: bootcamp partition missing operating system. I erased my whole harddrive, reinstalled snow leopard from disk, created bootcamp partition and restored it from disk image, then used migration assistant to transfer files from my lion backup (such as music and pictures). Before using the migration assistant to transfer the files, my windows that was restored from the disk image worked fine. After transferring the files from the lion backup, Snow Leapord works fine. When I reboot using Bootcamp as startup disk I get the error: bootcamp partition missing operating system.


Results from "sudo gpt -r -v show disk0"

User uploaded file


Results from "sudo fdisk /dev/disk0"

User uploaded file


Thanks in advance!

Aug 21, 2013 12:00 AM in response to DgraytheMac

Weird result from diskutil verifyDisk; verifyDisk and verifyVolume aren't the same thing. But in any case the GPT appears to be corrupt and needs to be repaired. And it looks like the hybrid MBR is wrong so a new one needs to be created. These aren't coincidences, you're using something that is modifying the partition maps on the disk incorrectly.


Download and install gdisk and execute this command and lets see what it says (that is a lower case L):


sudo gdisk -l /dev/disk0

Aug 21, 2013 12:47 AM in response to DgraytheMac

So what's up with the abnormal shutdowns?


As for fixing the hybrid MBR, in gdisk you'll go to the recovery menu with r <return> and then h <return> to make a new hybrid MBR. Then enter


2 3


That's 2<space>3<return>


Add GPT to MBR first entry? Yes.

<return> to accept default type code

GPT 2 MBR 2 bootable? No.

<return> to accept default type code

GPT 3 MBR 3 bootable? Yes.

Protect more partitions? No.

w <return>

y


Reboot.

Repairing Boot Camp after creating new partition

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.