Scotch_Brawth

Q: 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:

/___sbsstatic___/migration-images/190/19047693-1.png

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

Close

Q: Repairing Boot Camp after creating new partition

  • All replies
  • Helpful answers

first Previous Page 68 of 102 last Next
  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jan 4, 2014 3:37 PM in response to JustAHobbit
    Level 3 (555 points)
    Jan 4, 2014 3:37 PM in response to JustAHobbit

    Hmm, so it's possible Apple's firmware and the Windows bootloaders and kernel have no problem with type code 0x0C. But I'll bet dollars to donuts that Apple's Startup Disk expects to see that partition type code set to 0x07. So if you haven't used setpid in fdisk to change the 0C to 07, try that, write out the new results, reboot OS X and see if Startup Disk now shows it as an option.

  • by Number88,

    Number88 Number88 Jan 4, 2014 3:44 PM in response to Christopher Murphy
    Level 3 (750 points)
    Jan 4, 2014 3:44 PM in response to Christopher Murphy

    I too have often wondered about this type code. It's a valid type code for a Windows partition but as you say it's used on a FAT32 partition. Interesting that this case boots ok as is whereas others have not.

    Changing the type to 07 was my next port of call if setting the boot flag didn't work.

    Interesting. Sadly I have no dollars or donuts to gamble with 

    Still learning!

  • by Loner T,

    Loner T Loner T Jan 4, 2014 4:17 PM in response to Christopher Murphy
    Level 7 (24,855 points)
    Safari
    Jan 4, 2014 4:17 PM in response to Christopher Murphy

    JustAHobbit wrote:

     

    EFI disk showed up in iStat menu, I had not seen that before. Disk utility verfication suggested me a repair and I did it, after that the EFI disk disappeared and I could not boot to windows.

     

    Christopher Murphy wrote:

     

    2.) The user has some other mismatch between the MBR and GPT, runs Disk Utility "repair disk" on the whole disk device, not merely the HFS+ volume, and this causes diskutil to recreate the hybrid MBR.

     

    Both of these behaviors are wrong. If Windows still boots from type code 0x0C with active bit set then that's fortunate even though it's the wrong code; it's possible Windows 8 could behave differently from Windows 7.

     

    The 2013 MBPs and MBAs are beginning to support EFI/UEFI but many have had driver issues or things not working as expected, for example Cirrus Audio.

     

    Not sure how much motivation there is to provide updates to older equipment to bring all on par with EFI/UEFI and migrate many of the current CSM-BIOS/MBR installations to newer ones. Number88 has been involved in some such discussions.

     

    There are quite a few posts, where people have bought Apple MACs to run Windows, rather than buy the current Dell/Lenovo/Asus/HP offerings.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jan 4, 2014 4:29 PM in response to Loner T
    Level 3 (555 points)
    Jan 4, 2014 4:29 PM in response to Loner T

    In my view so long as the official support through Boot Camp Assistant depends on CSM-BIOS booting, that users are better off with other products. There are other limitations than just the hazards of hybrid MBRs and related bugs. I haven't yet seen Mac firmware rebased on UEFI 2.x.

  • by ravage484,

    ravage484 ravage484 Jan 6, 2014 9:26 AM in response to Christopher Murphy
    Level 1 (0 points)
    Jan 6, 2014 9:26 AM in response to Christopher Murphy

    I understand you know how to fix this problem using gdisk commands.  When I followed your guide from earlier, It tells me that I have no partition #5 and that it skipped it.  I cannot get into my windows boot, if you can help I could copy/paste my terminal window.  Thanks!

  • by Loner T,

    Loner T Loner T Jan 6, 2014 9:48 AM in response to ravage484
    Level 7 (24,855 points)
    Safari
    Jan 6, 2014 9:48 AM in response to ravage484

    Can I suggest that you post a link to a new thread here with the output of the following commands? (You can see samples in Dark Fury's post on page 65).

     

    sudo gpt -r -vv show disk0

    sudo fdisk /dev/rdisk0

    diskutil list

     


  • by PS_STI,

    PS_STI PS_STI Jan 6, 2014 10:54 AM in response to ravage484
    Level 1 (0 points)
    Jan 6, 2014 10:54 AM in response to ravage484

    Let me respond: it does not have to be the partition #5. It can be - and in my case it was - partition #4. So I added partition #4 to MBR. I also added the partition #2. Thanks to it I can both boot from Windows AND see the Mac HD from the Windows level.

  • by PS_STI,

    PS_STI PS_STI Jan 6, 2014 11:00 AM in response to PS_STI
    Level 1 (0 points)
    Jan 6, 2014 11:00 AM in response to PS_STI

    So:

     

    sudo gdisk /dev/disk0

    r <enter>        go to the recovery & transformation menu
    h <enter>        create a new hybrid MBR
    2 4 <enter>        add partions 2 and 4 to the MBR

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y

    Creating entry for GPT partition #2 (MBR partition #2)
    Enter an MBR hex code (default AF): <enter>
    Set the bootable flag? (Y/N): N

    Creating entry for GPT partition #4 (MBR partition #3)
    Enter an MBR hex code (default 07): <enter>
    Set the bootable flag? (Y/N): Y

    n <enter>        do not protect more partitions
    o < enter>       print (display) the MBR
    w <enter>

  • by tantrumnism,

    tantrumnism tantrumnism Jan 6, 2014 8:12 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jan 6, 2014 8:12 PM in response to Christopher Murphy

    I too am having issues. i attempted to follow and skim through these posts but have yet been able to complete and boot from windows. my bootcamp shows in system preference and start up disk but doesn't show up when choosing option when booting. Any asistance would be greatly appreciated.

     

     

     

  • by tantrumnism,

    tantrumnism tantrumnism Jan 6, 2014 8:38 PM in response to tantrumnism
    Level 1 (0 points)
    Jan 6, 2014 8:38 PM in response to tantrumnism

    Terminal.png

  • by Loner T,

    Loner T Loner T Jan 7, 2014 5:22 AM in response to tantrumnism
    Level 7 (24,855 points)
    Safari
    Jan 7, 2014 5:22 AM in response to tantrumnism

    1. I am a bit surprised at the MSR partition. Did you try an EFI boot or a Windows repair?

    2. Your fdisk output shows partition #3 as bootable which is atypical, with Recovery HD missing from the MBR.

    3. What happens when you select Bootcamp partition from Startup Manager on the OS X side? Does Windows boot correctly?

    4. Could you describe the sequence of events which led to the "issue"?

  • by tantrumnism,

    tantrumnism tantrumnism Jan 7, 2014 6:20 AM in response to Loner T
    Level 1 (0 points)
    Jan 7, 2014 6:20 AM in response to Loner T

    I tried an EFI boot.

    Initially i upgraded to Mavericks. I added Windows 8.1 on 500gb factory Macintosh HD with no issues.

     

    I have since replaced this drive with a 128gb SSD and swapped optical drive for caddy including the 500gb HD.

     

    I cloned Mac OS using Carbon Copy inclusive of recovery partition.

     

    I used bootcamp to add 8.1 to the SSD and was able to do so with success. Afterward reformated the 500gb HD into 2 partitions a large one for Mac and a smaller one fore Windows files. Since then i've been unable to boot into Windows.

     

    Within my System Preference > Starup Disk provides the option to boot from Windows Bootcamp but when restarting i get "no bootable disk"

     

    I am able to see Bootcamp in finder, startup disk option and in disk utility. it just doesn't boot.

     

    I have since then been in and out of this thread trying several options including creating a 5th partition and creating the Hybrid disk. I am still unsuccessful in my efforts. Here is what things are looking like now. Help!.png

  • by Loner T,

    Loner T Loner T Jan 7, 2014 6:50 AM in response to tantrumnism
    Level 7 (24,855 points)
    Safari
    Jan 7, 2014 6:50 AM in response to tantrumnism

    Your GPT partition 4, MBR partition 3 is the Bootcamp partition the way it is right now. There is a dd command that will let you look at the contents to see if you have the OS missing or not. You may need to do a Windows Recovery using a CD/DVD/USB to get windows to boot.

  • by tantrumnism,

    tantrumnism tantrumnism Jan 7, 2014 12:50 PM in response to Loner T
    Level 1 (0 points)
    Jan 7, 2014 12:50 PM in response to Loner T

    Windows Recovery using a usb? are you referring to install disk or a recovery disk?

  • by tantrumnism,

    tantrumnism tantrumnism Jan 7, 2014 2:37 PM in response to tantrumnism
    Level 1 (0 points)
    Jan 7, 2014 2:37 PM in response to tantrumnism

    Still having issues. Any assistance would be much appreciated.

     

    https://discussions.apple.com/thread/5761240

first Previous Page 68 of 102 last Next