Sanjaya83

Q: Can't boot into windows after resizing partitions

I tried to resize my bootcamp and mac partitions recently

I cannot boot into windows now

Get an error about missing MBR

Do you think you could help me here?

I read about using GPT fdisk on another thread

These are the results I got from it

Wanted to check before doing anything

 

Sanjayas-MacBook-Pro:~ sanjaya83$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 38913/255/63 [625142448 sectors]

Signature: 0xAA55

         Starting       Ending

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

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

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

2: AF 1023 254  63 - 1023 254  63 [    409640 -  349609376] HFS+      

3: AB 1023 254  63 - 1023 254  63 [ 350019016 -    1269536] Darwin Boot

4: 0C 1023 254  63 - 1023 254  63 [ 351289344 -  273852416] Win95 FAT32L

Sanjayas-MacBook-Pro:~ sanjaya83$ sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 1.0.1

 

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

NOTE: Write test failed with error number 1. It will be impossible to save

changes to this disk's partition table!

You may need to deactivate System Integrity Protection to use this program. See

https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

for more information.

 

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/disk0: 625142448 sectors, 298.1 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 55739070-E42E-4414-947D-F1AAD2EB65D0

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 625142414

Partitions will be aligned on 8-sector boundaries

Total free space is 1453 sectors (726.5 KiB)

 

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

   1              40          409639   200.0 MiB   EF00  EFI System Partition

   2          409640       350019015   166.7 GiB   AF00  Customer

   3       350019016       351288551   619.9 MiB   AB00  Recovery HD

   4       351289344       625141759   130.6 GiB   0700  BOOTCAMP

 

Command (? for help):

MacBook Pro (13-inch Early 2011), OS X El Capitan (10.11.1)

Posted on Dec 1, 2015 5:12 PM

Close

Q: Can't boot into windows after resizing partitions

  • All replies
  • Helpful answers

