Skip navigation

Repairing Boot Camp after creating new partition

176211 Views 1,252 Replies Latest reply: Apr 5, 2014 6:57 AM by BobTheFisherman RSS
  • f11music.com Level 1 Level 1 (0 points)

    Hi Christopher, I have a similar problem. Do you mind helping me walk through this. This is what I got from the first 2 things you said to do:

     

    stevembp17:~ steve$ sudo gpt -r -vv show disk0

    gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 976773167

          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  916015616      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

      917694792       1720        

      917696512   59076608      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      976773120         15        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

    stevembp17:~ steve$ sudo fdisk /dev/disk0

    Disk: /dev/disk0          geometry: 60801/255/63 [976773168 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: AC 1023 254  63 - 1023 254  63 [    409640 -  916015616] <Unknown ID>

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

    *4: 07 1023 254  63 - 1023 254  63 [ 917696512 -   59076608] HPFS/QNX/AUX

     

    I have gdisk installed.

     

    GPT fdisk (gdisk) version 0.8.6

     

    Partition table scan:

      MBR: hybrid

      BSD: not present

      APM: not present

      GPT: present

     

    Found valid GPT with hybrid MBR; using GPT.

     

    Build 12C60

     

    Since I've never done this before, I hope you can assist me in continuing.

     

    steve

    MacBook Pro, OS X Mountain Lion (10.8.2)
  • f11music.com Level 1 Level 1 (0 points)

    stevembp17:~ steve$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *500.1 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:          Apple_CoreStorage                         469.0 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data BOOTCAMP                30.2 GB    disk0s4

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                  Apple_HFS Macintosh HD 500       *468.7 GB   disk1

    /dev/disk2

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *1.0 TB     disk2

       1:                        EFI                         209.7 MB   disk2s1

       2:                  Apple_HFS MacBookPro17 BU 1TB     999.9 GB   disk2s2

     

     

    AND

     

     

    GPT fdisk (gdisk) version 0.8.6

     

     

    Partition table scan:

      MBR: hybrid

      BSD: not present

      APM: not present

      GPT: present

     

     

    Found valid GPT with hybrid MBR; using GPT.

     

     

    Command (? for help): p

    Disk /dev/disk0: 976773168 sectors, 465.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 403B4C42-CAB6-45AC-B976-321C29FA1772

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 976773134

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1741 sectors (870.5 KiB)

     

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       916425255   436.8 GiB   AF05  Macintosh HD 500

       3       916425256       917694791   619.9 MiB   AB00  Recovery HD

       4       917696512       976773119   28.2 GiB    0700  BOOTCAMP


    MacBook Pro, OS X Mountain Lion (10.8.2)
  • f11music.com Level 1 Level 1 (0 points)

    Going further…

     

    Recovery/transformation command (? for help): h

     

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 4

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

     

     

    Creating entry for GPT partition #4 (MBR partition #2)

    Enter an MBR hex code (default 07):

    Set the bootable flag? (Y/N): y

     

     

    Unused partition space(s) found. Use one to protect more partitions? (Y/N): n

     

     

    Recovery/transformation command (? for help): o

     

     

    Disk size is 976773168 sectors (465.8 GiB)

    MBR disk identifier: 0x2F36CD85

    MBR partitions:

     

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1    917696511   primary     0xEE

       2      *      917696512    976773119   primary     0x07

     

     

    Recovery/transformation command (? for help):

     

    Recovery/transformation command (? for help): w

     

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

     

    Do you want to proceed? (Y/N): y

    OK; writing new GUID partition table (GPT) to /dev/disk0.

    Warning: The kernel may continue to use old or deleted partitions.

    You should reboot or remove the drive.

    The operation has completed successfully.

    stevembp17:~ steve$

  • waingro101 Calculating status...

    Hello Christopher:

     

    Sounds like you are like a rockstar so praying you'll be able to rescue my partition!!

     

    This is what I did

     

    a) Created a Win 7 bootcamp partition

    b) Installed Windows 8

    c) Installed VMware

     

    2 Issues:

     

    1.- Although I'm perfectly able to run Win8 as a VM ONLY, If I try to boot my Mac computer with Win8, it doesn't load and crashes (get like a blue death screen)

     

    2.- I'm unable to get Winclone to backup my bootcamp partition since Mac sees bootcamp partition as "FAT" partition, even though it's reported as NTFS in Windows. I do recall I installed  rEFIT and tried to use its utilities this but never fixed this so I deleted rEFIT. This issue is more important than the first one.

     

     

    Pls take a look at my stuff:

     

    GPT

     

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

      391034632     262392        

      391297024   98936832      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

     

     

     

    MBR STUFF

     

    Disk: /dev/disk0geometry: 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 -     409639] <Unknown ID>

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

    3: 0B 1023 254  63 - 1023 254  63 [ 391297024 -   98936832] Win95 FAT-32

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

     

    DISKUTIL STUFF:

     

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *251.0 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            200.0 GB   disk0s2

       3:       Microsoft Basic Data BOOTCAMP                50.7 GB    disk0s3

     

    **************************

     

     

    What should I do to fix those two issues?? Please help

     

    Thanks!

    -Ed

  • Gernouille Calculating status...

    Hi Christopher, I am writing to you as you seams to be THE guy resolving all these problems

     

    I also have a MBR / GPT / Dual boot problem, and having a system on two different disk, I am unable to find any reference in this post.

     

    I created a new thread here. https://discussions.apple.com/thread/5029283

     

    I would be glad if you could help!

     

    Thanks.

  • Christopher Murphy Level 2 Level 2 (470 points)

    I'm not sure what the problem is that you're having, but the two partition tables are in parity. I see no problem with them.

  • atiface Calculating status...

    Hi Christopher

    Wondering if you can help me too

     

    Fdisk results are :

    Disk: /dev/disk0geometry: 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 -  245821439] <Unknown ID>

    *2: 07 1023 254  63 - 1023 254  63 [ 245821440 -  244412416] 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

     

    GPT results are

     

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

      244610184    1211256      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      245821440  244412416      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

     

    I ran the commands for gdisk with the index of 4 but it has not worked so far.

     

    Really appreciate if you could have a look and tell me what I am doing wrong.

     

    Regards

     

    Atif

    MacBook Pro (Retina, Mid 2012), OS X Mountain Lion (10.8.3)
  • Mannsy Level 1 Level 1 (0 points)

    Hi Christopher,

     

     

    You seem like you might be the one person who can help me!

     

     

    Please see my thread:

     

     

    https://discussions.apple.com/message/22160031#22160031

     

     

    Any help you can offer would be massively appreciated!

    
  • David Ahn Level 1 Level 1 (5 points)

    Christopher Murphy, you are AWESOME. Fixed my iMac 27 with your steps + rEFIt. Well, ONE of my FIVE bad iMac 27's (part of the Seagate recall program). I am ETERNALLY grateful. Your steps made Boot Camp show up at startup but gave me a blinking cursor, then rEFIt made it boot.

     

    One note for those trying rEFIt: it doesn't kick in until the second restart; I initially gave up on it, then the next morning rEFIt magically appeared at start, and Boot Camp magically booted. But it fixed something, because even after I uninstalled rEFIt, the fix persists.

     

    I'm still working on #2 - the one that actually failed - and it did NOT respond to the same steps. But sfc /scannow is failing to repair some files on that one, so that may be the problem, but it's still stuck at the blinking white cursor stage. See my other thread: https://discussions.apple.com/thread/4932822

  • locksidesoftware Calculating status...

    There are some obscure problems around but this takes the prize. I waited 8 days for my Windows 8 DVD expecting it to fix my bootcamp partition to no avail. I stumbled upon this I second Scotch_Brawth and nominate you for a haggis award, with honours! I can now access my Windows 8 partiton. Many thanks

  • iMaddin Level 1 Level 1 (0 points)

    Hey Christopher, I just want to say thank you very much for your solution! You saved me a lot of time! Otherwise I would have to reinstall Windows (I've done this too many times in my life already) and having to reinstall and re-download a lot of stuff that was on it.

     

    I just want to not that I had 6 partitions because I had an installation of OS X 10.8 + this other new OS I can't tell you about, each of them with their own recovery partition. So instead of partition 5 I chose partition 6 in your instructions which worked out for me.

     

    So again, thank you so much! These instructions will come in handy in the future.

  • Disjoost Calculating status...

    removed because it was addressed to the wrong person (apologies!)

  • Disjoost Level 1 Level 1 (0 points)

    Hi Christoph,

     

    I feel bad having to ask you for help, but it seems you really know your way around this problem and I am quite useless with this. If you could help me I would very very grateful.

     

    So basically my problem is as follows. I have a MBP with bootcamp running Win8. I most ofted use Win8 so I wanted to shrink the OSX partition and increase the Bootcamp partition. I've done that before using disk utitlity without any problem, but this time it blew up in my face. I shrunk the OSX partition with the intention of going back to windows to allocate the new space to the Win8 partition, but I can no longer access it. rEFIt didn't work, although it said it had restored a syncing error, and i no longer see the bootcamp partition in my bootscreen.

     

    I looked through the earlier posts in this thread and this is what the two sudo commands show up:

     

    gpt show: /dev/rdisk0: mediasize=251000193024; sectorsize=512; blocks=490234752

    gpt show: /dev/rdisk0: Suspicious MBR at sector 0

    gpt show: /dev/rdisk0: Pri GPT at sector 1

    gpt show: /dev/rdisk0: 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   98961512      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

      100640688  242835536       

      343476224  146757632      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863       

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

     

    and the second one:


     

    Disk: /dev/disk0geometry: 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 -     409639] <Unknown ID>

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

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

    *4: 0B 1023 254  63 - 1023 254  63 [ 343476224 -  146757632] Win95 FAT-32

     

     

    Can you please tell me how i should proceed?

     

    Thanks so much,

    Joost

     

    (sorry for the double post, but I didn't reply to your post)

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Jun 19, 2013 3:22 PM (in response to Disjoost)

    I suggest starting a new thread and posting the relevant information there, and then post the URL in this thread so I get a notification. This thread is too unweildy to keep track of multiple people's issues. Thanks.

  • Disjoost Level 1 Level 1 (0 points)
1 ... 40 41 42 43 44 ... 84 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (21)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.