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

Jul 6, 2014 8:34 AM in response to Christopher Murphy

ok Chris please tell me if i'm missing something


Option 1From my single partition Mac OS x should i first use bootcamp assistant to create my bootcamp partition

then create my linux swap and ubuntu partitions

then use gdisk to create the hybrid mbr?


or not use bootcamp assistant at all and first create partitions with gdisk then the hybrid mbr?


by the way let's say in gdisk partition number ; 1 EFI System Partition

2 Apple_HFS_Untitiled_2

3 Recovery HD

4 LINUX swap

5 Ubuntu

6 Bootcamp


when they ask


"Type from one to three GPT partition numbers, separated by spaces, to be

added to the hybrid MBR, in sequence: " which numbers would suit in order to create the hybrid MBR that you just showed me?


thank you

Jul 6, 2014 10:23 AM in response to Bx029297

should i first use bootcamp assistant to create my bootcamp partition then create my linux swap and ubuntu partitions then use gdisk to create the hybrid mbr?

No. Because Boot Camp Assistant will only make GPT and MBR partition #4 for Windows, and that's not what you want. You want Linux in between OS X and Windows last, and Boot Camp Assistant cannot do that for you.

Also the proscription on GUI applications extends to the installer when doing major OS X upgrades. It runs diskutil repairdisk which right now always removes hybrid MBRs if the GPT contains 5 or more partitions. So anytime you do a major OS X upgrade in this configuration, the hybrid MBR will be removed and Windows will be unbootable until you recreate the hybrid MBR. So you need to be comfortable with recreating hybrid MBRs with gdisk. Boot Camp Assistant cannot help you at all with the configuration you want.

Jul 10, 2014 1:14 PM in response to Christopher Murphy

I could really use some help if you don't mind Christopher. You seem very knowledgeable in this area.


My problem is that I cannot get windows to boot after swapping my hard drives to a new machine. I had a 2010 MacBook Pro 15" with a 512 gb SSD with only OSX and a 750 gb HDD with a 250 gb partition for Windows and a 500 gb partition for storage(Formatted with Mac OS Extended) installed in the superdrive slot. Everything was working fine in the 2010 model but when I moved it over to the 2012 MacBook Pro 15" it will not boot. I have had a few different errors such as "Operating System not found" and the most recent is "No Bootable Device Found." I have also tried making a repair disk and tried using it multiple times with different errors each time. Now when I boot to that it just says "This version of System Recovery is not compatible with the version of Windows you are trying to repair" even though its the same bootable usb I used other times and it loaded fine.


The kicker is that it loads just fine in Parallels and all my files are visible from OSX but it will not boot natively to Windows. Which is what I need to be able to use the full power of the graphics card. I will also note that I used the instructions here http://twocanoes.com/support/winclone/migrating-a-bootcamp-partition-with-winclo ne so that I could install the bootcamp drivers for the 2012 model.


Any and all help would be greatly appreciated.


Oh and maybe this will help too:

nicholas-macbook-pro:~ nicholas$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *512.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh SSD 511.3 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_HFS Storage 450.0 GB disk1s2

3: Apple_HFS 10.10 Test 49.9 GB disk1s3

4: Microsoft Basic Data BOOTCAMP 249.8 GB disk1s4

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *16.2 GB disk2

1: Windows_FAT_32 NO NAME 16.2 GB disk2s1


nicholas-macbook-pro:~ nicholas$ sudo gdisk /dev/disk1

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.

Jul 13, 2014 9:09 PM in response to NikkuShouri

Hey guys, I'm new to using disk and I am trying to solve a boot up problem, but I'm stuck. Initially, my bootcamp partition would not show up during "holding down OPTION" boot up. I tried to remedy this by following what everybody else has been doing and downloaded gdisk. Then, I went ahead and wrote my Bootcamp partition to a hybrid MBR with the EFI in front and rebooted. The bootcamp partition showed up, but when I clicked to start Windows, the OS could not be found. Here is what I get when I start gdisk:

sudo gdisk /dev/disk0

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.


Here is what I get when I type p:

Command (? for help): p

Disk /dev/disk0: 488397168 sectors, 232.9 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): CCD188D9-10EA-4398-8469-EB33E69D89E5

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 488397134

Partitions will be aligned on 8-sector boundaries

Total free space is 126900133 sectors (60.5 GiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 184447631 87.8 GiB AF00 Samsung SSD

3 184447632 185717167 619.9 MiB AB00 Recovery HD

4 312616960 488396799 83.8 GiB 0700 BOOTCAMP


Here is what I get when I type "sudo got -r -vv show disk0":

kemaltalen$ sudo gpt -r -vv show disk0

Password:

gpt show: disk0: mediasize=250059350016; sectorsize=512; blocks=488397168

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 488397167

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

184447632 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

185717168 126899792

312616960 175779840 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

488396800 335

488397135 32 Sec GPT table

488397167 1 Sec GPT header


And finally, here is what I get when I type "sudo fdisk /dev/disk0":

Disk: /dev/disk0 geometry: 30401/255/63 [488397168 sectors]

Signature: 0xAA55

Starting Ending

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

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

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

*2: 07 1023 254 63 - 1023 254 63 [ 312616960 - 175779840] 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



Sorry for the huge post, but I hope somebody can help me out here. Thanks.

Jul 21, 2014 1:50 AM in response to Christopher Murphy

Hello Christopher,


First of all I would like to appreciate the awesome work you are doing supporting the community members for more then a year now ... kudos to you sir ...


I hope you can help me with my issue too. I have not yet created an extra partition but i want to. So, currently i have 2 (major) partitions, macintosh hd and bootcamp ... i wish to create 2 more partitions from macintosh hd and would still like to retain my bootcamp for booting into windows 8.1. Can u plz tell me, how can i achieve that ??


I thought precaution is better then cure so asking you before partitioning. Any help is appreciated. Thanks

Jul 21, 2014 4:08 AM in response to bhargav17

The limitations of the MBR implementation for Windows (via the CSM-BIOS layer) cause two separate partitioning schemes to be used, which are unaware of each other. This is very fragile at best. The MBR layer supports only four partitions and with two hidden partitions (Recovery and EFI) Windows and OSX make it four, which is the limit. You should not resize or add new partitions to a disk which has BOTH OSX and Windows (using this partitioning scheme).


If you go back a few pages you will see a Hybrid MBR discussion, which can be done, but you should understand it's limitations and fragility.


If you are interested in partitioning discussion(s) please see http://www.rodsbooks.com.


If you still want to do this, do not use Bootcamp, but use Virtualization products, which do not rely on underlying disk partitioning.

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.