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

Mar 2, 2014 10:58 PM in response to Christopher Murphy

Sorry about that. I didn't mean to be rude, I was just out of my mind when this happened.


I changed the code and set the flag, then I was able to see Bootcamp partition, but I got operating system missing message when tried to boot.


I did the bootrec.exe set of commands, but installation couldn't be found. Booted back to OSX to see if Finder recognized the partition, but it didn't.


Guess the partition is in RAW.


Backup can't help because the things that matter the most were the documents made yesterday, and the day before. Ofcourse, backup was made some time before that.

Mar 3, 2014 12:49 AM in response to Nuvect

I ran across this on the twocanoes site:


It's a walkthourgh on how to set up a bootcamp partition remotely (using command lines.) At one point it shows how to bless a windows partition.


Set the remote Mac to boot from the Windows volume

  1. In ARD, choose your remote Macs, then click UNIX in the toolbar.
  2. Enter bless --device /dev/disk0s4 --legacy --setBoot (replace disk0s4 with the appropriate device if necessary)


So I gave it a shot:


[promptpro:~] prompt% sudo bless --device /dev/disk0s4 --legacy --setBoot

Password:

Legacy mode not supported on this system


I think I'm hosed.

Mar 3, 2014 4:33 AM in response to Nuvect

Christopher Murphy wrote:


So that points to a bootloader problem, for whatever reason Winclone hasn't restored the MBR boot strap code. Windows Startup Repair ought to be able to detect this, but if it doesn't then the bootrec.exe /FixBoot command ought to do that.

@Nuvect... Did you try this? You will need appropriate CD/USB to boot and repair.


On my system...


bless --info --verbose

EFI found at IODeviceTree:/efi

Current EFI boot device string is: '<array><dict><key>MemoryType</key><integer size="64">0xb</integer><key>StartingAddress</key><integer size="64">0xff990000</integer><key>IOEFIDevicePathType</key><string>HardwareMem oryMapped</string><key>EndingAddress</key><integer size="64">0xffb2ffff</integer></dict><dict><key>IOEFIDevicePathType</key><strin g>MediaFirmwareVolumeFilePath</string><key>Guid</key><string>2B0585EB-D8B8-49A9- 8B8C-E21B01AEF2B7</string></dict><dict><key>IOEFIBootOption</key><string>HD</str ing></dict></array>'

Boot option is 8BE4DF61-93CA-11D2-AA0D-00E098032B8C:Boot0080

Processing boot option 'Mac OS X'

Boot option matches XML representation

Could not find disk device for string

Could not find network interface.

Firmware feature mask: 0xE003FF37

Firmware features: 0xE003F537

Legacy mode suppported

Boot option is a legacy device

Searching for legacy type 'HD'

filesystem[0] '/dev/disk0s2' => '/'

Firmware feature mask: 0xE003FF37

Firmware features: 0xE003F537

Legacy mode suppported

Got IODeviceTree:/rom

Got start address ff990000

Got size 1a0000

Found PCI interconnect in protocol characteristics

IOGUIDPartitionScheme

APPLE SSD SM1024F Media

IOBlockStorageDriver

IOAHCIBlockStorageDevice

AppleAHCIDiskDriver

IOAHCIDevice

PRT0

AppleAHCI

SSD0

IOPP

RP05

AppleACPIPCI

PCI0

AppleACPIPlatformExpert

MacBookPro11,3

Root

filesystem[2] '/dev/disk0s4' => '/Volumes/BOOTCAMP'

Firmware feature mask: 0xE003FF37

Firmware features: 0xE003F537

Legacy mode suppported

Got IODeviceTree:/rom

Got start address ff990000

Got size 1a0000

Found PCI interconnect in protocol characteristics

IOGUIDPartitionScheme

APPLE SSD SM1024F Media

IOBlockStorageDriver

IOAHCIBlockStorageDevice

AppleAHCIDiskDriver

IOAHCIDevice

PRT0

AppleAHCI

SSD0

IOPP

RP05

AppleACPIPCI

PCI0

AppleACPIPlatformExpert

MacBookPro11,3

Root

Matching legacy device 'disk0s4'

Legacy boot device detected

mount: /Volumes/BOOTCAMP

Mount point for /Volumes/BOOTCAMP is /Volumes/BOOTCAMP

GPT detected

Booter partition required at index 5

System partition found

Preferred system partition found: disk0s1

Returning booter information dictionary:

<CFBasicHash 0x7fd15340ae50 [0x7fff7c5bff00]>{type = mutable dict, count = 3,

entries =>

0 : <CFString 0x10e874e70 [0x7fff7c5bff00]>{contents = "System Partitions"} = (

disk0s1

)

1 : <CFString 0x10e875650 [0x7fff7c5bff00]>{contents = "Data Partitions"} = (

disk0s4

)

2 : <CFString 0x10e875670 [0x7fff7c5bff00]>{contents = "Auxiliary Partitions"} = (

)

}


sudo gpt -vv show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=1000555581440; sectorsize=512; blocks=1954210120

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 1954210119

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

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

1454210080 992

