arrwhieayen

Q: Disk utility repair made Bootcamp partition innacessable.

My MBP running 10.9.5 was having issues starting up. I booted into recovery and used Disk Utility to repair my disk. Can boot into OS X just fine now, but when I hold alt/ option to get boot options for Bootcamp, Windows partition no longer is available.

 

When I boot into OS X I can see my partition and access the files, I'm guessing Disk Utility removed the boot partition or some such thing.

 

Any help would be appreciated!

MacBook Pro, OS X Mavericks (10.9.5), Bootcamp with Windows 7

Posted on Dec 8, 2015 10:02 AM

Close

Q: Disk utility repair made Bootcamp partition innacessable.

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Dec 8, 2015 10:22 AM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 10:22 AM in response to arrwhieayen

    Can you post the output of the following 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 arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 10:28 AM in response to Loner T
    Level 1 (0 points)
    Dec 8, 2015 10:28 AM in response to Loner T

    diskutil list:

     

    Screen Shot 2015-12-08 at 10.24.27 AM.png

    diskutil cs list:

     

    Screen Shot 2015-12-08 at 10.25.09 AM.png

     

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

    Screen Shot 2015-12-08 at 10.26.08 AM.png

     

    sudo fdisk /dev/disk0:

     

    Screen Shot 2015-12-08 at 10.26.46 AM.png

  • by Loner T,

    Loner T Loner T Dec 8, 2015 12:03 PM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 12:03 PM in response to arrwhieayen

    1. Was Recovery HD manually deleted?

    2. You have a missing MBR. Can you post the output of

     

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

     

    3. Please download GPT Fdisk - http://sourceforge.net/projects/gptfdisk/ .

  • by arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 12:27 PM in response to Loner T
    Level 1 (0 points)
    Dec 8, 2015 12:27 PM in response to Loner T

    I did not delete Recovery. At least intentionally. All I did was run repair on the disks.

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

    Screen Shot 2015-12-08 at 12.25.09 PM.png

     

    Downloaded and installed GPT fdisk. 

  • by Loner T,Solvedanswer

    Loner T Loner T Dec 8, 2015 3:00 PM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 3:00 PM in response to arrwhieayen

    If this disk was part of another system or had OS X on a different disk, that may explain Recovery HD missing from this disk. Usually in step 6, there are three numbers. The missing Recovery means you have only 2, which are GPT2 and GPT3 respectively.


    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: 2 3
    7. Y  (Good for GRUB question)
    8. N  (part 2 boot flag)
    9. Y  (part 3 boot flag make NTFS bootable partition)
    10. O  (print current Hybrid MBR)
    11. W (Write the new MBR)
    12. Y (Yes! write the new MBR)
    13. 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 #2 (MBR partition #2)

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

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

     

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

    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 arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 1:01 PM in response to Loner T
    Level 1 (0 points)
    Dec 8, 2015 1:01 PM in response to Loner T

    Ok, got to step 10 before having another question for you. Is this where I answer Y as in #10 above?

     

    Screen Shot 2015-12-08 at 12.59.34 PM.png

  • by Loner T,

    Loner T Loner T Dec 8, 2015 1:06 PM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 1:06 PM in response to arrwhieayen

    Say 'n' and continue. Post the output after step 10.

  • by arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 1:09 PM in response to Loner T
    Level 1 (0 points)
    Dec 8, 2015 1:09 PM in response to Loner T

    Screen Shot 2015-12-08 at 1.07.55 PM.png

  • by Loner T,

    Loner T Loner T Dec 8, 2015 1:14 PM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 1:14 PM in response to arrwhieayen

    Partition 3 needs to be marked bootable. In typical cases, it is partition 4. You can type 'h' here (step 5) and continue.

  • by arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 1:30 PM in response to Loner T
    Level 1 (0 points)
    Dec 8, 2015 1:30 PM in response to Loner T

    Ok, so before I go further, I should start over and when it asks for "bootable flag" for #3 answer 'Y', then continue with step 10?

  • by Loner T,

    Loner T Loner T Dec 8, 2015 1:35 PM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 1:35 PM in response to arrwhieayen

    Type 'h' at the Recovery and Transformation prompt.... This puts you at step 5. Continue sequentially, without skipping any steps. Partition 3 boot flag should be 'Y'.

     

    The 128MB gap why you need to type the additional 'n'.

  • by arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 1:39 PM in response to Loner T
    Level 1 (0 points)
    Dec 8, 2015 1:39 PM in response to Loner T

    Ok, it looks like I may need to type Y in the Recovery and Transformation prompt, but I will wait for you to advise until I proceed:

    Screen Shot 2015-12-08 at 1.37.47 PM.png

  • by Loner T,

    Loner T Loner T Dec 8, 2015 2:17 PM in response to arrwhieayen
    Level 7 (24,307 points)
    Safari
    Dec 8, 2015 2:17 PM in response to arrwhieayen

    Say 'y' and check if it will show you the MBR it is going to write in step 10.

  • by arrwhieayen,

    arrwhieayen arrwhieayen Dec 8, 2015 2:25 PM in response to arrwhieayen
    Level 1 (0 points)
    Dec 8, 2015 2:25 PM in response to arrwhieayen

    I think I am now at step 11. Please confirm:

     

    Screen Shot 2015-12-08 at 2.23.39 PM.png

Page 1 Next