-
All replies
-
Helpful answers
-
Mar 28, 2016 2:36 AM in response to Loner Tby Dinh Duc Hiep,Hi Loner T,
I got the same issue and followed all of your instruction but I can't boot Window. It always report that I need to repair system with error code 0xc000000e.
1. I disabled SIP as your advice
2. I followed your instruction and the log as follows:
Last login: Mon Mar 28 16:12:04 on ttys000
Dinhs-MacBook-Pro-2:~ dinhduchiep$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh HD 57.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data Work 29.2 GB disk0s4
5: Microsoft Basic Data Win10 34.1 GB disk0s5
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +56.7 GB disk1
Logical Volume on disk0s2
845A76A1-FDBD-4E36-AFDD-A5A62380E3AF
Unencrypted
Dinhs-MacBook-Pro-2:~ dinhduchiep$ diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group 1364E43B-7F66-4746-90B4-58F73385F264
=========================================================
Name: Macintosh HD
Status: Online
Size: 57035751424 B (57.0 GB)
Free Space: 18968576 B (19.0 MB)
|
+-< Physical Volume 5C662705-785C-4298-9342-C1CB8850ECFC
| ----------------------------------------------------
| Index: 0
| Disk: disk0s2
| Status: Online
| Size: 57035751424 B (57.0 GB)
|
+-> Logical Volume Family 2DE0426A-0247-45CB-9425-B6963227AA47
----------------------------------------------------------
Encryption Type: None
|
+-> Logical Volume 845A76A1-FDBD-4E36-AFDD-A5A62380E3AF
---------------------------------------------------
Disk: disk1
Status: Online
Size (Total): 56664461312 B (56.7 GB)
Revertible: Yes (no decryption required)
LV Name: Macintosh HD
Volume Name: Macintosh HD
Content Hint: Apple_HFS
Dinhs-MacBook-Pro-2:~ dinhduchiep$ sudo gpt -vv -r show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=121332826112; sectorsize=512; blocks=236978176
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 236978175
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 111397952 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
111807592 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
113077128 57033848 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
170110976 262144
170373120 66603008 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
236976128 2015
236978143 32 Sec GPT table
236978175 1 Sec GPT header
Dinhs-MacBook-Pro-2:~ dinhduchiep$ sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 14751/255/63 [236978176 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 2 - 1023 254 63 [ 1 - 170373119] <Unknown ID>
*2: 07 1023 254 63 - 1023 254 63 [ 170373120 - 66603008] HPFS/QNX/AUX
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
Dinhs-MacBook-Pro-2:~ dinhduchiep$ sudo dd if=dev/rdisk0s5 count=1 2>/dev/null | hexdump -C
Dinhs-MacBook-Pro-2:~ dinhduchiep$ sudo dd if=dev/disk0s5 count=1 2>/dev/null | hexdump -C
Dinhs-MacBook-Pro-2:~ dinhduchiep$ dd if=dev/rdisk0s5 count=1 2>/dev/null | hexdump -C
Dinhs-MacBook-Pro-2:~ dinhduchiep$ sudo gdisk /dev/rdisk0
GPT fdisk (gdisk) version 1.0.1
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): p
Disk /dev/rdisk0: 236978176 sectors, 113.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 8431629D-2D10-4F1A-A532-9CAC4AD434CE
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 236978142
Partitions will be aligned on 8-sector boundaries
Total free space is 264165 sectors (129.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 111807591 53.1 GiB AF05 Macintosh HD
3 111807592 113077127 619.9 MiB AB00 Recovery HD
4 113077128 170110975 27.2 GiB 0700 Windows_NTFS_Untitl...
5 170373120 236976127 31.8 GiB 0700 BOOTCAMP
Command (? for help): r
Recovery/transformation command (? for help): o
Disk size is 236978176 sectors (113.0 GiB)
MBR disk identifier: 0xF19DEB96
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 170373119 primary 0xEE
2 * 170373120 236976127 primary 0x07
Recovery/transformation command (? for help): h
WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.
Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 3 4 5
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):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #4 (MBR partition #3)
Enter an MBR hex code (default 07):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #5 (MBR partition #4)
Enter an MBR hex code (default 07):
Set the bootable flag? (Y/N): y
Recovery/transformation command (? for help): o
Disk size is 236978176 sectors (113.0 GiB)
MBR disk identifier: 0xF19DEB96
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 111807591 primary 0xEE
2 111807592 113077127 primary 0xAB
3 113077128 170110975 primary 0x07
4 * 170373120 236976127 primary 0x07
Recovery/transformation command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/rdisk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.
Dinhs-MacBook-Pro-2:~ dinhduchiep$
3. I attached screenshot of Windows bluescreen.
Can you help to check what's wrong with my steps? Thank a lot for your support.
-
Mar 28, 2016 8:13 AM in response to Dinh Duc Hiepby Loner T,The error code indicates BCD corruption. You will need to use Command Prompt, make the partition read-write using Diskpart.exe, and run bootrec.exe /rebuildBCD to make this work properly.
-
Mar 28, 2016 9:52 AM in response to Loner Tby Dinh Duc Hiep,Thank you for your suggestion. I tried the following steps:
1. Clear attribute read only of the volume Bootcamp which contain Win10 by using Diskpart.
2. Rebuild boot configuration data by bootrec.exe
At the step 2, after entering "bootrec.exe /RebuildBcd", the system scanned and found 1 Windows installation at C:\Windows. It ask "add installation to boot list" and I choose "yes". Later, it reported that "the requested system device cannot be found".
Can you tell me what wrong here? I'm using recovery disk of Windows 10 and manipulating commands from command promt.
-
Mar 28, 2016 10:23 AM in response to Dinh Duc Hiepby Loner T,You need to look at Diskpart and map the System volume to a drive letter which has your BCD, otherwise BCD rebuild will fail.
-
Mar 28, 2016 10:51 AM in response to Loner Tby Dinh Duc Hiep,I'm not sure I'm following you. Currently I have 4 volumes in Diskpart: volume 0 is the new partition I created from Macintos HD (E:), volume 1 is BOOTCAMP one (C:), volume 2 is one in Usb stick (F:), volume 3 is recovery disk which I'm running command line (D:). How should I do mapping system volume with the volume which has BCD (C?)? Thank you.
-
Mar 28, 2016 10:57 AM in response to Dinh Duc Hiepby Loner T,Please see 0xc000000e Error on Windows after Partition Resize as an example.
-
Mar 28, 2016 12:25 PM in response to Loner Tby Dinh Duc Hiep,I was able to mount EFI volume on Mac, however when I boot to Windows recovery mode by USB stick I could not see EFI volume to assign different drive letter as your suggestion to rebuild BCD. Can you help at this stage? Thank for your patience.
-
Mar 28, 2016 3:09 PM in response to Dinh Duc Hiepby Loner T,Can you post a screen shot of your diskpart list?
-
-
Mar 28, 2016 7:48 PM in response to Dinh Duc Hiepby Loner T,The Diskpart is reading the MBR we created which 'merged' the EFI and OS X into a single volume, which is Partition 1. You only see Partitions 1-4. The BCD is located in the EFI partition. You may need to recreate the MBR using 2 4 5, and re-check if you can see and rebuild the BCD.
This is a nasty state, because the Recovery HD can be corrupted by Windows. Once you rebuild the BCD, you need to switch the MBR back to 3 4 5, before you try to boot Windows.
-
Mar 28, 2016 8:39 PM in response to Loner Tby Dinh Duc Hiep,I recreated MBR using 2 4 5 but was still unable to see EFI volume. The list of volume in Diskpart is the same, the difference is list of partition where size of the first partition is 200MB, which might refer to EFI. Should I backup data and reinstall Windows now? It took me more than a day to look around solution for this trouble and I'm not sure if there is solution for my nasty state.
-
Mar 28, 2016 8:48 PM in response to Dinh Duc Hiepby Loner T,The first 200MB partition is your EFI partition which holds your BCD.
You can re-install Windows, but you will need to wipe the extra partition and merge it all back, so your partition list before you start Windows installation must have EFI, OSX and Recovery HD only. After you re-install Windows, if you recreate a new partition, you will run into the same issue again.
What year/model is your Mac?
-
Mar 28, 2016 8:59 PM in response to Loner Tby Dinh Duc Hiep,My Mac is Macbook Pro Retina 13-inc late 2013.
The purpose of creating new partition is I want to have a place to share data between Win and Mac. Now it looks like there is no way to do that, right?
I think this issue is Apple software bug because they design both Bootcamp and DiskUtility but using DiskUtility to create new partition create this kind of trouble for user. My issue is similar to the issue in this thread https://discussions.apple.com/message/29549532#29549532 and we both are unable to find out solution.
-
Mar 28, 2016 9:37 PM in response to Dinh Duc Hiepby Loner T,Your 2013 Mac supports two modes of Windows 8.1/10 installation. In your specific case, if you upgraded from W7, the original installation was MBR/BIOS. Your Mac also defaults to a MBR/BOS installation of W8.1. DU warns you that Windows will not work, if you create an additional partition.
It is not a software bug. The issue in the thread and yours is a combination of BCD in EFI partition, MBR limitation of 4 entries, and manually creating an additional partition. This is unsupported under a BIOS/MBR installation due to limitations of MBRs (4 entries) and three partitions already in use - EFI, OSX and Recovery HD.
The other method of W8.1/10 installation is GPT/EFI which is supported on your Mac. I have it installed on a 2013 rMBP using this method. The BCD is no longer stored in the EFI partition. It requires creating a Free Space partition which is split into MSR/MSD parts. This method uses GPT-only disks, which allows you to create additional partitions using DU.
You must still install BC drivers for Apple hardware to work properly in Windows.
-
Mar 28, 2016 9:57 PM in response to Loner Tby Dinh Duc Hiep,Thank for your explanation, it helps me to understand more about EFI/MBR.
For my case, I installed a fresh W10 using BootCamp and I did not see a warning from DU when using it to create the new partition.
I decided to reinstall Windows. Appreciated your support and patience.