pyoky

Q: repair bootcamp after creating new partition

I installed windows 10 via bootcamp, without any external drives, on my 256GB ssd. I then used disk utitlity to create a shared partition by shrinking the OSX partition. After that, when I boot into windows it shows me the recovery screen. Please, help me with each step. I don't want to mess anything up.

Thanks.

MacBook Pro with Retina display, OS X El Capitan (10.11.3)

Posted on Jan 25, 2016 6:13 AM

Close

Q: repair bootcamp after creating new partition

  • All replies
  • Helpful answers

Page 1 of 4 last Next
  • by Loner T,

    Loner T Loner T Jan 25, 2016 8:04 AM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 25, 2016 8:04 AM in response to pyoky

    Let us check partitioning first. Can you post the output of the following OS X 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 pyoky,

    pyoky pyoky Jan 25, 2016 9:41 PM in response to Loner T
    Level 1 (1 points)
    Jan 25, 2016 9:41 PM in response to Loner T

    Thanks, you were the person I was hoping to respond.

    (Sorry for the late response)

     

    $ diskutil list

    /dev/disk0 (internal, physical):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *251.0 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:          Apple_CoreStorage Macintosh HD            153.2 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data Shared                  32.0 GB    disk0s4

       5:       Microsoft Basic Data BOOTCAMP                64.8 GB    disk0s5

    /dev/disk1 (internal, virtual):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                  Apple_HFS Macintosh HD           +152.8 GB   disk1

                                     Logical Volume on disk0s2

                                     A64B9193-C139-4496-BCEF-B5F095F0BFF3

                                     Unlocked Encrypted

     

     

     

     

    $ diskutil cs list

    CoreStorage logical volume groups (1 found)

    |

    +-- Logical Volume Group 4C30D05C-4E46-44C6-AFDE-386418CC6194

        =========================================================

        Name:         Macintosh HD

        Status:       Online

        Size:         153174134784 B (153.2 GB)

        Free Space:   2478080 B (2.5 MB)

        |

        +-< Physical Volume A9B3583C-27F6-42D7-B668-462529C64DE2

        |   ----------------------------------------------------

        |   Index:    0

        |   Disk:     disk0s2

        |   Status:   Online

        |   Size:     153174134784 B (153.2 GB)

        |

        +-> Logical Volume Family BB16C9C9-2806-44F5-B401-03B035396761

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

            Encryption Type:         AES-XTS

            Encryption Status:       Unlocked

            Conversion Status:       Complete

            High Level Queries:      Fully Secure

            |                        Passphrase Required

            |                        Accepts New Users

            |                        Has Visible Users

            |                        Has Volume Key

            |

            +-> Logical Volume A64B9193-C139-4496-BCEF-B5F095F0BFF3

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

                Disk:                  disk1

                Status:                Online

                Size (Total):          152819335168 B (152.8 GB)

                Revertible:            Yes (unlock and decryption required)

                LV Name:               Macintosh HD

                Volume Name:           Macintosh HD

                Content Hint:          Apple_HFS

     

     

    $ sudo gpt -vv -r show /dev/disk0

    Password:

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

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

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

      300847408   62590672      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      363438080     262144       

      363700224  126533632      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863       

      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 -     409639] <Unknown ID>

    2: AC 1023 254  63 - 1023 254  63 [    409640 -  299168232] <Unknown ID>

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

    4: 0B 1023 254  63 - 1023 254  63 [ 300847408 -   62590672] Win95 FAT-32

    Pyokyeongs-MacBook-Pro:~ Pyoky$

     

     

     

    Oh, one more thing. I don't know from when but the bootcamp partition stopped showing up on finder. Is it sth I can fix?

  • by Loner T,

    Loner T Loner T Jan 25, 2016 11:26 PM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 25, 2016 11:26 PM in response to pyoky

    Your problems stem from the extra partition. Do you want to keep it? What year/model is your Mac?

  • by pyoky,

    pyoky pyoky Jan 26, 2016 1:21 AM in response to Loner T
    Level 1 (1 points)
    Jan 26, 2016 1:21 AM in response to Loner T

    Yes I would like to keep the partition "Shared", i'm planning to use it as a storage both OSX and Windows can access.

    Its Macbook Pro with Retina display, 13inch, early 2015, upgraded only SSD to 256GB.

  • by Loner T,

    Loner T Loner T Jan 26, 2016 6:37 AM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 26, 2016 6:37 AM in response to pyoky

    1. The restriction is due to the use of an MBR (as shown by the Fdisk output).

    2. Your 2015 Mac does support EFI installation, which removes this restriction. You will need to remove the current Windows installation, after you make a good backup of OS X and Windows.

    3. If you stay with the current MBR, to make this work, Windows will lose visibility to the OS X partition, but can be made to see the shared partition.

     

    Please decide what you want to do, and I can provide steps.

  • by pyoky,

    pyoky pyoky Jan 26, 2016 7:41 AM in response to Loner T
    Level 1 (1 points)
    Jan 26, 2016 7:41 AM in response to Loner T

    Sorry again for the late response.

    I wouldn't like to remove the windows install, it has important files in it. It's okay to have windows not see the OS X partition, as long as both windows and OSX can see the shared partition. Since that was what I was intending.

  • by Loner T,

    Loner T Loner T Jan 26, 2016 8:14 AM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 26, 2016 8:14 AM in response to pyoky

    A. 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 GPT Fdisk and install it on the OS X side. The following steps are executed when booted in OS X.

     

    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

  • by pyoky,

    pyoky pyoky Jan 26, 2016 8:25 AM in response to Loner T
    Level 1 (1 points)
    Jan 26, 2016 8:25 AM in response to Loner T

    This happened, and prevented me from doing the next steps.

    $ sudo gdisk /dev/rdisk0

    Password:

    dyld: lazy symbol binding failed: Symbol not found: __ZN3icu13UnicodeStringC1Ev

      Referenced from: /usr/sbin/gdisk

      Expected in: /usr/lib/libicucore.A.dylib

     

    dyld: Symbol not found: __ZN3icu13UnicodeStringC1Ev

      Referenced from: /usr/sbin/gdisk

      Expected in: /usr/lib/libicucore.A.dylib

     

    I'm really unfamiliar with commandlines. Can you help?

  • by Loner T,

    Loner T Loner T Jan 26, 2016 9:29 AM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 26, 2016 9:29 AM in response to pyoky

    Can you find out the exact version of OS X? Please do not post the serial number of your Mac.

  • by pyoky,

    pyoky pyoky Jan 26, 2016 4:08 PM in response to Loner T
    Level 1 (1 points)
    Jan 26, 2016 4:08 PM in response to Loner T

    OS X 10.11.3

    Screen Shot 2016-01-27 at 9.07.20 AM.png

  • by Loner T,

    Loner T Loner T Jan 26, 2016 7:25 PM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 26, 2016 7:25 PM in response to pyoky

    What is the version of the GPT Fdisk package? It should be 1.0.1.

  • by pyoky,

    pyoky pyoky Jan 26, 2016 8:27 PM in response to Loner T
    Level 1 (1 points)
    Jan 26, 2016 8:27 PM in response to Loner T

    I have reinstalled gptfdisk 1.0.1, i had the wrong version before.

     

    I finished the process, but it's still same: when I boot into windows, it's showing me automatic repair. I'm sure I disabled SIP, and followed all the steps with gdisk.

    Is there something I missed?

  • by Loner T,

    Loner T Loner T Jan 26, 2016 8:32 PM in response to pyoky
    Level 7 (24,596 points)
    Safari
    Jan 26, 2016 8:32 PM in response to pyoky

    If the following tests all work

     

    Test 1 - Does Bootcamp Volume show up in Finder?

    Test 2 - Can you see files in Bootcamp Volume?

    Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

    Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

     

    but Windows does not boot, you will need Windows Startup Repair using the Windows Installer.

     

    Please see http://windows.microsoft.com/en-us/windows/startup-repair-faq#1TC=windows-7 . You will need the W10 installer.

  • by pyoky,

    pyoky pyoky Jan 26, 2016 8:35 PM in response to Loner T
    Level 1 (1 points)
    Jan 26, 2016 8:35 PM in response to Loner T

    Test 1, 2, 3, 4 all does not work. It's not showing up in finder, i cant see the files, i cant slect in startup disk.

    What do you think is wrong? Should I re-do the steps in step B?

Page 1 of 4 last Next