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

Jan 20, 2013 6:09 PM in response to Scotch_Brawth

Hello All I have the same issue where I resized the OSX partition and then lost my boot camp. I have tried all the steps listed here to recreate the PMBR and then tried to use windows repair to fix the bootloader with no sucess. So I wanted to solicit any advice on next steps for recovery, I am thinking the partition boundaries are off a bit so that it is unable to be recognized from with in the windows environment as NTFS. Here is my output for the basic information. I noticed Christopher Murphy is indeed the expert and applaud him for the help he provides! 🙂


gpt -r -vv show disk0

gpt show: disk0: mediasize=320072933376; sectorsize=512; blocks=625142448

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 625142447

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

304014520 262144

304276664 246315112 3 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

550591776 74550639

625142415 32 Sec GPT table

625142447 1 Sec GPT header



diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *320.1 GB disk0

1: EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 155.4 GB disk0s2

3: Microsoft Basic Data 126.1 GB disk0s3


Any advice is greatly welcomed!


Jan 20, 2013 8:24 PM in response to DSC426

In other words, have a partition both Windows and OSX could see/use, independent of the OS I booted into.


Apple tools won't let you do this, as you've found, their tools break Boot Camp when you do this. Your options for a file system are FAT32 and NTFS, I simply don't recommend using exfat for this purpose.


I don't know if I can do that now somehow and not lose data.


To simultaneously resize NTFS and OS X on the same disk requires a 3rd party utility. I think the suggested tools are Winclone, iPartition, and CampTune. You'd have to search the forums, or get reviews elsewhere. I haven't used any of those tools.

Jan 20, 2013 8:26 PM in response to Christopher Murphy

fdisk /dev/disk0

Disk: /dev/disk0 geometry: 38913/255/63 [625142448 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 0 0 2 - 1023 254 63 [ 1 - 304276663] <Unknown ID>

*2: 07 1023 254 63 - 1023 254 63 [ 304276664 - 246315112] HPFS/QNX/AUX

3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

Jan 20, 2013 8:32 PM in response to frisco330

Without a complete history of the disk, I can't even begin to speculate. But the hybrid MBR #2 entry, and GPT #3 entry contain the same start sector value for Windows. So if the start sector is actually something else, neither partition table contains that information presently. So in effect it's total data loss of the Boot Camp partition unless and until you can find the actual start sector and make the proper change in both GPT and MBR.


I can't say I have good advice how to produce other than by deleting the partition you have for Boot Camp, creating a new one, reinstalling Windows and restoring your data from backups.


Otherwise, possibly Test Disk can help find the start sector of the NTFS volume.

Jan 20, 2013 8:43 PM in response to Christopher Murphy

Christopher,

Thanks for all your assistance.

Well seems this is what testdisk shows does this help at all?


Disk /dev/disk0 - 320 GB / 298 GiB - 625142448 sectors (RO)

Current partition structure:

Partition Start End Size in sectors


1 P EFI System 40 409639 409600 [EFI]

2 P Mac HFS 409640 304014519 303604880 [Macintosh HD]

No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker

3 P MS Data 304276664 550591775 246315112 [BOOTCAMP]

3 P MS Data 304276664 550591775 246315112 [BOOTCAMP]


Jan 22, 2013 9:47 AM in response to .Impact

Since you have five GPT partitions, you can't put them all into the MBR which can only hold four partitions. So what you'll need to do is add partitions 4 5 to the MBR, and flag only the one that's bootable (I can't tell which one is bootable but I'll guess it's #4). Doing this will mean the OS X volume is not in the MBR, and thus will not be visible to Windows. FYI.

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.