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.

Cannot boot into Bootcamp after resizing Mac Partition.

Hi all,


My Bootcamp has Windows 7 and it is running low with space so I decided to free up an extra 100G from the Mac partition, hoping to merge the 100G to the Bootcamp later.


However, after resizing the Mac part, boot + option, Windows partition would not even show up.


I searched out the previous posts and saw some solutions with command lines. I was wondering if anyone could walk me through the commands and explain a little bit what each line means. I am eager to learn.


Thank you.


P.S. I called Apple and they told me to reconsolidate the 100G back to Mac, but the problem remained.

Posted on Dec 6, 2016 8:06 AM

Reply
4 replies

Jan 22, 2017 6:19 PM in response to Loner T

Loner T,


You seem to be our resident expert on this. I've read through several of the forums and I seem to be getting stuck at the same place Macnia is.


I have a mid 2012 macbook air running El Capitan. I boot camped it to run windows 7, then upgraded to Win 10 splitting the 500Gb evenly. I found that I eventually needed more space on the windows partition so I used Disk Utility to shrink the Mac partition. After restarting, and holding option, windows no longer appears as a boot option. I do still see boot camp in disk utility.


I tried running the following commands:


sudo fdisk -e /dev/disk0

p

setpid 4

07

flag 4

p

write

y

When I get to the "write" command, I receive "Operation not permitted".

What am I doing wrong?

Thank you in advance

Dec 6, 2016 8:34 AM in response to Macnia@PKU

If you need more details than the link that Rudegar has posted, please post back, and I can explain the steps and commands in detail.


The process is to find the current GPT and the Hybrid MBR. Resizing only changes the GPT and the resulting mismatch between the two causes the Windows installation not to work and boot. MBRs are allowed only four (4) entries and are limited to 32-bit numbers so cannot address a partition size larger than 2TB and cannot start outside the 2TB boundary.


If you keep the extra partition, then we use MBR stuffing, otherwise if you need to resize and absorb the disk space into Windows then we use GPT Fdisk and GParted to re-map the updated MBR back to a standard four-entry MBR.


The diskutil and gpt/gdisk commands are used to review/manipulate the GPT and MBR. This is valid for legacy BIOS installations of all versions of Windows (W7/W8.1/W10).


In the EFI Boot case, partitioning should be done before you install Windows, to avoid breaking the BCD if the partition is created after the installation.

Cannot boot into Bootcamp after resizing Mac Partition.

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