larry Barham

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

Close

Q: Windows will not boot

  • All replies
  • Helpful answers

Page 1 of 8 last Next
  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 6:28 PM in response to larry Barham
    Level 1 (0 points)
    Dec 21, 2015 6:28 PM in response to larry Barham

    Both Machines are still on 10.10.5

    Old machine is 2010 MBpro

    new machine is current 2015 MBPRO

  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 6:31 PM in response to larry Barham
    Level 1 (0 points)
    Dec 21, 2015 6:31 PM in response to larry Barham

    1221f.png

  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 6:36 PM in response to larry Barham
    Level 1 (0 points)
    Dec 21, 2015 6:36 PM in response to larry Barham

    1221d.png

  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 6:44 PM in response to larry Barham
    Level 1 (0 points)
    Dec 21, 2015 6:44 PM in response to larry Barham

    1221e.png

  • by Loner T,

    Loner T Loner T Dec 21, 2015 6:54 PM in response to larry Barham
    Level 7 (24,202 points)
    Safari
    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.

  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 7:04 PM in response to Loner T
    Level 1 (0 points)
    Dec 21, 2015 7:04 PM in response to Loner T

    I never got that far, I launched winclone and noticed it didn't see the bootcamp partition. All my stuff is stuck in never never land.

  • by Loner T,

    Loner T Loner T Dec 21, 2015 7:11 PM in response to larry Barham
    Level 7 (24,202 points)
    Safari
    Dec 21, 2015 7:11 PM in response to larry Barham

    Is this Testdisk from the 2010 MBP? If yes, please post the output of

     

    sudo gpt -vv -r show /dev/disk0

    sudo fdisk /dev/disk0

     

    from a different Terminal window.

  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 10:40 PM in response to Loner T
    Level 1 (0 points)
    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$

  • by larry Barham,

    larry Barham larry Barham Dec 21, 2015 10:42 PM in response to Loner T
    Level 1 (0 points)
    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$

  • by Loner T,Helpful

    Loner T Loner T Dec 22, 2015 8:47 AM in response to larry Barham
    Level 7 (24,202 points)
    Safari
    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?

  • by larry Barham,

    larry Barham larry Barham Dec 22, 2015 8:50 AM in response to Loner T
    Level 1 (0 points)
    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.

  • by larry Barham,

    larry Barham larry Barham Dec 22, 2015 8:56 AM in response to Loner T
    Level 1 (0 points)
    Dec 22, 2015 8:56 AM in response to Loner T

    ...the Mac partitition was backed up by Time Machine and transfered to the new machine effortlessly days ago, so I care )% about it other than needing it to run Winclone eventually.

  • by Loner T,Helpful

    Loner T Loner T Dec 22, 2015 12:04 PM in response to larry Barham
    Level 7 (24,202 points)
    Safari
    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 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 larry Barham,

    larry Barham larry Barham Dec 22, 2015 11:02 AM in response to Loner T
    Level 1 (0 points)
    Dec 22, 2015 11:02 AM in response to Loner T

    I'm def on Yosemite 10.10.5

Page 1 of 8 last Next