wykstra

Q: Unable to boot into mac or bootcamp

I was stupid to create a new partition from bootcamp so that I can share files between mac and windows easily. It converted the partitions to dynamic I think. I can't boot into mac or windows. Is there a way I can boot into mac without reinstalling ? My time machine back up is very old so I want to get back into mac without restoring it. I appreciate it very much and would follow all the instructions.

 

I was able to get into internet recovery and terminal.

 

IMG_2099.JPG

MacBook Pro (Retina, 15-inch, Early 2013), OS X El Capitan (10.11.2)

Posted on Jan 14, 2016 10:27 PM

Close

Q: Unable to boot into mac or bootcamp

  • All replies
  • Helpful answers

first Previous Page 3 of 4 last Next
  • by wykstra,

    wykstra wykstra Jan 16, 2016 8:54 AM in response to wykstra
    Level 1 (0 points)
    Jan 16, 2016 8:54 AM in response to wykstra

    Is my bootcamp gone ? If yes, any way to get it back ?

  • by Loner T,

    Loner T Loner T Jan 16, 2016 9:19 AM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 9:19 AM in response to wykstra
    3       829351120       830620644   619.9 MiB   AB00  Recovery HD

    This highlighted number needs to be 830620655 . You can run the following sequence in Gdisk.

     

    d

    3

    n

    3

    829351120

    830620655

    AB00

     

    Your Bootcamp is not gone.

     

    Can you see Bootcamp volume in Finder? Can you see familiar Windows files in Finder list?

  • by wykstra,

    wykstra wykstra Jan 16, 2016 9:36 AM in response to Loner T
    Level 1 (0 points)
    Jan 16, 2016 9:36 AM in response to Loner T

    Yes. I can see bootcamp files in finder. Can I try booting into my old mac partition now ?

  • by Loner T,

    Loner T Loner T Jan 16, 2016 10:16 AM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 10:16 AM in response to wykstra

    Did you correct the Recovery HD start/end values? Correct these, before you test the internal disk.

  • by wykstra,

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

    Command (? for help): p

    Disk /dev/disk0: 977105060 sectors, 465.9 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 98FD6F70-9B53-4580-97E3-D98EB0E0228D

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 977105026

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1177 sectors (588.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI System

       2          409640       829351119   395.3 GiB   AF00  Apple HFS/HFS+

       3       829351120       830620655   619.9 MiB   AB00  Recovery HD

       4       830621696       977104895   69.8 GiB    0700  Microsoft basic data

     

    Command (? for help):

  • by Loner T,

    Loner T Loner T Jan 16, 2016 10:27 AM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 10:27 AM in response to wykstra

    Go To System Preferences -> Startup Disk, you should see three options, external OS X, internal OS X and Windows. Windows will not work, but switch between the two OS X versions and ensure you do not see any problems, before we proceed further.

  • by wykstra,

    wykstra wykstra Jan 16, 2016 10:32 AM in response to Loner T
    Level 1 (0 points)
    Jan 16, 2016 10:32 AM in response to Loner T

    OK I am able to boot into internal drive OSX. Omg yay!

     

    I can see only external OS X and internal OS X under start up disk in system preferences. I cannot see bootcamp under it.

     

    I can see the bootcamp partition in the finder but not in the disk utility.

  • by Loner T,

    Loner T Loner T Jan 16, 2016 10:52 AM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 10:52 AM in response to wykstra

    Boot from OS X on the internal disk, and install GPT Fdisk on the internal disk. Disconnect your external disk. Once Gdisk is installed, Disable SIP, and run the following steps...

     

    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 4
    7. Y  (Good for GRUB question)
    8. N  (part 2 boot flag)
    9. N  (part 3 boot flag)
    10. Y  (part 4 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 #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 AB): Press Enter/Return

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

     

    Creating entry for GPT partition #4 (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 wykstra,

    wykstra wykstra Jan 16, 2016 10:58 AM in response to Loner T
    Level 1 (0 points)
    Jan 16, 2016 10:58 AM in response to Loner T

    Sorry, how would I disable SIP ?

  • by Loner T,

    Loner T Loner T Jan 16, 2016 11:19 AM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 11:19 AM in response to wykstra

    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.

  • by wykstra,

    wykstra wykstra Jan 16, 2016 1:13 PM in response to Loner T
    Level 1 (0 points)
    Jan 16, 2016 1:13 PM in response to Loner T

    I did the hybrid MBR steps but not able to see bootcamp under startup disk in system preferences. I can see the bootcamp drive in finder. Disk utility doesn't show bootcamp as a separate partition.

  • by Loner T,

    Loner T Loner T Jan 16, 2016 1:28 PM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 1:28 PM in response to wykstra

    What third-party NTFS software do you have installed on the OS X side? Please post the output of diskutil info disk0s4.

  • by wykstra,

    wykstra wykstra Jan 16, 2016 1:33 PM in response to Loner T
    Level 1 (0 points)
    Jan 16, 2016 1:33 PM in response to Loner T

    I had installed tuxera disk manager earlier before everything got messed up.

     

    MacBooks-MacBook-Pro-2:~ macbookpro$ diskutil list /dev/disk0s4

    /dev/disk0 (internal, physical):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *500.3 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            424.4 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data BOOTCAMP                75.0 GB    disk0s4

    MacBooks-MacBook-Pro-2:~ macbookpro$

  • by wykstra,

    wykstra wykstra Jan 16, 2016 2:19 PM in response to wykstra
    Level 1 (0 points)
    Jan 16, 2016 2:19 PM in response to wykstra

    I uninstalled tuxera disk manager and now bootcamp shows under startup disk. I tried rebooting the computer, and pressed option key to show the drives. Went into windows but got an error below.

     

    IMG_2104.JPG

  • by Loner T,

    Loner T Loner T Jan 16, 2016 2:32 PM in response to wykstra
    Level 7 (24,202 points)
    Safari
    Jan 16, 2016 2:32 PM in response to wykstra

    You will need Windows Installer to run Windows Statrup Repair. Your error message indicates Windows BCD corruption.

    I suggest you make a backup of your Windows files, since you can now see them.

first Previous Page 3 of 4 last Next