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

Mar 29, 2014 1:18 PM in response to Loner T

Ok, that worked! I managed to get through to the recovery console where I ran /FixMbr and /FixBoot. (the command prompt returned succesful)


However, now when I reboot holding option, and select Windows, nothing happens. The screen freezes, and the computer doesn't try to do anything.


When I boot to OS X and go to System Preferences - Startup Disk, the Windows Bootcamp option is no longer there, so I can't force the comp to restart to Windows. I'm not sure exactly when Bootcamp dissapeared from Startup Disk, it may have already gone before I attempted these latest steps.


So just to summarise, I can see Windows as a bootable partition when restarting holding the option key, however nothing happens when I select it. And I cannot see Windows from within OS X's Startup Disk preferences pane.

Mar 29, 2014 2:43 PM in response to jordan_ellipsis

My results for [sudo gpt -r -vv show disk0] and [sudo fdisk /dev/disk0] are still the same as they were earlier (pictured in my initial post above).


In this time I probably could have reinstalled Windows, are got the programs I need up and runing again! Should I just look at doing this? Like I said, I have every file I need backed up.


It's worth mentioning that I have an old hard drive with a fully functional OSX Mavericks / Windows 8 setup (i don't use this hard drive for anything, I had just used it to test installations). Would it be worth using Winclone to copy that version of Windows to my current hard drive, instead of installing Windows all over again?

Mar 29, 2014 6:37 PM in response to Loner T

Ok, thanks Loner T!


I'm making a WinClone image of my working-Windows partition now - the one on the external drive.


Then on my main drive (the problem-drive), I'll use bootcamp assistant to remove the faulty windows partition, and hopefully restore the full 512Gb to OS X. I'm a little worried there's gonna be some free space that get's lost... but let's see how it goes.


With the 512Gb of OS X, I can then re-make a windows partition - but i'll do this manually via Disk Utility. I'll make a 101Gb MS-DOS (FAT32) partition. The WinClone image I will be restoring from is 101Gb.


Finally, fingers crossed, I'll use my external drive to run WinClone, and restore the image i've made to that FAT32 parition.


I'll let you know how this goes. If you recommend any changes to this process, let me know!

Mar 30, 2014 6:08 AM in response to jordan_ellipsis

jordan_ellipsis wrote:


Then on my main drive (the problem-drive), I'll use bootcamp assistant to remove the faulty windows partition, and hopefully restore the full 512Gb to OS X. I'm a little worried there's gonna be some free space that get's lost... but let's see how it goes.


If you delete the Bootcamp partition, the OSX SSD can be converted to a single partition scheme, till you are ready to re-partition for Winclone.


Your steps match this - https://www.twocanoes.com/winclone/support/create-a-boot-camp-partition and other FAQs.

Mar 30, 2014 6:44 AM in response to Loner T

Sucess! It worked! Thanks so much for your help Loner T!


A small note for anyone else attempting this: my first attempt to restore the Winclone image didn't work. The program just sat there idle, when it was supposed to be restoring. I found out it was because my destination partition was slightly too small (well, it was the exact same size as the Clone image, 101Gb). I increased my partition to something like 110Gb, and tried again. It worked!


So although I wasn't able to resolve the initial problem (to which this thread is dedicated), I at least now have a bootable windows partition again, and I can copy over my backed-up files.


Thanks again!

Mar 30, 2014 9:03 PM in response to Loner T

Hi T,


I can now boot from both windows and OSX after re-create the hybrid MBR. However, i find that i cannot read the Mac and FAT(formatted in osx) partition any more in windows even with bootcamp tool. Both partitions are marked as GPT Protective Partition. Is this expected? If there any method the make it readable again?

here is the screen

User uploaded file


Thanks.

Mar 31, 2014 10:33 AM in response to whatda3876

Can you provide the output of


diskutil list

sudo fdisk /dev/disk0

sudo fdisk /dev/disk2


There is a read-only HFS driver which is installed as part of Bootcamp drivers. Here is what I have in BootCamp.xml. You should not change the drive letters assigned to the drives, otherwise it causes excruciatingly painful issues.


