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 21, 2013 12:10 PM in response to Christopher Murphy

so should i do this if disk utility is showing that there are 0 files on it now as shown in the picture below? There was 200+GB of files used on there before it messed up. Or should I just try to reinstall the disk image I have on my external?:

User uploaded file


I also reran the command "sudo gpt -r -v show disk0" and "sudo fdisk /dev/disk0" which yields the following results:

User uploaded file


User uploaded file



Or should I still use the Bootrec.exe tool because the repair with the DVD didn't work?

Aug 21, 2013 1:30 PM in response to DgraytheMac

Disk Utility thinks it's FAT32 instead of NTFS. Whatever precipitated all of this munged the GPT and the MBR and appears likely to have toasted the file system. It's worth running Windows Startup Repair because it'll do an fsck early on and if that fails then the file system is mostly toast. However, testdisk might be able to find a superblock that has enough correct information in it to get you file access if there's anything you want to try and salvage. But with a busted file system, it basically needs to be recreated.


I'd try to be clear on what actions precipitated this so you can avoid it in the future. I know that Disk Utility does exactly the wrong thing six ways to Sunday if you try to add one too many partitions (more than 4), but since your disk doesn't have a Recovery HD partition, I don't think that's what happened in your case since you have only three partitions: EFI, OS X, Windows. Lion and Mountain Lion users have four partitions with Windows, and when they use Disk Utility to add a 5th partition, Disk utility hoses the hybrid MBR and Windows won't boot. Typically the user removes the 5th partition, but Disk Utility doesn't correctly restore the hybrid MBR, it sets the wrong type code that identifies it as FAT32 file system, but thinks it's broken (because it's actually NTFS), and then allows the user to try and repair it which actuall in fact will break NTFS.

Aug 27, 2013 10:28 AM in response to Christopher Murphy

Wow, Christopher Murphy, you are extremely generous and helpful with your time and advice throughout this thread. I'm amazed by the willingness to help strangers you've never met.


I hope you may be willing to spend some time helping me as well. I've got somewhat of a unique situation (I believe).


I have a 13" Macbook Pro 9,2 (mid-2012). It came with a 750gb SATA HDD and internal optical drive. I installed a Samsung 840 Pro 256gb SSD in place of the HDD, then put the HDD in place of the optical drive. I have the system set up so that the SSD is my primary OSX drive with one single visible partition. Then I have the HDD set up so that the first 500gb is an HFS partition, and the rest is set aside for bootcamp. It was originally one 750gb single HFS partition, but then I used the boot camp assistant to section off the last 250gb for windows.


For the life of me I couldn't get a bootcamp install to work off of a Boot Camp Assistant created a x64 Win7 USB stick, until I read somewhere that I needed to actually disconnect the sata connector for my SSD. This worked, and Win7 was able to format from FAT32 to NTFS, then install and boot correctly from the HDD (with the SSD unplugged), and leave the HFS 500gb partition intact.


Then when I plugged back in the SSD, OSX can see that there is a bootable partition when I go in to "Choose Startup Disk" in SysPrefs, and if I hit the option key while booting, but all I get is a black screen with a blinking cursor. I believe that x64 Win7 is mad at me because I have changed the drive numbers that it uses to references how to boot up properly. I believe the solution may lay in running a Win7 boot repair set of commands, but I can't seem to access the Win 7 recovery console or "Repair Installation" feature using the USB stick that BCA created.


To complicate matters further, I successfully created a Ubuntu 13.04 USB stick, used rEFIt to boot off of it, and then had it split off and use the second half of my 250gb ntfs partition on the HDD to install linux.


To complicate things even further, I am using filevault2 with FIPS encryption module to encrypt both the SSD, and the HFS partition on the HDD.


