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 3, 2014 2:17 PM in response to Bx029297

"none worked" I don't know what that means other than presumably it doesn't boot Windows. But tell us what did happen for each step, because that'll give a clue where the problem is.


Does the Windows "BOOTCAMP" volume mount (read-only) in OS X? That is, do you see the Windows drive in the Finder and can you see your Windows files in it?

Jul 3, 2014 3:53 PM in response to Christopher Murphy

ok so this is what i did :


I put the windows 7 cd in the dvd drive


Selected a language, time, currency, keyboard, clicked NEXT
Then clicked 'Repair your computer"

then there was a box that said "use recovery tools that can help fix problems starting windows"

*"select the operating system that you wanted to repair,but there were none so clicked NEXT


Clicked Startup Repair

new windows said : Operating System: Unknown or (Unknown) local disk

Startup repair cannot repair this computer automatically , i then clicked "send information about this problem (recommended)"


In the diagnosis and repair details this is what i got:


Startup repair Diagnosis and repair log

Number of Repair Attempts: 1

Session details: System Disk = (device) Harddisk0

Windows directory=

AutoChk Run= 0

Number of root causes= 1


under " Test performed" i had


Name: Check for updates

Result Completed successfully. Error Code= 0x0

Time taken= 31ms


Test name: System Disk text

result completed successfully> Error code= 0x0

Time taken=15ms


Boot manager is missing or corrupted


Repair Action: File Repair

Result Completed successfully. Error Code=0x15

Time taken= 0ms


so i went back to the previous page with all the different options: Startup repair, System restore, System image recovery,Windows Memory Diagnosis, command prompt


Couldnt choose "system restore" as i wasn't able to choose any OS.


Clicked Command Prompt

typed Bootrec.exe /fixmbr, pressed enter

"The operation completed successfully" ,so i tried to reboot and press ALT/option , clicked on the Windows Icon but got the error


'A disk read error occured'


Boot Windows CD again, command prompt

typed Bootrec.exe /ScanOS ,pressed enter

"Successfully scanned Windows installations"

"Total identified installations : 0 "

"The operation completed successfully" , then reboot

so i tried to reboot and press ALT/option , clicked on the Windows Icon but got the same error


'A disk read error occured'


same for Bootrec.exe /RebuildBcd in the command prompt>


i then tried

bcdedit /export C:\BCD_Backup

but it said "the store export operation has failed.

the system cannot find the file specified''

That's pretty much all i got the same error from trying to boot windows at the startup..

Jul 3, 2014 4:12 PM in response to Christopher Murphy

The windows drive "BOOTCAMP" does not show up in the finder when i type it as "BOOTCAMP"

however i can still see it as a second drive in the left hand side under "device"


- shows a folder in startup disk "windows bootcamp" instead of showing a drive

- third partition in Disk utility ( 3partitions in total Max osx, Linux, Windows) as i deleted the Linux Swap partition that i had created.

Jul 3, 2014 5:13 PM in response to Bx029297

Do you want to start a separate thread for this? Also can you post the output of


sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


Do you have a good Windows backup (not a Mac OS X disk utility image or a time machine)?


How much effort do you want to spend in fixing this? Do you have an option to re-install and get all your data and applications?

Jul 4, 2014 4:26 AM in response to Loner T

Loner T, I do not mind spending time on trying to fix this at all, i've already spent quite some time


I have got now my bootcamp data on a usb drive.


Now: - If ALT/Option key is pressed during power-up and Windows is selected from the icons without the Windows CD/DVD in the Optical drive

i get the error: A disk read error occurred.


-If ALT/Option key is pressed during power-up AND the Windows CD/DVD is in the Optical drive,

i can see choose between three Hard drives: Mac os, Recovery HD, Windows, and two CD icons: Windows CD, EFI BOOT

if i select Windows hard drive or Windows CD i get the same message error "A disk error occurred".

I can only start windows CD by rebooting and holding "C" for some reason.

output of sudo gpt -vv -r show /dev/disk0 gives :


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

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/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 161807472 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

163486648 1096

163487744 147910656 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

311398400 829440

312227840 312913920 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

625141760 655

625142415 32 Sec GPT table

625142447 1 Sec GPT header


output of sudo fdisk /dev/disk0 gives:


Disk: /dev/disk0 geometry: 38913/255/63 [625142448 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 - 161807472] HFS+

3: AB 1023 254 63 - 1023 254 63 [ 162217112 - 1269536] Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [ 163487744 - 147910656] HPFS/QNX/AUX

Jul 4, 2014 6:22 AM in response to Bx029297

Finally solved the problem,


i deleted one of the partition that i had created (linux) so as to resize the mac os x partition to what it was like before.

Hence there are only two visible partitions in disk Utility now Mac OS x and Bootcamp.

Then typed in command:


sudo fdisk -e /dev/disk0

setpid 4

07

flag 4

write


then tried to reboot (without windows CD) , held ALT/Option button , selected Windows and running windows 7 seems to be working fine now.


Thank to both of you Christopher Murphy and Loner T.

But does it mean that i will have issues creating multiple partitions? because i still want to fully install Linux and not run it on VM..

Jul 4, 2014 7:33 AM in response to Bx029297

Glad to see it work.


The limitation is due to the Bootcamp implementation using an MBR on a single disk.There is a little bit more freedom when using multiple disks.


If you need to run Linux, one option to consider is an external storage device so the partitions which use Bootcamp on the main disk can hold OSX and Bootcamp. Another option is to add an additional disk into your machine, and install Linux on the second disk, or move Bootcamp to the second disk and use the first disk as OSX/Linux.

Jul 4, 2014 8:28 AM in response to Bx029297

Yes. A single disk and the MBR implementation requires 4 partitions as maximum (as you can see in fdisk output). You can create your own Hybrid MBRs, but they are fragile and some Disk Utility operations can cause problems, including data loss.


Using a second storage device, is probably the best solution (with least amount of issues), if you do want to use VMs.

Jul 4, 2014 11:10 AM in response to Loner T

Do you know if i still need to create partitions using rEFInd?


i quote from Christopher Murphy "


"rEFIt is no longer maintained you shouldn't use it. Use rEFInd instead, which is a fork of rEFIt and is actively maintained by Rod Smith who is also the author of GPT fdisk (a.k.a. gdisk). You'll want to read the instructions on how to configure it to use the linux EFI STUB bootloader, that way you don't have to deal with GRUB. rEFInd is a boot manager, strictly speaking it's not a bootloader. It dynamically finds the Windows and OS X bootloaders, and with minimal one time configuration it can locate linux kernels (including new ones when you do software updates) and use the built-in EFI STUB bootloader that's in the kernel itself."

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.