<Component Name="AppleHFS.sys"GUID="*"SharedDLL="yes">


<File Name="AppleHFS.sys">


<KeyPath>yes</KeyPath>


<FileVersion>5.0.0.1</FileVersion>


</File>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleHFS</Key>


<Name>Type</Name>


<Type>integer</Type>


<Value>2</Value>


</Registry>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleHFS</Key>

<Name>ErrorControl</Name>


<Type>integer</Type>


<Value>1</Value>


</Registry>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleHFS</Key>


<Name>Start</Name>


<Type>integer</Type>


<Value>0</Value>


</Registry>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleHFS</Key>


<Name>Group</Name>


<Type>string</Type>

<Value>File System</Value>


</Registry>


</Component>


<Component Name="AppleMNT.sys"GUID="*"SharedDLL="yes">


<File Name="AppleMNT.sys">


<KeyPath>yes</KeyPath>


<FileVersion>5.0.0.0</FileVersion>


</File>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleMNT</Key>


<Name>Group</Name>


<Type>string</Type>

<Value>System Bus Extender</Value>


</Registry>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleMNT</Key>


<Name>Type</Name>


<Type>integer</Type>


<Value>1</Value>


</Registry>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleMNT</Key>

<Name>ErrorControl</Name>


<Type>integer</Type>


<Value>1</Value>


</Registry>


<Registry>

<Key>HKLM\SYSTEM\CurrentControlSet\Services\AppleMNT</Key>


<Name>Start</Name>


<Type>integer</Type>


<Value>0</Value>


</Registry>


</Component>


The following article refers to a manual installation of this driver, which should not be required.


http://www.markc.me.uk/blog/files/HFSOnWindows.html


Can you check your Windows Registry for the Registry keys referenced? Please do not modify the Registry, unless you really need to.

Apr 3, 2014 8:56 PM in response to Scotch_Brawth

I'm also having trouble with BootCamp, the option to boot into Windows is gone. I can see the partition in Disk Utility and can navigate/copy the files from the Bootcamp partition through Finder. I'm comfortable using terminal, but I can't follow the other posts enough to work through the repair process.

I have a late 2013 MBP

Here is the result from sudo gpt -r -vv show disk0


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 684325792 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

684735432 1269544 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

686004976 93834512

779839488 197265408 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

977104896 131

977105027 32 Sec GPT table

977105059 1 Sec GPT header



And from sudo fdisk /dev/disk0


Disk: /dev/disk0 geometry: 60821/255/63 [977105060 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 - 684325792] HFS+

3: AB 1023 254 63 - 1023 254 63 [ 684735432 - 1269544] Darwin Boot

4: 0C 1023 254 63 - 1023 254 63 [ 779839488 - 197265408] Win95 FAT32L



And from sudo gdisk /dev/disk0

Password:

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): C98AA61E-9742-489B-A350-287E1DBC41AA

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 93834649 sectors (44.7 GiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 684735431 326.3 GiB AF00 Macintosh HD

3 684735432 686004975 619.9 MiB AB00 Recovery HD

4 779839488 977104895 94.1 GiB 0700 BOOTCAMP


Command (? for help):



Any help is greatly appreciated, as I am trying to avoid losing information that can only be extracted once Windows is running correctly.


Thanks

Apr 4, 2014 2:55 AM in response to .preatorian.

.preatorian. wrote:


I'm also having trouble with BootCamp, the option to boot into Windows is gone.


686004976 93834512

Looks like the partitions were resized in Disk Utility to leave this "hole".


Your MBR needs to be corrected as the first step. Please see this link - https://discussions.apple.com/thread/5105628?answerId=22253524022#22253524022


You may also need Windows Repair after this is done.

Apr 4, 2014 7:29 PM in response to Loner T

Yes, that is correct. I was having an issue with the system and the Apple tech instructed me to make a "test" partition. You would think the Apple support staff would know the result of adding a partition when Bootcamp is used, I learned the hard way.

I followed the steps in the article and that seemed to repair the MBR, and Windows will now boot.


I tried to fully expand the Mac partition, but it never finishes the process and I am left with this:


User uploaded file


Is there something else that needs to be fixed?

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.