I have installed rEFIt and used "bless" to have it be my boot selection menu (as instructed here: https://wiki.debian.org/InstallingDebianOn/Apple/MacBookAir/2-1#EFI_and_Partitio ning). I can boot successfully into OSX, and I can boot successfully into Ubuntu. I still can't boot into Win7 though.


Here is the output from a variety of commands I've seen you ask others for: (http://pastebin.com/u3V01iWR)


mbltccmbp:~ trevorcobb$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI 209.7 MB disk0s1

2: Apple_CoreStorage 501.8 GB disk0s2

3: Apple_Boot Boot OS X 134.2 MB disk0s3

4: Microsoft Basic Data BOOTCAMP 124.0 GB disk0s4

5: Microsoft Basic Data 115.5 GB disk0s5

6: Linux Swap 8.5 GB disk0s6

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *250.1 GB disk1

1: EFI 209.7 MB disk1s1

2: Apple_CoreStorage 249.2 GB disk1s2

3: Apple_Boot Recovery HD 650.0 MB disk1s3

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh SSD *248.9 GB disk2

/dev/disk3

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *8.3 GB disk3

1: DOS_FAT_32 WININSTALL 8.3 GB disk3s1

/dev/disk4

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *501.5 GB disk4


mbltccmbp:~ trevorcobb$ sudo gpt -r -v show disk0

Password:

gpt show: disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

gpt show: disk0: Suspicious MBR at sector 0

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 980102336 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

980511976 262144 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

980774120 792

980774912 242186240 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1222961152 225603584 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1448564736 16582656 6 GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F

1465147392 1743

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header


mbltccmbp:~ trevorcobb$ sudo gpt -r -v show disk1

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

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 486717952 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

488397128 7

488397135 32 Sec GPT table

488397167 1 Sec GPT header


mbltccmbp:~ trevorcobb$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 sectors]

Signature: 0xAA55

Starting Ending

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

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

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

2: DA 25 127 15 - 1023 254 63 [ 409640 - 980102336] <Unknown ID>

3: AF 1023 254 63 - 1023 254 63 [ 980511976 - 262144] HFS+

*4: 07 1023 254 63 - 1023 254 63 [ 980774912 - 242186240] HPFS/QNX/AUX


mbltccmbp:~ trevorcobb$ sudo fdisk /dev/disk1

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

Signature: 0xAA55

Starting Ending

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

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

1: EE 1023 254 63 - 1023 254 63 [ 1 - 488397167] <Unknown ID>

2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

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

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

Sep 2, 2013 11:46 AM in response to Christopher Murphy

So I'm currently waiting for the Haswell refresh of the rMBP. I haven't decided what size I want, more than likely the 15" for quad core ans possible dGPU and I know I'm getting 16GB. My SSD however, is undecided.


I want either a 256 or a 512GB SSD. The size depends on what I can do.


I want to partition the 512GB SSD into three parts. ~100GB for OS X, ~100GB for Windows 8, and the other ~300GB as storage that BOTH OSes can access. Is it possible? I read if you leave the 300GB partition as FAT32 you can use it across both, but files can't be larger than 4GB in FAT32.


Sorry if I'm explaining this badly. Is it possible?


https://discussions.apple.com/thread/5277506?tstart=0

Sep 2, 2013 6:05 PM in response to Scotch_Brawth

Hey guys,


I apologize, but I still haven't been able to recover my windows partition. Christopher Murphy, thanks for your assistance. Could you please help me if you can? And please be a bit more specific, as I'm lost and didn't quite understand what to do. All the 3 bootable partitions are there and I can access all the files, it's just failing to boot windows. It all started after i added another partition for mavericks. used to work fine with mountain lion and windows only. Here's my partition data:

*** Report for internal hard disk ***



Current GPT partition table:

# Start LBA End LBA Type

1 40 409639 EFI System (FAT)

2 409640 488690887 Mac OS X HFS+

3 488690888 489960423 Mac OS X Boot

4 662568112 818818111 Mac OS X HFS+

5 818818112 820087647 Mac OS X Boot

6 820856832 977104895 Basic Data



Current MBR partition table:

# A Start LBA End LBA Type

1 1 977105059 ee EFI Protective



MBR contents:

