mcarriere

Q: Boot issues after installing Windows 10 via Bootcamp

This morning I installed Windows 10 via Bootcamp in El Capitan.

 

During the windows installation, the only thing I needed to do was format the "BOOTCAMP" drive, and I was able to complete the Windows 10 installation. After awhile I went back to boot into OSX. When I selected the drive, I received the circle with a diagonal line through it, and then the system booted back into Windows.

 

After that, I rebooted into Internet Recovery (CMD + R), and ran disk utility to repair both the OSX volume, and the entire disk. After doing this, and rebooting, I am getting a folder with a question mark. Both partitions are still visible in disk utility, so I'm quite confident that no data has been lost, but there doesn't seem to be an easy way to fix this, as no amount of "Repair Disk" clicking seems to be working.

 

I'm comfortable using the terminal, and have used gdisk on other installations before to repair broken windows partitions after a shoddy bootcamp install. Can I get some direction as to what I need to do next? Not being able to get in to either of my partitions does make this a bit harder -- will I have to download gdisk from another computer and mount the usb drive via the terminal?

 

Any help or advice going forward would be appreciated.

MacBook Pro (Retina, 15-inch, Late 2013), OS X El Capitan (10.11)

Posted on Oct 14, 2015 10:02 AM

Close

Q: Boot issues after installing Windows 10 via Bootcamp

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Oct 14, 2015 10:29 AM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 10:29 AM in response to mcarriere

    Can you download GPT Fdisk on the Windows side and post the output of the 'p' command?

     

    W8.1-GPTFdisk.png

  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 10:44 AM in response to Loner T
    Level 1 (0 points)
    Oct 14, 2015 10:44 AM in response to Loner T

    Unfortunately, I can't boot into either operating systems after running "Repair Disk" from the Internet Recovery partition.

     

    Is there some command I can run in terminal from the internet recovery that would give you the information that you want? Also, there will be about a 90 minute delay before I can do any of this -- I am currently cloning the Mac Partition just to ensure none of that data gets destroyed in a freak accident when trying to fix this all.

     

    I can also download some Linux LiveUSB iso if you know of one that would help.

  • by Loner T,

    Loner T Loner T Oct 14, 2015 11:14 AM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 11:14 AM in response to mcarriere

    Can you How to install OS X on an external drive connected to your Mac - Apple Support on an external USB/FW/TB HDD and boot from it?

  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 1:24 PM in response to Loner T
    Level 1 (0 points)
    Oct 14, 2015 1:24 PM in response to Loner T

    Here is that output, and a few other commands to hopefully give a full picture of the situation. My OSX side is the ~600GB partition, Windows is the ~400GB partition.

    Michaels-MacBook-Pro:~ michael$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         598.4 GB   disk0s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk0s3
       4:       Microsoft Basic Data BOOTCAMP                401.3 GB   disk0s4
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *240.1 GB   disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:                  Apple_HFS EXTERNALOSX             239.2 GB   disk1s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Macintosh HD           *598.0 GB   disk2
    
    
    Michaels-MacBook-Pro:~ michael$ sudo gpt -vv -r show /dev/disk0
    gpt show: /dev/disk0: mediasize=1000555581440; sectorsize=512; blocks=1954210120
    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 1954210119
           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  1168680384      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
      1169090024     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      1170359560         760         
      1170360320   783849472      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
      1954209792         295         
      1954210087          32         Sec GPT table
      1954210119           1         Sec GPT header
    
    
    Michaels-MacBook-Pro:~ michael$ sudo gdisk
    GPT fdisk (gdisk) version 1.0.0
    
    Type device filename, or press  to exit: /dev/disk0
    Warning: Devices opened with shared lock will not have their
    partition table automatically reloaded!
    Partition table scan:
      MBR: protective
      BSD: not present
      APM: not present
      GPT: present
    
    Found valid GPT with protective MBR; using GPT.
    
    Command (? for help): 
    
    
    Command (? for help): p
    Disk /dev/disk0: 1954210120 sectors, 931.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 9D658AB4-9D1E-4DBA-ABF2-CCF321F27BFD
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1954210086
    Partitions will be aligned on 8-sector boundaries
    Total free space is 1061 sectors (530.5 KiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1              40          409639   200.0 MiB   EF00  EFI System Partition
       2          409640      1169090023   557.3 GiB   AF05  Macintosh HD
       3      1169090024      1170359559   619.9 MiB   AB00  Booter
       4      1170360320      1954209791   373.8 GiB   0700  BOOTCAMP
    
    Command (? for help): 
    
    
    
    
  • by Loner T,

    Loner T Loner T Oct 14, 2015 1:27 PM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 1:27 PM in response to mcarriere

    Please post the output of

     

    sudo fdisk /dev/disk0

  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 1:30 PM in response to Loner T
    Level 1 (0 points)
    Oct 14, 2015 1:30 PM in response to Loner T
    Michaels-MacBook-Pro:~ michael$ sudo fdisk /dev/disk0
    Disk: /dev/disk0     geometry: 121643/255/63 [1954210120 sectors]
    Signature: 0xAA55
             Starting       Ending
     #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
    ------------------------------------------------------------------------
     1: EE 1023 254  63 - 1023 254  63 [         1 - 1954210119]  
     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      
    
    
  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 1:50 PM in response to mcarriere
    Level 1 (0 points)
    Oct 14, 2015 1:50 PM in response to mcarriere

    For what it's worth, I've also gone ahead and made a backup of my GPT with gdisk.

  • by Loner T,

    Loner T Loner T Oct 14, 2015 2:51 PM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 2:51 PM in response to mcarriere

    It is always good to have a GPT backup. Your GPT looks clean.

     

    1. The MBR is missing. Do you know if your Windows installation was UEFI or BIOS? You specific Mac supports both. This will decide if we need to recreate the  MBR. Can you also post the output of

     

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

     

    2. Is your EXTERNALOSX ELC or something else?

     

    3. What is disk2?

  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 3:54 PM in response to Loner T
    Level 1 (0 points)
    Oct 14, 2015 3:54 PM in response to Loner T

    I would prefer that it is a UEFI installation -- I didn't do anything special to choose one or the other during my install process. (I installed via bootcamp with an ISO in El Capitan)

    Michaels-MacBook-Pro:Desktop michael$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

    00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|

    00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 48 c2 45  |........?....H.E|

    00000020  00 00 00 00 80 00 80 00  ff 97 b8 2e 00 00 00 00  |................|

    00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|

    00000040  f6 00 00 00 01 00 00 00  87 b2 23 aa df 23 aa 5e  |..........#..#.^|

    00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|

    00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|

    00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|

    00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|

    00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|

    000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|

    000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|

    000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|

    000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|

    000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|

    000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|

    00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|

    00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|

    00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|

    00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|

    00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|

    00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|

    00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|

    00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............

    2. The "EXTERNALOSX" is the USB Drive running a clean install from the recovery (which is 10.9, if it matters.)

    3. I'm not quite sure what disk2 is, my mac drive was originally file vault encrypted. When I booted into the system, I was asked to unlock the drive, so my guess is that's just a temporary mount point for the unencrypted data? I just removed the encryption, and will reboot to see if it's still being referenced at boot.

     

    Seems like that was the case, after a reboot:

     

    Michaels-MacBook-Pro:Desktop michael$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *1.0 TB     disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            598.4 GB   disk0s2

       3:                 Apple_Boot Boot OS X               650.0 MB   disk0s3

       4:       Microsoft Basic Data BOOTCAMP                401.3 GB   disk0s4

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *240.1 GB   disk1

       1:                        EFI EFI                     209.7 MB   disk1s1

       2:                  Apple_HFS EXTERNALOSX             239.2 GB   disk1s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3

    Michaels-MacBook-Pro:Desktop michael$

  • by Loner T,

    Loner T Loner T Oct 14, 2015 3:53 PM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 3:53 PM in response to mcarriere

    I should have requested diskutil cs list since you do/did show a CS volume.

     

    Right now, I will assume that your Windows is BIOS. Can you use Gdisk to create a Hybrid MBR (use 'r', 'h' in the main menu) with GPT 2 3 4 (in that order) and mark 4 as bootable? We can then test the Windows partition.

  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 4:35 PM in response to Loner T
    Level 1 (0 points)
    Oct 14, 2015 4:35 PM in response to Loner T

    That returned an error: File: \Boot\BCD Status: 0xc0000000f Info: The Boot Configuration Data for your PC is missing or contains errors. Does this mean that it was installed via UEFI?

  • by Loner T,

    Loner T Loner T Oct 14, 2015 4:45 PM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 4:45 PM in response to mcarriere

    The default on the 2013 Mac is Hybrid MBR. Can you try and use bootrec.exe to rebuildBCD and test - https://support.microsoft.com/en-us/kb/927392 ?

  • by mcarriere,

    mcarriere mcarriere Oct 14, 2015 5:27 PM in response to Loner T
    Level 1 (0 points)
    Oct 14, 2015 5:27 PM in response to Loner T

    So unfortunately in both backing up my mac harddrive and then creating an OSX USB drive, I overwrote my Win10 install disk that I had created, and it seems there's no way for me to get recovery mode going without it. I could erase one of those disks and start over, or try to create a DVD with the installation media, but for the time being, I used gdisk to restore the backup GPT onto the drive. This allowed me to get back into my mac partition. Prior to all of this, my Windows partition *was* booting just fine. Is there anything we can do without having to run the install again in order to get this to work? In the meantime, I can try to find my external drive and burn a DVD. Thanks again, all of your help so far is so incredibly appreciated.

  • by Loner T,

    Loner T Loner T Oct 14, 2015 5:46 PM in response to mcarriere
    Level 7 (24,795 points)
    Safari
    Oct 14, 2015 5:46 PM in response to mcarriere

    1. You can rebuild a USB Installer using a W10 ISO and USB flash drive 8-16GB and using BCA Option 1 and 2.

    2. If the GPT was restored, can you post the current GPT? It would be good to compare them. I assume it is different from the one you posted earlier.

    3. We can use the current GPT and check if the dd command still returns the NTFS header.

    4. Do not burn a DVD yet. Let us see the dd output.

Page 1 Next