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

May 3, 2014 3:57 AM in response to Christopher Murphy

Christopher Murphy wrote:


Yes, step 2 should be delete Recovery HD not Mac HD.


If you delete Recovery HD, you will no longer be able to do an emergency boot from the drive, which also means you can't run Disk Utility to do any sort of repairs. Instead, you'll need to boot OS X over the Internet. If you option-key boot to get the boot manager, you'll see a way to connect to a network, and you'll be able to boot the computer from the network and there you'll have the option to use Disk Utility or reinstall the OS.


The other thing you can't do without Recovery HD is encrypt the drive with FileVault 2.

A far more reliable approach is to place data partitions on an external drive, everyone co-exists happily that way.

May 7, 2014 1:29 AM in response to Scotch_Brawth

I am new here and hope that anyone can give me some advice.


Unfortunately it seems that I have lost my bootcamp partition, from where I need just one file urgently by updating to mavericks.


I have read practically all former posts of this discussion and tried to fix my problem that is:


1) After updating my macbook from 10.6 to 10.9 my bootcamp installation with windows 7 (x32) was not showing up at the boot options any more, but instead a new option (Restore 10.9.2) showed up. I have never changed partition values before (only bootcamp installation did).


2) I tried to fix the problem with Disk Utilty (check, repair), but without success.


3) I found this discussion and used fdisk to change the id of the bootcamp partiton to 07. After change fdisk reported the values below, the bootcamp boot option showed up again, but starting it, I got the message "Missing operating system".

User uploaded file


4) I used testdisk to find the correct start and end sectors of the original bootcamp partition or to get access to the badly needed file. Unfortunately that didn't work well:

User uploaded file


5) I looked at all the partitions, but only the one with the size of 196857856 sect. seemed to hold some folders resp. files, but not what I expected and hoped:

User uploaded file


6) I have no more ideas how to continue to restore the original bootcamp partition or at least the file needed. I do not want to continue with gdisk and delete and rebuild an hybrid mbr partition, as I could not find the correct sector values (begin and end), in addition I fear that mavericks might already have overwritten some of the bootcamp data.


Please help me with your judgement: Is there any hope? I would very much appreciate a reply.

May 7, 2014 3:59 AM in response to habloc

10.6 has no concept of Recovery, and DU/Mavericks upgrade blindly ignores an older Bootcamp.


1. Do you backups of pre-upgrade 10.6 (including possibly the older Bootcamp installation)?

2. More than likely, the Mavericks upgrade relocated the Bootcamp volume to GPT 4, and GPT 3 became Recovery HD.

3. Do you see a Windows as an option when Option/ALT key is used during a boot?


Can you post diskutil list, gpt output? It may be as simple as a Windows Recovery to fix the 'Missing OS'. There is an explanation in this thread somewhere of a dd command to see the boot sector that Christopher wrote.

May 7, 2014 5:11 AM in response to Loner T

1. I have continuous backups (also of pre-upgrades) but only with time machine. Unfortunately, as I now found out, it probably did not backup the bootcamp installation, at least I cannot find anything like that.

3. I can see a Windows option at boottime, but chosing this option reports the error "Missing system". I tried to reinstall Windows 7, but quit the installation (without writing or changing anything) when Windows installation reported 93.6 GB free of 93.6 GB alltogether at the Windows partition.


The output of diskutil, gpt:

User uploaded file

Does this help for giving me further hints?

May 7, 2014 8:30 AM in response to habloc

May I suggest that you look into each MS Data entry using TestDisk. It is rather unfortunate that the layout before the Mavericks upgrade is unavailable.


Another option is to look at the backup (which does not have the Bootcamp backup from 10.6) and restore it to a separate external disk (preferrably of the same size as the current disk) and look at it via Testdisk and gpt/fdisk utilities and find out start/end sector numbers. Once you have these numbers, look on the current "corrupted" disk in the same locations (sectors) for files to see if they can be retrieved. If you have backup just prior to the 10.9 upgrade, that would be the best one to restore and analyse.


This is an approximate exercise, not a very exact one.

May 11, 2014 11:16 PM in response to Christopher Murphy

Hello Christopher,


same problem is happening to me.


I used both sudo command line, but results are slitly diferent from Scotch_Brawth's,

Last login: Mon May 12 07:44:56 on ttys000

jonathans-mbp:~ jonathanraillard$ sudo gpt -r -vv show disk0

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

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 1465149167

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

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

1251679128 1128

1251680256 117184512 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1368864768 2048

1368866816 96280576 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465147392 1743

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header

jonathans-mbp:~ jonathanraillard$ 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 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>

2: AF 1023 254 63 - 1023 254 63 [ 409640 - 1249999952] HFS+

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

4: 0B 1023 254 63 - 1023 254 63 [1251680256 - 117184512] Win95 FAT-32

jonathans-mbp:~ jonathanraillard$


Any chance you could tell me if this is fixable, and if i should follow the same path as you showed Scotch?


FYI : windows 7 stoped booting after creating a third partition(MS dos-FAT32) on my MBPro, MBP running OSX 10.9


Thank you in advance.

May 11, 2014 11:43 PM in response to iJojonathan

diskutil command :


jonathans-mbp:~ jonathanraillard$ diskutil list /dev/disk0

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 640.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data UBUNTU 60.0 GB disk0s4

5: Microsoft Basic Data BOOTCAMP 49.3 GB disk0s5

jonathans-mbp:~ jonathanraillard$

May 25, 2014 7:32 AM in response to Scotch_Brawth

@Christopher Murphy,



PMFJI, I have a problem similar to Scotch_Brawth. I have a Vista Partition that no longer boots on my MacBook Pro. I have a post here: https://discussions.apple.com/thread/4144252?tstart=0 . I wonder if you can help me, but I am nervous at Terminal commands. I think the partitions are just misaligned. Apologies for such etiquette, but I don't know any other way to contact you.

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.