Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows will not boot

I'm panicking, I was in the final stages of prepping my old macbook and new macbook systems and ran chkdsk (not with the /B cause it complained since my system is NTFS) but I think it was right after that my bootcamp partition was not bootable (and its been many weeks since I did a backup and was just about to). It shows up in Disk Utility and hope its just a Master Boot Record or an easy fix, also can't view the bootcamp device or any files in Finder. Tried to delete the Recovery partition and EFI to get a MBR fix...I know enough to be dangerous.

Yosemite

Win 8.1

Posted on Dec 21, 2015 6:25 PM

Reply
106 replies

Dec 21, 2015 6:54 PM in response to larry Barham

Please be careful with Winclone between a 2010 and a 2015 Mac.


1. Please see https://twocanoes.zendesk.com/hc/en-us/articles/204433039-Winclone-Image-Compati bility-with-512b-and-4K-Block-Size-on-20… .

2. When you restored Winclone to the 2015 Mac, did you disable SIP (El Capitan System Integrity protection)? Wincloen restore does not complete properly, otherwise.

Dec 21, 2015 10:40 PM in response to Loner T

Yes, all just my macbook 10


Last login: Mon Dec 21 22:36:12 on ttys000

larbars-MacBook-Pro-2:~ mbpro10$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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 1348782000 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1349191640 262144

1349453784 1269536 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1350723320 278583560

1629306880 324216832 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1953523712 1423

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

larbars-MacBook-Pro-2:~ mbpro10$

Dec 21, 2015 10:42 PM in response to Loner T

larbars-MacBook-Pro-2:~ mbpro10$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 1023 254 63 - 1023 254 63 [ 1 - 1953525167] <Unknown ID>

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

larbars-MacBook-Pro-2:~ mbpro10$

Dec 22, 2015 8:47 AM in response to larry Barham

Before we proceed further, this is the table based on your current GPT and the Testdisk output...


GPT3 Start

GPT3 Size

GPT3 End

Sector Gap

NTFS Start

NTFS Size

NTFS End

Disk End

Disk Difference

1349453784

1269536

1350723320

84781320

1435504640

518019065

1953523705

1953525168

1463




40.43


247.01





The second row is in GB (Sectors / 2 * 1024 * 1024). There is a 40GB gap. Is that intentional or was there a resizing attempt in the past on Windows?

Dec 22, 2015 8:50 AM in response to Loner T

Yes, Forgot to mention a couple months ago there was a resizing attempt that seemed to work and Windows was lager than 200gb, but then I can't remember when I noticed there was a gap and neither mac or windows had the space occupied. I think it was weeks ago and in the recent days I did some heavy trimming of windows files/programs to get the future copy/transfer size down.

Dec 22, 2015 12:04 PM in response to larry Barham

A. We need to disable SIP. This is needed if your OSX version is El Capitan.


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.


B. You need to rebuild the GPT first, before you recreate the MBR.


Leave your Testdisk display and start a new Terminal Window. You need to use the following steps. If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8. Please notice the'+' sign in step 8 (this is called offset notation). The text in parentheses is for informational purpose to describe the action being taken. Gdisk has one-character commands except when entering numbers.


Rebuild GPT4 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 4 (part 4)
  5. N (new part)
  6. 4 (part 4)
  7. 1435504640 ( - Start offset in sectors or the start point for Bootcamp part)
  8. +518019065 ( - Size offset, as opposed to End offset)
  9. 0700 (Windows part type)
  10. P (print list of all parts just to see what changes will be made)
  11. W (Write the new GPT)
  12. Y (Yes! really write the new GPT)

This will delete and re-write the GPT partition info for /dev/disk0s4.

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 thesample 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.

Dec 22, 2015 11:52 AM in response to Loner T

ast login: Tue Dec 22 11:35:02 on console

larbars-MacBook-Pro-2:~ mbpro10$ csrutil status

-bash: csrutil: command not found

larbars-MacBook-Pro-2:~ mbpro10$ csrutil

-bash: csrutil: command not found

larbars-MacBook-Pro-2:~ mbpro10$ Sudo gdisk /dev/rdisk0

Password:

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: protective

BSD: not present

APM: not present

GPT: present


Found valid GPT with protective MBR; using GPT.


Command (? for help): P

Disk /dev/rdisk0: 1953525168 sectors, 931.5 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): D2FB0435-2387-4E0A-ADD4-202E476F2E42

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1953525134

Partitions will be aligned on 8-sector boundaries

Total free space is 278847133 sectors (133.0 GiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 1349191639 643.1 GiB AF00 Fat 1000

3 1349453784 1350723319 619.9 MiB AF00 Apple_HFS_Untitled_2

4 1629306880 1953523711 154.6 GiB 0700 BOOTCAMP


Command (? for help): D

Partition number (1-4): 4


Command (? for help): N

Partition number (4-128, default 4): 4

First sector (34-1953525134, default = 1350723320) or {+-}size{KMGTP}: 1435504640

Last sector (1435504640-1953525134, default = 1953525134) or {+-}size{KMGTP}: +518019065

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Command (? for help): P

Disk /dev/rdisk0: 1953525168 sectors, 931.5 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): D2FB0435-2387-4E0A-ADD4-202E476F2E42

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1953525134

Partitions will be aligned on 8-sector boundaries

Total free space is 85044900 sectors (40.6 GiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 1349191639 643.1 GiB AF00 Fat 1000

3 1349453784 1350723319 619.9 MiB AF00 Apple_HFS_Untitled_2

4 1435504640 1953523704 247.0 GiB 0700 Microsoft basic data


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.

larbars-MacBook-Pro-2:~ mbpro10$

Windows will not boot

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.