adam1314

Q: Loner T please help me. After resizing the OS X partition in El Capitan, Bootcamp partition becomes unbootable:(

I was trying to increase the size of my bootcamp partition but got my bootcamp partition unbootable:(

 

on start up screen, I can only see the recovery and OS X partition.

 

I can see the bootcamp partition in disk utility in OS X and the info tab shows "Bootable   No"

 

How can I get my bootcamp bootable again?

 

 

P.S. I had lost my bootcamp partition when I was upgrading from mavericks to Yosemite because I was resizing the os x partition to allocate more space to bootcamp partition while using mavericks. Loner T helped me get my bootcamp partition back. After using Yosemite for a while, I feel I need more space for bootcamp partition but Yosemite disk utility does not allow me to resize the OS X partition so I give it up. Until today, I upgraded to El Capitan. I played with disk utility again and it resized my OS X partition without any problem. Then I plan to reboot to bootcamp system and add the released partition to the bootcamp win partition using mini-partition software. However, the startup page can't find my bootcamp partition. It only shows recovery and OS X.

Posted on Nov 16, 2015 6:30 AM

Close

Q: Loner T please help me. After resizing the OS X partition in El Capitan, Bootcamp partition becomes unbootable:(

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Nov 16, 2015 7:19 AM in response to adam1314
    Level 7 (24,012 points)
    Safari
    Nov 16, 2015 7:19 AM in response to adam1314

    Can you post the output of the same commands again?

  • by adam1314,

    adam1314 adam1314 Nov 16, 2015 7:28 AM in response to Loner T
    Level 1 (0 points)
    Nov 16, 2015 7:28 AM in response to Loner T

    Thank you Loner T.

    Please see attached.

    ps.jpg

  • by Loner T,

    Loner T Loner T Nov 16, 2015 9:06 AM in response to adam1314
    Level 7 (24,012 points)
    Safari
    Nov 16, 2015 9:06 AM in response to adam1314

    Download GPT Fdisk from http://sourceforge.net/projects/gptfdisk/ . Do you want to keep the 103Gb Untitled partition?

  • by adam1314,

    adam1314 adam1314 Nov 16, 2015 10:21 AM in response to Loner T
    Level 1 (0 points)
    Nov 16, 2015 10:21 AM in response to Loner T

    Thanks a lot, Loner T.

     

    Yes, I would like to keep the 103 GB untitled partition since it comes from the original OS X partition and I want to merge it with my bootcamp partition once I am able to login my bootcamp partition.

     

    I have downloaded and installed GPT Fdisk.  What should I do next?

  • by Loner T,

    Loner T Loner T Nov 16, 2015 10:25 AM in response to adam1314
    Level 7 (24,012 points)
    Safari
    Nov 16, 2015 10:25 AM in response to adam1314

    Please post the output of

     

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

  • by adam1314,

    adam1314 adam1314 Nov 16, 2015 10:29 AM in response to Loner T
    Level 1 (0 points)
    Nov 16, 2015 10:29 AM in response to Loner T

    There you go.

    ps.jpg

  • by Loner T,Solvedanswer

    Loner T Loner T Nov 16, 2015 1:26 PM in response to adam1314
    Level 7 (24,012 points)
    Safari
    Nov 16, 2015 1:26 PM in response to adam1314

    This is a non-standard and fragile configuration and is not used under normal circumstances.

     

    You have El Capitan, so we need to disable SIP first.

     

    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 it is still disabled.

     

    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.

     

    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): 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 AF): 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

     

    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.

  • by adam1314,Helpful

    adam1314 adam1314 Nov 16, 2015 1:26 PM in response to Loner T
    Level 1 (0 points)
    Nov 16, 2015 1:26 PM in response to Loner T

    thank you for the detailed instruction.

     

    Just to let you know that even thought I haven't restart and enter the recovery mode but I can confirm that the answers to all the tests (1-4) is Yes.

     

    Shall I proceed as you instruct?

  • by adam1314,

    adam1314 adam1314 Nov 16, 2015 11:27 AM in response to Loner T
    Level 1 (0 points)
    Nov 16, 2015 11:27 AM in response to Loner T

    when I reboot to recover mode and type  csrutil status or disable, it says command not found.

  • by adam1314,

    adam1314 adam1314 Nov 16, 2015 11:59 AM in response to Loner T
    Level 1 (0 points)
    Nov 16, 2015 11:59 AM in response to Loner T

    I tried again and booted into the recovery mode by holding the alt key and choose recovery mode.

     

    The command works and I followed your instruction and it works like a charm.

     

    Thank you so much for saving me again. Thanks a lot

  • by Loner T,

    Loner T Loner T Nov 16, 2015 12:07 PM in response to adam1314
    Level 7 (24,012 points)
    Safari
    Nov 16, 2015 12:07 PM in response to adam1314

    Please make sure you take good backups of OSX and Windows. Glad to see it working again. csrutil does not work in Internet Recovery, but works in Local Recovery and under normal OSX.

  • by bluuyo,

    bluuyo bluuyo Feb 23, 2016 11:05 PM in response to Loner T
    Level 1 (0 points)
    Feb 23, 2016 11:05 PM in response to Loner T

    Hello Loner T,

     

    Thanks for your detailed instructions. Unfortunately I'm stuck on step 1. This is what happened:

     

         System Integrity Protection status: disabled.

         Brendans-MacBook-Pro-2:~ bluu$ sudo gdisk /dev/rdisk0

         Password:

         sudo: gdisk: command not found


    Why am I getting the "sudo: gdisk: command not found" error? Is there a fix for this?

  • by Loner T,

    Loner T Loner T Feb 24, 2016 4:40 AM in response to bluuyo
    Level 7 (24,012 points)
    Safari
    Feb 24, 2016 4:40 AM in response to bluuyo

    Please download and install GPT Fdisk from https://sourceforge.net/projects/gptfdisk/ .

  • by diedvb,

    diedvb diedvb Jul 28, 2016 7:00 AM in response to Loner T
    Level 1 (4 points)
    Jul 28, 2016 7:00 AM in response to Loner T

    You are a genius!

Page 1 Next