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 54 of 102 last Next
  • by Arvin KalEl,

    Arvin KalEl Arvin KalEl Oct 26, 2013 2:13 AM in response to Christopher Murphy
    Level 1 (0 points)
    Oct 26, 2013 2:13 AM in response to Christopher Murphy

    and also please explain this to me as well... why is the information i highlighted not Win95 FAT32L, just like the others.

     

    Screen Shot 2013-10-26 at 5.10.08 pm.png

  • by Arvin KalEl,

    Arvin KalEl Arvin KalEl Oct 26, 2013 2:37 AM in response to tomd007
    Level 1 (0 points)
    Oct 26, 2013 2:37 AM in response to tomd007

    I need your help. :/

  • by Loner T,

    Loner T Loner T Oct 26, 2013 5:59 AM in response to Arvin KalEl
    Level 7 (24,202 points)
    Safari
    Oct 26, 2013 5:59 AM in response to Arvin KalEl

    Arvind,

     

    There is a set of steps that Franky/Tom have outlined with testdisk (if you go back a couple of pages). Christopher is asking you to execute those and look for your files to validate that you have the correct partition start and end.

     

     

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Oct 26, 2013 9:02 AM in response to Arvin KalEl
    Level 3 (555 points)
    Oct 26, 2013 9:02 AM in response to Arvin KalEl

    a.) I can't answer your question because by assuming your problem is caused by the same thing the last few people have had, you started changing things with your partition map that will hide what the true problem is. Based on the fdisk and gpt output you posted, your system should boot Windows. If it doesn't, you have other problems and you should post a new thread briefly describing steps you've taken leading up to the current state of the drive (don't list the reasons why you did it, just list each thing you did do).

     

    b.) Code 07 is interpreted by Apple's old old old version of fdisk as HPFS/QNX/AUX, but it's the code most commonly used for NTFS. 07 is the correct code so just leave that alone.

     

    c.) Please don't whine for more help 30 minutes after asking for free help. It's irritating. Try to have some imagination that maybe people have other things to do, including SLEEPING at 3:30am when you were posting these demands for help. You can legitimately bump a thread after 2 days if someone hasn't responded, but 30 minutes is flat out rude. If you're in that big of a hurry you should have backups you can restore from sooner.

  • by Arvin KalEl,

    Arvin KalEl Arvin KalEl Oct 26, 2013 9:12 AM in response to Christopher Murphy
    Level 1 (0 points)
    Oct 26, 2013 9:12 AM in response to Christopher Murphy

    im sorry. i didnt mean to. im from a different country and i didnt know the time difference. :/ sorry i wont bother you again. and and thanks for your help. i really appreciate it.!

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Oct 26, 2013 9:30 AM in response to Arvin KalEl
    Level 3 (555 points)
    Oct 26, 2013 9:30 AM in response to Arvin KalEl

    Did you get it working or not?

  • by sconstantine,

    sconstantine sconstantine Oct 26, 2013 12:27 PM in response to Christopher Murphy
    Level 1 (0 points)
    Oct 26, 2013 12:27 PM in response to Christopher Murphy

    Christopher, following you on other threads, you seem to be extremely knowledgable in this area.  I have updated to 10.9 Mavericks and the process has rendered my previously working bootcamp config with Windows not bootable.  I believe during the RecoveryHD portion of the upgrade it wiped my Hybrid/PMBR partition.  I can still mount and access the Windows NTFS partition from OS X however upon selecting at startup it will not boot the windows partition.  After running gptsync from rEFInd I have an entry in my MBR table but it's only created my system partition on the MBR, not my windows 'system reserved' boot partiton.  Can I somehow manually edit the HybridMBR table to include the correct 4 partitions (System Reserved starting at 150,378,824 as the first partition, Windows starting at 151,095,624 as the second partition, and the MacHD starting at 409,640)?  Here's the output from my current disk state:

     

    $ sudo gpt -r -vv show disk0

    gpt show: disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 490234751

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

      148847144     262144        

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

      150378824     716800      4  GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE

      151095624  339139089      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490234713          6        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

     

    $ sudo fdisk /dev/disk0

    Disk: /dev/disk0    geometry: 30515/255/63 [490234752 sectors]

    Signature: 0xAA55

             Starting       Ending

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

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

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

    *2: 07 1023 254  63 - 1023 254  63 [ 151095624 -  339139089] HPFS/QNX/AUX

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

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

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Oct 26, 2013 12:38 PM in response to sconstantine
    Level 3 (555 points)
    Oct 26, 2013 12:38 PM in response to sconstantine

    I don't understand why you have an MSR partition, which is only necessary when UEFI booting Windows. There is no MBR equivalent for this partition type and it's not use for booting Windows. If you've managed to install Windows on a Mac to EFI boot, instead of CSM-BIOS boot, then you don't need a hybrid MBR at all.

  • by mrmcb,

    mrmcb mrmcb Oct 26, 2013 2:10 PM in response to Christopher Murphy
    Level 1 (0 points)
    Oct 26, 2013 2:10 PM in response to Christopher Murphy

    Hey, Chris, you have been fantasic. I have been following your discussion to date. I have upgraded macbook pro to Mavericks and like others my bootcamp had gone leaving me with 'disk0s4' So far i have followed the gdisk options to recover drive that was highlighted by tomd007 and franky.

     

    here is some info:

     

    Screen Shot 2013-10-26 at 22.08.52.pngScreen Shot 2013-10-26 at 22.09.57.png

     

     

     

    I have now got the windows drive in boot menu but I get 'no operating system'

     

    Hope you can help.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Oct 26, 2013 2:16 PM in response to sconstantine
    Level 3 (555 points)
    Oct 26, 2013 2:16 PM in response to sconstantine

    Put another way: If you follow the Boot Camp Installation & Setup Guide, Windows is installed as a single partition only, and it is a CSM-BIOS installation that depends on a hybrid MBR. No other method is supported. So I don't know what you've done.

     

    Your GPT now has five partitions, so you obviously haven't installed it per the guide. So the question is, how did you install it? I'm going to guess that it's a UEFI install, in which case there isn't a way to convert it into a support CSM-BIOS install. You'd have to delete the two Windows partitions, create a single new one, then create a new hybrid MBR, and then from the Windows installer reformat the new single partition and reinstall.

     

    If it is a UEFI install, and you want to preserve that, then you need to replace the hybrid MBR with a protective MBR. And then try to repair the installation using Windows startup repair *booted in EFI mode*. If you boot the install media in BIOS mode, Windows only supports BIOS+MBR repairs. If you boot the install media in EFI mode, Windows only supports EFI+GPT+EFI System partition repairs.

     

    Macs are booting in EFI mode for non-OS X OS's if you use the option key at boot time, and choose the EFI option for that system's install media. If you choose an icon labeled Windows, that's CSM-BIOS boot mode.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Oct 26, 2013 2:29 PM in response to mrmcb
    Level 3 (555 points)
    Oct 26, 2013 2:29 PM in response to mrmcb

    @mrmcb

    Well you couldn't have followed all of the previous advice and steps or you wouldn't have the results you've posted.

     

    Your start sector for the 4th partition is clearly wrong, I don't know where you came up with 1239961600 as that's not one of the options in testdisk. In testdisk, using the up/down arrow keys, you need to choose each of the NTFS options, and press P to list files. If you get an error message, then that NTFS choice isn't the right one, you need to go back to the listing (quit) and then use arrow keys to highlight a different NTFS option, press P to list files, etc. until you get a valid file listing of your Windows files. Once you have listed files successfully, quit again to go back to the listing and use the start and end values for that NTFS option, in gdisk. The start value in testdisk = First sector in gdisk. The end value in testdisk = Last sector in gdisk.

     

    The other thing is that somehow your MBR has totally the wrong ID code of 03, I really don't know how you managed to do that. In any case that can be fixed when you create a new hybrid MBR which you can only do once you fix the GPT first.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Oct 26, 2013 2:32 PM in response to mrmcb
    Level 3 (555 points)
    Oct 26, 2013 2:32 PM in response to mrmcb

    I might be wrong, but I'll bet dollars to donuts that you made changes in gdisk but you didn't use the w command to write them out to disk. Your existing fdisk and gpt results look like what I'd expect to see BEFORE creating the new replacement partition 4 in gdisk, based on testdisk information.

  • by mrmcb,

    mrmcb mrmcb Oct 26, 2013 2:46 PM in response to Christopher Murphy
    Level 1 (0 points)
    Oct 26, 2013 2:46 PM in response to Christopher Murphy

    Christopher, thanks again, you are sooo helpful!

     

    I have found the list of files :

     

    Screen Shot 2013-10-26 at 22.43.47.png

     

    My last job then is the gdisk portion.....

     

    This is a little scary as i do not understand and I worry i erase something.

     

    is there any post that is specific to instructions needed to follow or can you guide me?

  • by mrmcb,

    mrmcb mrmcb Oct 26, 2013 3:02 PM in response to Christopher Murphy
    Level 1 (0 points)
    Oct 26, 2013 3:02 PM in response to Christopher Murphy

    Think i have found the info, was it the instructions that you gave sumnerrain on page 53?

     

    I am cautious and will wait for the OK.

  • by sconstantine,

    sconstantine sconstantine Oct 26, 2013 6:33 PM in response to sconstantine
    Level 1 (0 points)
    Oct 26, 2013 6:33 PM in response to sconstantine

    Fixed my problem by simply using gdisk to sync the MBR from the valid GPT; all is working perfectly now.  Update to my (albiet non-standard) GPT partition and hybrid MBR map:

     

    $ sudo gpt -r -vv show disk0

    gpt show: disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 490234751

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

      148847144     262144        

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

      150378824     716800      4  GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE

      151095624  339139089      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490234713          6        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

     

    $ sudo fdisk /dev/disk0

    Disk: /dev/disk0    geometry: 30515/255/63 [490234752 sectors]

    Signature: 0xAA55

             Starting       Ending

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

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

    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>

    *2: 0C 1023 254  63 - 1023 254  63 [ 150378824 -     716800] Win95 FAT32L

    3: 07 1023 254  63 - 1023 254  63 [ 151095624 -  339139089] HPFS/QNX/AUX

    4: AF   25 127  15 - 1023 254  63 [    409640 -  148437504] HFS+      

first Previous Page 54 of 102 last Next