antoniusfelix

Q: Can't boot from bootcamp after adding partition using disk utility

My question is similar with Repairing Boot Camp after creating new partition,

 

i recently install the el capitan + windows 7 (using bootcamp), all working fine after i adding the third partition. (i plan the third partition will be use for dropbox, so mac and windows can sync-ing one dropbox folder for both of them).

 

after i make the third partition, and restart the system, i hold OPTION and not found the windows.

 

my mbp spec:

 

MD101 2012 13",

SAMSUNG SSD PRO 850 256GB,

RAM 16GB,

osx elcapitan + windows 7 ultimate.

 

thanks

MacBook Pro, OS X El Capitan (10.11.3), RAM upgraded to 16GB

Posted on Mar 15, 2016 11:20 PM

Close

Q: Can't boot from bootcamp after adding partition using disk utility

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Mar 16, 2016 10:16 AM in response to antoniusfelix
    Level 7 (24,307 points)
    Safari
    Mar 16, 2016 10:16 AM in response to antoniusfelix

    Can you post the output of the following OSX Terminal commands?

     

    diskutil list

    diskutil cs list

    sudo gpt -vv -r show /dev/disk0

    sudo fdisk /dev/disk0

     

    The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 16, 2016 10:24 AM in response to Loner T
    Level 1 (0 points)
    Mar 16, 2016 10:24 AM in response to Loner T

    Screen Shot 2016-03-17 at 12.18.00 AM.png

     

    Screen Shot 2016-03-17 at 12.18.23 AM.png

    Screen Shot 2016-03-17 at 12.18.58 AM.png

     

    Screen Shot 2016-03-17 at 12.19.30 AM.png

     

    are these clear enough for you? don't hesitate for asking me.

     

    and what the next step?

  • by Loner T,

    Loner T Loner T Mar 16, 2016 12:14 PM in response to antoniusfelix
    Level 7 (24,307 points)
    Safari
    Mar 16, 2016 12:14 PM in response to antoniusfelix

    Please post the output of

     

    sudo dd if=/dev/rdisk0s5 count=1 2>/dev/null | hexdump -C

     

    This will show the the first block of the Windows partition.

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 16, 2016 12:17 PM in response to Loner T
    Level 1 (0 points)
    Mar 16, 2016 12:17 PM in response to Loner T

    Screen Shot 2016-03-17 at 2.16.34 AM.png

    is this right? then what i should do next?

  • by Loner T,Solvedanswer

    Loner T Loner T Mar 17, 2016 9:09 PM in response to antoniusfelix
    Level 7 (24,307 points)
    Safari
    Mar 17, 2016 9:09 PM in response to antoniusfelix

    Can you follow the Gdisk steps listed in Re: [Help] Can't boot to windows (8.1) after resizing partition and rebuild the MBR?

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 17, 2016 12:14 PM in response to Loner T
    Level 1 (0 points)
    Mar 17, 2016 12:14 PM in response to Loner T

    sorry, could you guidance me step by step? which part i must do first?

    because i don't sure about my self to do your command.

    even i dont know the meaning of gdisk, MBR

     

    anyway is there any missing or wrong part i did before? just make sure.

     

    and please do guidance for me, i am afraid doing wrong thing

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 17, 2016 12:51 PM in response to Loner T
    Level 1 (0 points)
    Mar 17, 2016 12:51 PM in response to Loner T

    Last login: Fri Mar 18 02:45:08 on ttys000

    Antoniuss-MacBook-Pro:~ Antonius_Felix$ Sudo gdisk /dev/rdisk0

    Password:

    GPT fdisk (gdisk) version 1.0.1

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    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/rdisk0: 500118192 sectors, 238.5 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): E4FA43C1-63B0-4E8D-81D0-A0343A7F3680

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 500118158

    Partitions will be aligned on 8-sector boundaries

    Total free space is 262805 sectors (128.3 MiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       246283855   117.2 GiB   AF05  Macintosh HD

       3       246283856       247553391   619.9 MiB   AB00  Recovery HD

       4       247553392       304543743   27.2 GiB    0700  Windows_NTFS_Untitl...

       5       304805888       500117503   93.1 GiB    0700  BOOTCAMP

     

    Command (? for help): R

     

    Recovery/transformation command (? for help): O

     

    Disk size is 500118192 sectors (238.5 GiB)

    MBR disk identifier: 0x9C4D7ADA

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    246283855   primary     0xAC

       3             246283856    247553391   primary     0xAB

       4             247553392    304543743   primary     0x07

     

    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: 3 4 5

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

     

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

    Enter an MBR hex code (default AB):

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

     

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

    Enter an MBR hex code (default 07):

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

     

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

    Enter an MBR hex code (default 07):

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

     

    Recovery/transformation command (? for help): O

     

    Disk size is 500118192 sectors (238.5 GiB)

    MBR disk identifier: 0x9C4D7ADA

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1    246283855   primary     0xEE

       2             246283856    247553391   primary     0xAB

       3             247553392    304543743   primary     0x07

       4      *      304805888    500117503   primary     0x07

     

    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/rdisk0.

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

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

    You should reboot or remove the drive.

    The operation has completed successfully.

    Antoniuss-MacBook-Pro:~ Antonius_Felix$

     

     

    DONE!, Please notice me if something missing

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 17, 2016 1:08 PM in response to Loner T
    Level 1 (0 points)
    Mar 17, 2016 1:08 PM in response to Loner T

    succeeded!! thank youu!! now i can boot in bootcamp again

     

    i have more question regarding this modification

     

    1. do we need take the csrutil back to enable? (before we disable it in part a),

     

    2. my bootcamp already comeback, but why still cant run in my vmware?

     

    Screen Shot 2016-03-18 at 3.03.03 AM.png

  • by Samcisse,

    Samcisse Samcisse Mar 17, 2016 1:09 PM in response to Loner T
    Level 1 (0 points)
    Mar 17, 2016 1:09 PM in response to Loner T

    Hello Loner T, I'm having the same trouble as Felix. Can you help me?

     

     

    MacBook-Pro-de-Samuel-Gaudet:~ samg$ diskutil list

    /dev/disk0 (internal, physical):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *320.1 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            289.9 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:                  Apple_HFS Untitled                9.2 GB     disk0s4

       5:       Microsoft Basic Data BOOTCAMP                20.0 GB    disk0s5

    MacBook-Pro-de-Samuel-Gaudet:~ samg$ diskutil cs list

    No CoreStorage logical volume groups found

    MacBook-Pro-de-Samuel-Gaudet:~ samg$ sudo gpt -vv -r show /dev/disk0

    Password:

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

    gpt show: /dev/disk0: PMBR at sector 0

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

    gpt show: /dev/disk0: Sec GPT at sector 625142447

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

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

      567879184   17938928      4  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      585818112     262144        

      586080256   39061504      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      625141760        655        

      625142415         32         Sec GPT table

      625142447          1         Sec GPT header

    MacBook-Pro-de-Samuel-Gaudet:~ samg$ sudo fdisk /dev/disk0

    Disk: /dev/disk0    geometry: 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 -  625142447] <Unknown ID>

    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     

    MacBook-Pro-de-Samuel-Gaudet:~ samg$

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 17, 2016 1:14 PM in response to Samcisse
    Level 1 (0 points)
    Mar 17, 2016 1:14 PM in response to Samcisse

    hello sam, the tips from loner is working like charm for me.

     

    just follow these :

     

    A. We need to disable SIP.

     

    1. Boot into Local Recovery (Command+R).

    2. Start Utilities -> Terminal.

    3. Type csrutil disable in Terminal and press Enter/Return.

    4. Type csrutil status.

    5. Boot normally, and type csrutil status to confirm that all individual entries are still disabled.

     

    B. Rebuild non-standard MBR.

     

    The following steps are non-standard because there is a third user-visible partition. Typically, there are two such partitions in a normal configuration on a single-disk Mac with OS X and Bootcamp. This is fragile and lack of proper backups can lead to potential data loss. Download GPT Fdisk from http://sourceforge.net/projects/gptfdisk/ and install it on the OS X side. The following steps are executed when booted in OS X. If the 79G is converted to Free Space, these numbers (3 4 5) will change back to (2 3 4).

     

    Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers. Please see the sample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.

    1. Sudo gdisk /dev/rdisk0
    2. P  (Print list of parts)
    3. R  (Recover)
    4. O (print current Hybrid MBR)
    5. H (chooses Hybrid)
    6. Partitions numbers to be hybridized: 3 4 5
    7. Y  (Good for GRUB question)
    8. N  (part 3 boot flag)
    9. N  (part 4 boot flag)
    10. Y  (part 5 boot flag make NTFS bootable partition)
    11. O  (print current Hybrid MBR)
    12. W (Write the new MBR)
    13. Y (Yes! write the new MBR)
    14. Reboot

     

    Here is sample Q&A for this section. Please notice the Press Enter/Return. Accept defaults offered by Gdisk.

     

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

     

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

    Enter an MBR hex code (default AF or AB): Press Enter/Return

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

     

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

    Enter an MBR hex code (default AB or 0B or 0C): Press Enter/Return

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

     

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

    Enter an MBR hex code (default 07): Press Enter/Return

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

     

    Credit : Loner T Re: [Help] Can't boot to windows (8.1) after resizing partition

     

  • by Loner T,

    Loner T Loner T Mar 17, 2016 1:48 PM in response to antoniusfelix
    Level 7 (24,307 points)
    Safari
    Mar 17, 2016 1:48 PM in response to antoniusfelix

    antoniusfelix wrote:

     

     

     

    1. do we need take the csrutil back to enable? (before we disable it in part a),

     

    Yes, you should re-enable csrutil.

     

    2. my bootcamp already comeback, but why still cant run in my vmware?

    You need to delete the old VM, and re-import the Bootcamp partition as a new VM, because the MBR disk partitions have changed.

  • by Loner T,

    Loner T Loner T Mar 17, 2016 1:49 PM in response to Samcisse
    Level 7 (24,307 points)
    Safari
    Mar 17, 2016 1:49 PM in response to Samcisse

    Samcisse wrote:

     

    I'm having the same trouble as Felix. Can you help me?

    Yes, please try the same steps. If you run into any issues, please post back.

  • by antoniusfelix,

    antoniusfelix antoniusfelix Mar 17, 2016 9:19 PM in response to Loner T
    Level 1 (0 points)
    Mar 17, 2016 9:19 PM in response to Loner T

    I remove the old one in library already,

    but when i want to make new virtual machine using boot camp, there is no option to choose bootcamp partition

     

    Screenshot 2016-03-18 11.14.36.png

  • by Loner T,

    Loner T Loner T Mar 18, 2016 5:26 AM in response to antoniusfelix
    Level 7 (24,307 points)
    Safari
    Mar 18, 2016 5:26 AM in response to antoniusfelix

    If Bootcamp volume boots properly then it should be visible in the that pane. You need to check the first check box as well.

Page 1 Next