1454211072 499998720 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1954209792 295

1954210087 32 Sec GPT table

1954210119 1 Sec GPT header



sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 121643/255/63 [1954210120 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 - 1452530904] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [1454211072 - 499998720] HPFS/QNX/AUX



You may want to pose this question on the Winclone Support forum as well. (Also see help for --legacydrivehint).


@Christopher... The 1MB boundary alignment can be confusing.


Message was edited by: Loner T

Mar 3, 2014 4:39 AM in response to Nuvect

Nuvect wrote:


It's a walkthourgh on how to set up a bootcamp partition remotely (using command lines.) At one point it shows how to bless a windows partition.

Do you have the original Windows install (without SysPrep) that can be used from the old MP 2008 in target disk mode? I would also check the bless --info on that volume?

Mar 3, 2014 11:08 AM in response to ipecek

Booted back to OSX to see if Finder recognized the partition, but it didn't.


That isn't a good sign. Are you sure you only resized OS X's volume? You didn't resize or try to resize the Bootcamp volume in either OS X or in Windows did you? If you didn't, that NTFS volume should still be valid and mount read-only in OS X. It's possible there's a problem that causes even read-only mount to fail.


I'd try booting the Windows installer, get to a command prompt, and see if chkdsk without options finds a valid NTFS volume and if it needs repairs. If it's found, but not prestine, then it needs to be fixed with chkdsk /f If that also doesn't find anything, then it sounds like you're in test disk territory.

Mar 3, 2014 11:13 AM in response to Loner T

The 1MB boundary alignment can be confusing.


All I look for are very large unallocated gaps. And to make sure the start-size values match between fdisk and gpt outputs. And that the Bootcamp MBR partition is type code 07 and flagged bootable. That's basically it. The really confusing part is inferring what the prior state was based on the existing state minus the poster's description of exactly what they did.

Mar 3, 2014 3:04 PM in response to Christopher Murphy

Christopher Murphy wrote:


The 1MB boundary alignment can be confusing.


All I look for are very large unallocated gaps. And to make sure the start-size values match between fdisk and gpt outputs. And that the Bootcamp MBR partition is type code 07 and flagged bootable. That's basically it. The really confusing part is inferring what the prior state was based on the existing state minus the poster's description of exactly what they did.

Resizing using OSX DU and Windows tools is where most posters step on themselves. Despite Apple warnings, this is a huge hole.


It just makes me nervous to see gaps with possible MBR corruption. I do realise that boundary allignment can also cause this.


I should have mentioned to ipecek and NUvect to start separate threads to avoid confusion.


In NUvect's case I did not realise that drivers are removed in the cloning/migration process.

Mar 4, 2014 5:04 AM in response to Loner T

I too, have ran into issues with bootcamp recently and with a lack of terminal knowledge, am stumped at which process might help me.


Last night, I was using Bootcamp fine through VMware Fusion, no issue at all. I shut the VM down correctly and closed VMware.

Later that evening, I was trying to copy files onto my iPad through iTunes and got the warning that I didn't have permissions to view the contents of that file – I checked file info, I do, and also transferred the same file to my iPhone no more than 5 minutes prior.


Just in case, I booted into the recovery partition on 10.9.2 and ran permission and disk checks. When verifying the entire disk however, I got the error "The partition map needs to be repaired because there's a problem with the EFI system partition's file system".
A repair couldn't be done on the live disk so I booted back into OS X and created a recovery USB. From this, I ran the repairs to the entire disk, and repaired the permissions and disk for my Mac HD partition, and then checked the disk again in the recovery partition and whilst in OS X – the error is no longer registering.


From here – I no longer have access to Bootcamp. The partition is mounting in Finder, and viewable in Disk Utility. It even appears in the "Startup Disk" pref pane. Before I booted into the recovery partition using the "alt" key, the Windows parition was there. Since that error, it's no longer available.

Selecting the partition in "Startup disk" just results in a blank screen on boot.


I've not resized the partition, nor have I changed any disk sizes.

I did run the following commands following the iTunes issue in an attempt to correct:


sudo chmod a+rx /volumes/*
sudo chflags 0 /volumes/*


Could that have caused an issue?


I understand I can probably remove the partition and start again, but that defeats the point. Surely there must be a fix through command line or something?


Kind regards, and thanks in advance,

Jamie

Mar 4, 2014 5:31 AM in response to jamie.shaw

Oh, and here's the output through the various terminal commands:


// sudo gpt -r -vv show disk0
------------------------------------------------------------------------------
gpt show: disk0: mediasize=500277790720; sectorsize=512; blocks=977105060
gpt show: disk0: PMBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 977105059
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 876953152 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
877362792 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
878632328 632
878632960 97755136 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
976388096 716931
977105027 32 Sec GPT table
977105059 1 Sec GPT header



// sudo fdisk /dev/disk0
------------------------------------------------------------------------------
Disk: /dev/disk0 geometry: 60821/255/63 [977105060 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 977105059]
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

// diskutil list
------------------------------------------------------------------------------
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 449.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data Windows HD 50.1 GB disk0s4

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.