Boot Code: Unknown, but bootable



Partition at LBA 40:

Boot Code: None (Non-system disk message)

File System: FAT32

Listed in GPT as partition 1, type EFI System (FAT)



Partition at LBA 409640:

Boot Code: None

File System: HFS Extended (HFS+)

Listed in GPT as partition 2, type Mac OS X HFS+



Partition at LBA 488690888:

Boot Code: None

File System: HFS Extended (HFS+)

Listed in GPT as partition 3, type Mac OS X Boot



Partition at LBA 662568112:

Boot Code: None

File System: HFS Extended (HFS+)

Listed in GPT as partition 4, type Mac OS X HFS+



Partition at LBA 818818112:

Boot Code: None

File System: HFS Extended (HFS+)

Listed in GPT as partition 5, type Mac OS X Boot



Partition at LBA 820856832:

Boot Code: Windows BOOTMGR (Vista)

File System: NTFS

Listed in GPT as partition 6, type Basic Data



Thanks so much!

Sep 4, 2013 3:56 PM in response to Kirihuna

I want to partition the 512GB SSD into three parts. ~100GB for OS X, ~100GB for Windows 8, and the other ~300GB as storage that BOTH OSes can access. Is it possible?


Not via the GUI, Apple Disk Utility will not allow you to have this many partitions and a hybrid MBR. You'll have to do something totally unsupported that may at any time cause Windows to become unbootable. You can use gdisk to create a hybrid MBR, placing the GPT, EFI System, OS X and Recovery HD's into MBR #1 as type 0xEE (protected) - this happens automatically when you do NOT specify these partitions to be added to the hybrid MBR. Instead, you specify only the Windows and FAT32 partitions to be added, and only make the Windows one bootable.


As for FAT32, yes that's OK if you're able to live with the file size limitations. I do not recommend using exFAT, because it has only one FAT and isn't as easy to repair if things go bad. If you ever have a crash or power failure it's important to run repair the FAT32 volume because it doesn't have a journal. You should be able to repair it in either Disk Utility or from Windows using chkdsk. Of course the Windows volume is NTFS and Disk Utility should never be used to attempt to repair that should it be needed, only use Windows chkdsk for repairing NTFS, although this shouldn't normally be necessary because it is a journaled file system.

Sep 7, 2013 1:38 PM in response to Christopher Murphy

I have a similar problem to the OP but in reverse; After the 5th partition, I can't get into mac OS OR windows. The only way for me to do anything is to install windows off a USB and stay logged on. If I restart I BSOD. Tried to access the other partitions from windows but couldn't. Also tried to use test disk but I couldn't find partitions when I searched them. What else can I do?


I might just use recurva or idata to attempt to retrieve files and then wipe everything and reinstall mac.

Sep 7, 2013 9:23 PM in response to Christopher Murphy

Hey Christopher i went through the first couple pages and i didn't see anything that could help my situation too much since i'm not that familiar with macs, i'm hoping that you can help me out. I have a macbook air 13 inch 2012 model, running os x lion 10.7.5 I decided to install windows 7 ultimate through bootcamp and it worked for me as i used a usb flash drive to install it. I tried twice, the first time worked and had a problem after i installed the windows drivers (I received a message saying "no bootable disk....") i fixed this by pressing the alt-option button at restart and going back to os x. I removed the partition and then redid it with more memory 50g memory on the windows side (I use it for games). I successfully installed windows again and the drivers with no problem. Now is the trouble...I downloaded and installed my game, star wars the old republic. after the 5 hour installation i came back to see my computer at a gray screen???? I restarted several times and saw nothing that i could boot, no recovery HD no Macintosh HD no Windows drive, even when i pressed the alt-option button. Now it takes me to internet recovery when i press command-r. This is where im stuck. I cannot reinstall os x lion and i cant delete or repair anything from disk utility. and the only options in disk utility are disk0 and under it is Mac Os x Base (not sure of the name) but this is all i see. Some help would be greatly appreciated man

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.