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 89 of 102 last Next
  • by Loner T,

    Loner T Loner T Jul 1, 2014 4:05 AM in response to Matt2400
    Level 7 (24,596 points)
    Safari
    Jul 1, 2014 4:05 AM in response to Matt2400

    Please start a new thread and post a reference to it here.

     

    What was the sequence of upgrade? 10.9.3. followed by Parallels or the other way? Where in this sequence did the Bootcamp disappear? What OSX version did you upgrade from to 10.9.3?

     

    It is good to see that Bootcamp NTFS is intact and mountable? Can you see files in Bootcamp in Finder? If you have XP installed then it is supported, but new installation of XP is not supported.

     

    Can you post the output of the following two commands?

     

    sudo gpt -r -v show /dev/disk0

    sudo fdisk /dev/disk0

  • by Matt2400,

    Matt2400 Matt2400 Jul 1, 2014 12:42 PM in response to Loner T
    Level 1 (0 points)
    Jul 1, 2014 12:42 PM in response to Loner T

    I appreciate your help!  You can find the answers to your questions here:

     

    No access to Bootcamp after Mavericks upgrade

  • by xDawod,

    xDawod xDawod Jul 1, 2014 9:05 PM in response to Scotch_Brawth
    Level 1 (0 points)
    Jul 1, 2014 9:05 PM in response to Scotch_Brawth

    to Christopher Murphy : first of all Thank you very much for ur efforts

    i was dealing with the main problem of the topic and thanks to you i solve it , but there's some Consequences like i was having

    1- mac

    2- shared drive [ms-dos (fat)]

    3- bootcamp

    and i was able to seeing them on windows

    now and after solving the boot problem , i'm not able to see the neither ms-dos drive nor mac drive on windows !

    so what should i do to fix this issuu ?

    thanks

  • by Loner T,

    Loner T Loner T Jul 2, 2014 7:40 AM in response to xDawod
    Level 7 (24,596 points)
    Safari
    Jul 2, 2014 7:40 AM in response to xDawod

    Can you start a new thread and post a reference to it here?

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jul 2, 2014 10:30 AM in response to xDawod
    Level 3 (555 points)
    Jul 2, 2014 10:30 AM in response to xDawod

    What you want to do isn't supported because three visible partitions means there are actually five partitions: EFI, OS X, Recovery, Shared (FAT32), Boot Camp. And five partitions aren't supported with Boot Camp'd disks until Apple supports native UEFI installs of Windows.

  • by jonny_boi,

    jonny_boi jonny_boi Jul 2, 2014 11:42 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 2, 2014 11:42 PM in response to Christopher Murphy

    Hi, I had the same error with Windows and did this, and now it says "Operating System Not Found", even though I can read the Windows HD just fine from my main OS X partition. Also after doing the steps outlined here, my boot time for OS X (and the time it takes to reach the options menu in boot up) got exponentially slower... from a few seconds to about five minutes now. How do I fix this?

     

    Thanks!

     

    These are the results of the commands:

     

    Jonathans-MacBook:~ jonathan$ sudo gpt -r -vv show disk0

    Password:

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

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

      279297208   33887272      4  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      313184480    1269536      5  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      314454016  175779840      6  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863       

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

    Jonathans-MacBook:~ jonathan$ 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 - 1023 254  63 [         1 -  313184479] <Unknown ID>

    *2: AB 1023 254  63 - 1023 254  63 [ 313184480 -    1269536] Darwin Boot

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

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

     

     

     

    And also:

     

    Number  Start (sector)    End (sector)  Size       Code  Name

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       278027671   132.4 GiB   AF00  Customer

       3       278027672       279297207   619.9 MiB   AB00  Recovery HD

       4       279297208       313184479   16.2 GiB    AF00  Macintosh Future

       5       313184480       314454015   619.9 MiB   AB00  Recovery HD

       6       314454016       490233855   83.8 GiB    0700  BOOTCAMP

  • by jonny_boi,

    jonny_boi jonny_boi Jul 3, 2014 12:23 AM in response to jonny_boi
    Level 1 (0 points)
    Jul 3, 2014 12:23 AM in response to jonny_boi

    I deleted the  "Macintosh Future partition" so that and #5 Recovery HD are gone now and now I have:

     

    #: 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 -  312500000] HFS+       

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

    4: 0C 1023 254  63 - 1023 254  63 [ 314454016 -  175779840] Win95 FAT32L

  • by Loner T,

    Loner T Loner T Jul 3, 2014 5:07 AM in response to jonny_boi
    Level 7 (24,596 points)
    Safari
    Jul 3, 2014 5:07 AM in response to jonny_boi

    You can try this, but it you may need additional Windows Recovery as well, if you have boot issues.

     

    sudo fdisk -e /dev/disk0

    setpid 4

    07

    flag 4

    write

     

    This assumes that the underlying boot and NTFS information is intact. Please make sure you have adequate backups.

  • by dschreiber,

    dschreiber dschreiber Jul 3, 2014 6:45 AM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 3, 2014 6:45 AM in response to Christopher Murphy

    This worked for me as well. I can't thank you enough. Actually, I modified your directions slightly to also include an ExFat partition I added. I ran into Bootcamp not being recognized after adding an additional partition. Apparently I had corrupted the MBR as you discussed and needed to rebuild it from the GUID (at least I think that's what this just did?).

     

    I am now able to boot into Windows and use my ExFat partition from both operating systems. Amazing.

  • by jonny_boi,

    jonny_boi jonny_boi Jul 3, 2014 8:01 AM in response to Loner T
    Level 1 (0 points)
    Jul 3, 2014 8:01 AM in response to Loner T

    Thanks this fixed my boot up time and Windows issues! Windows now loads correctly. Thank you so much!

  • by Bx029297,

    Bx029297 Bx029297 Jul 3, 2014 9:59 AM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 3, 2014 9:59 AM in response to Christopher Murphy

    HI Christopher

    If you could just advise i'd be very greatful

    this is my problem:

     

    i've got a macbook pro version 10.7.5 with bootcamp installed (windows 7) quite a few years ago.

    I decided and tried to install Ubuntu (Linux) (unsuccessful operation).

     

    I added two more partitions (Linux and Linux swap) to Mac os X and Bootcamp so four in total

    Unfortunately after installing rEFIt which is a boot loader needed to choose between the different OS i could't boot anything and had to reinstall Mac OS x..

     

    Anyway, now although i can still see the four partitions that i had created in disk utility i cannot boot windows 7 anymore. (apperas as a folder "Bootcamp Windows" in startup disk , next to " max os x 10.7.5 HDD.

     

    What is the problem, do i need to reinstall windows 7 or bootcamp assistant or anything else?

     

    this is what i got from 'sudo gpt -r -vv show disk0':

     

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

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: 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       2048        

      311400448     827392      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

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

      625141760        655        

      625142415         32         Sec GPT table

      625142447          1         Sec GPT header

     

    'sudo fdisk /dev/disk0':

     

    Disk: /dev/disk0geometry: 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: 0B 1023 254  63 - 1023 254  63 [ 163487744 -  147910656] Win95 FAT-32

     

    Anyone's help would be greatly appreciated

    thanks

  • by Loner T,

    Loner T Loner T Jul 3, 2014 10:08 AM in response to Bx029297
    Level 7 (24,596 points)
    Safari
    Jul 3, 2014 10:08 AM in response to Bx029297

    You can try the fdisk commands (as mentioned jonny_boi) and make partition 4 bootable, but the current number of partitions is not supported. More than likely, you will run into an issue sooner or later. Take good backups.

  • by Bx029297,

    Bx029297 Bx029297 Jul 3, 2014 10:12 AM in response to Loner T
    Level 1 (0 points)
    Jul 3, 2014 10:12 AM in response to Loner T

    ok may you send me the post or link to the post of the fdisk commands from jonny_boi please?

     

    Do you think it would work with 3 partitions instead? and can i backup my bootcamp's data?

     

    thanks

  • by Bx029297,

    Bx029297 Bx029297 Jul 3, 2014 10:23 AM in response to Bx029297
    Level 1 (0 points)
    Jul 3, 2014 10:23 AM in response to Bx029297

    I have just remove the partition "Linux swap" so there are 3 partitions now + 1 left as "free space"

     

    Does it change anything or still not?

  • by Loner T,

    Loner T Loner T Jul 3, 2014 10:27 AM in response to Bx029297
    Level 7 (24,596 points)
    Safari
    Jul 3, 2014 10:27 AM in response to Bx029297

    You can use these


    sudo fdisk -e /dev/disk0

    setpid 4

    07

    flag 4

    write


    The following configuration is supported.


    sudo fdisk /dev/rdisk0

    Password:

    Disk: /dev/rdisk0 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

     

    sudo gpt -vv -r show /dev/disk0

    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

first Previous Page 89 of 102 last Next