first Previous Page 9 of 11 last Next
  • by Loner T,

    Loner T Loner T Feb 15, 2016 3:11 PM in response to sakman74
    Level 7 (23,920 points)
    Safari
    Feb 15, 2016 3:11 PM in response to sakman74

    If you get the GPT working correctly, we can straighten out if there are any MBR issues. You want to just convert this to a file system - from the OS X side. Do not use Windows.

  • by sakman74,

    sakman74 sakman74 Feb 15, 2016 4:39 PM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 15, 2016 4:39 PM in response to Loner T

    understood ....

     

    do you need me to output any info ?

     

    btw i reformatted the partition as FAT since I don't think I'll be needing the capabilities of extFAT.

     

    Admins-MBP:~ adminuser$ diskutil list

    /dev/disk0 (internal, physical):

       #:                TYPE NAME                              SIZE                 IDENTIFIER

       0:                GUID_partition_scheme                  *251.0 GB             disk0

       1:                EFI EFI                                209.7 MB              disk0s1

       2:                Apple_HFS Macintosh HD                 70.0 GB               disk0s2

       3:                Apple_Boot Recovery HD                 650.0 MB              disk0s3

       4:                Microsoft Basic Data Windows           175.0 GB              disk0s4

       5:                Microsoft Basic Data SHARE             5.1 GB                disk0s5

     

    gdisk output:

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    137129983   primary     0xAF

       3             137129984    138399519   primary     0xAB

       4      *      138399744    480200703   primary     0x07


    Recovery/transformation command (? for help): m

     

    Command (? for help): p

    Disk /dev/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0BAF7312-19DB-43E6-A018-9764A4932C1C

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1093 sectors (546.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       137129983   65.2 GiB    AF00  Customer

       3       137129984       138399519   619.9 MiB   AB00  Recovery HD

       4       138399744       480200703   163.0 GiB   0700  Basic data partition

       5       480200704       490233855   4.8 GiB     0700  Share


    Admins-MBP:~ adminuser$ sudo gpt show disk0

    Password:

    gpt show: disk0: Suspicious MBR at sector 0

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

      137129984    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      138399520        224        

      138399744  341800960      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      480200704   10033152      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

     



    https://drive.google.com/file/d/0B5FH3snPwEXycWpOY1cwNS1DZTQ/view?usp=sharing


  • by sakman74,

    sakman74 sakman74 Feb 15, 2016 4:48 PM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 15, 2016 4:48 PM in response to Loner T

    I also googled this and found this thread .... would fixing the hybrid MBR according to the first post in this thread be the solution ?

     

    Repairing Boot Camp after creating new partition

  • by Loner T,

    Loner T Loner T Feb 15, 2016 6:16 PM in response to sakman74
    Level 7 (23,920 points)
    Safari
    Feb 15, 2016 6:16 PM in response to sakman74

    That thread has multiple problems rolled into one. I would not use it, especially the text marked as a solution (which came from http://nerdr.com/bootcamp-partition-lost-repairing-mac-partitions/ ) It is only appropriate for a specific problem. It causes data loss in many other situations.

     

    The two links I provided should be the ones used. They are appropriate for your 5 GPT entry problem.

  • by sakman74,

    sakman74 sakman74 Feb 15, 2016 7:20 PM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 15, 2016 7:20 PM in response to Loner T

    ok.

     

    sorry, would you please post the 2 links i should follow one more time ? I am browsing thru the pages of this thread and i'm not sure which ones you mean ....

  • by Loner T,

    Loner T Loner T Feb 15, 2016 8:01 PM in response to sakman74
    Level 7 (23,920 points)
    Safari
    Feb 15, 2016 8:01 PM in response to sakman74

    sakman74 wrote:

     

    ok.

     

    sorry, would you please post the 2 links i should follow one more time ? I am browsing thru the pages of this thread and i'm not sure which ones you mean ....

    Just one - Re: [Help] Can't boot to windows (8.1) after resizing partition .

  • by sakman74,

    sakman74 sakman74 Feb 15, 2016 11:30 PM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 15, 2016 11:30 PM in response to Loner T

    i read the instructions, my situation is a bit different so this is what I did, I have not yet typed "w" to write the changes. please inform if made a mistake ?

     

    Admins-MBP:~ adminuser$ csrutil status

    System Integrity Protection status: disabled.

    Admins-MBP:~ adminuser$ sudo gdisk /dev/disk0

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

      BSD: not present

      APM: not present

      GPT: present

     

    Found valid GPT with hybrid MBR; using GPT.

     

    Command (? for help): p

    Disk /dev/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0BAF7312-19DB-43E6-A018-9764A4932C1C

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1093 sectors (546.5 KiB)

     

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

      1              40          409639  200.0 MiB  EF00  EFI System Partition

      2          409640      137129983  65.2 GiB    AF00  Customer

      3      137129984      138399519  619.9 MiB  AB00  Recovery HD

      4      138399744      480200703  163.0 GiB  0700  Basic data partition

      5      480200704      490233855  4.8 GiB    0700  Share

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector  End Sector  Status      Code

      1                    1      409639  primary    0xEE

      2                409640    137129983  primary    0xAF

      3            137129984    138399519  primary    0xAB

      4      *      138399744    480200703  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: 5

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #5 (MBR partition #2)

    Enter an MBR hex code (default 07):

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

     

    Unused partition space(s) found. Use one to protect more partitions? (Y/N): n

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector  End Sector  Status      Code

      1                    1    480200703  primary    0xEE

      2            480200704    490233855  primary    0x07

     

    Recovery/transformation command (? for help):

  • by sakman74,

    sakman74 sakman74 Feb 16, 2016 12:21 AM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 16, 2016 12:21 AM in response to Loner T

    nevermind my previous post, i figured it out:

     

    Admins-MBP:~ adminuser$ sudo gdisk /dev/disk0

    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/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0BAF7312-19DB-43E6-A018-9764A4932C1C

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1093 sectors (546.5 KiB)

     

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

      1     40                 409639            200.0 MiB      EF00  EFI System Partition

      2     409640             137129983         65.2 GiB       AF00  Customer

      3     137129984          138399519         619.9 MiB      AB00  Recovery HD

      4     138399744          480200703         163.0 GiB      0700  Basic data partition

      5     480200704          490233855         4.8 GiB        0700  Share

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector       End Sector       Status     Code

      1           1                  409639           primary    0xEE

      2           409640             137129983        primary    0xAF

      3           137129984          138399519        primary    0xAB

      4      *    138399744          480200703        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: 2 4 5

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

    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): y

     

    Creating entry for GPT partition #5 (MBR partition #4)

    Enter an MBR hex code (default 07):

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

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector       End Sector       Status     Code

      1           1                  409639           primary    0xEE

      2           409640             137129983        primary    0xAF

      3      *    138399744          480200703        primary    0x07

      4           480200704          490233855        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/disk0.

    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.

     

    i do have another question: the original hybrid MBR layout included AB (recovery partition) - is it necessary to be present in the hybrid MBR ? i skipped it because I think that MBR's can only handle up to 4 entries (including the EFI).

     

    so far both OS's show the FAT32 SHARE partition i created.

     

    Thanks again Loner T for everything, this was an epic journey (at least for a novice like me) ....

     

  • by sakman74,

    sakman74 sakman74 Feb 16, 2016 12:22 AM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 16, 2016 12:22 AM in response to Loner T

    nevermind my previous post, i figured it out:

     

    Admins-MBP:~ adminuser$ sudo gdisk /dev/disk0

    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/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0BAF7312-19DB-43E6-A018-9764A4932C1C

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1093 sectors (546.5 KiB)

     

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

      1     40                 409639            200.0 MiB      EF00  EFI System Partition

      2     409640             137129983         65.2 GiB       AF00  Customer

      3     137129984          138399519         619.9 MiB      AB00  Recovery HD

      4     138399744          480200703         163.0 GiB      0700  Basic data partition

      5     480200704          490233855         4.8 GiB        0700  Share

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector       End Sector       Status     Code

      1           1                  409639           primary    0xEE

      2           409640             137129983        primary    0xAF

      3           137129984          138399519        primary    0xAB

      4      *    138399744          480200703        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: 2 4 5

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

    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): y

     

    Creating entry for GPT partition #5 (MBR partition #4)

    Enter an MBR hex code (default 07):

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

     

    Recovery/transformation command (? for help): o

     

    Disk size is 490234752 sectors (233.8 GiB)

    MBR disk identifier: 0xBBB3488A

    MBR partitions:

     

    Number  Boot  Start Sector       End Sector       Status     Code

      1           1                  409639           primary    0xEE

      2           409640             137129983        primary    0xAF

      3      *    138399744          480200703        primary    0x07

      4           480200704          490233855        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/disk0.

    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.

     

    i do have another question: the original hybrid MBR layout included AB (recovery partition) - is it necessary to be present in the hybrid MBR ? i skipped it because I think that MBR's can only handle up to 4 entries (including the EFI).

     

    so far both OS's show the FAT32 SHARE partition i created.

     

    Thanks again Loner T for everything, this was an epic journey (at least for a novice like me) ....

     

  • by sakman74,

    sakman74 sakman74 Feb 16, 2016 5:02 AM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 16, 2016 5:02 AM in response to Loner T

    to do this i had to disable sip ... is it safe to enable it now that i have everything else squared away ?

  • by Loner T,

    Loner T Loner T Feb 16, 2016 6:26 AM in response to sakman74
    Level 7 (23,920 points)
    Safari
    Feb 16, 2016 6:26 AM in response to sakman74

    Since you chose 2 4 5 instead of 3 4 5, please go to Windows Disk Management (do not modify anything) and post a screen shot. The Recovery HD looks like Free Space to Windows, which is why I use 3 4 5. This allows 2+3 to look like one contiguous set, even though GPT sees them as separate partitions.

  • by sakman74,

    sakman74 sakman74 Feb 16, 2016 6:41 AM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 16, 2016 6:41 AM in response to Loner T

    the unallocated space shown in disk management is 620 MiB (650 MB, i.e. the reported size of the Recovery HD partition). it is graphically positioned with the HFS+ partition to the left of it and the NTFS partition to the right of it.

     

    I would prefer to leave it this way .... Reason being that I may need to view files on the HFS+ partition while in Windows. Whereas I would not need to that with the Recovery HD partition. is there another reason to keep it in the MBR ? I assume I can still boot into recovery if I need to ?

     

    My windows partition (in Control Panel/devices) is identified as an MBR partition.

     

    regarding SIP, should I re-enable after i'm finalized with everything ?

  • by Loner T,

    Loner T Loner T Feb 16, 2016 6:47 AM in response to sakman74
    Level 7 (23,920 points)
    Safari
    Feb 16, 2016 6:47 AM in response to sakman74

    As long as you never use Windows LDM to manipulate the "unallocated" space, you should be fine. You can re-enable SIP. Please be aware that you have a non-standard layout, and each Software Update from Apple can potentially cause data corruption, so make very good backups on a daily basis.

  • by sakman74,

    sakman74 sakman74 Feb 16, 2016 7:07 AM in response to Loner T
    Level 3 (744 points)
    Mac OS X
    Feb 16, 2016 7:07 AM in response to Loner T

    question: why does it matter if the Recovery HD partition is not on the MBR, since it's a GPT ?

     

    so there is a good reason to maintain the recovery HD partition, meaning that as new software updates get pushed to my mac (and possibly to the recovery HD partition), if I keep partitions 3 4 5 in the MBR then I should not have a data corruption issue with future apple software updates ?

     

    if this is actually the case, then I will go back and change the MBR. but then I will then no longer see the Macintosh HD partition in windows, i suppose I can work around file sharing between OS's by copying them to the share or NAS when in os 10.

  • by Loner T,

    Loner T Loner T Feb 16, 2016 7:10 AM in response to sakman74
    Level 7 (23,920 points)
    Safari
    Feb 16, 2016 7:10 AM in response to sakman74

    I suggest building an OS X installation on an external disk, which ensures that the Mac can be booted and run regular Software Updates on this OS X-only disk.

     

    The current "unallocated" space is prone to possible corruption.

first Previous Page 9 of 11 last Next