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 7 of 11 last Next
  • by sakman74,

    sakman74 sakman74 Feb 11, 2016 7:36 PM in response to Loner T
    Level 3 (748 points)
    Mac OS X
    Feb 11, 2016 7:36 PM in response to Loner T

    it seems that camptune may not be able to do what I need .... shrink the windows partition. so I think i will try paragon's partition manager instead, it's got a full suite of partition tools.

  • by sakman74,

    sakman74 sakman74 Feb 12, 2016 12:27 AM in response to sakman74
    Level 3 (748 points)
    Mac OS X
    Feb 12, 2016 12:27 AM in response to sakman74

    i was able to successfully use Paragon's Hard Disk Manager Preview for Mac to resize and move partitions seamlessly and it works very well, no issues at all booting into either OS afterward.

     

    i took away 15GB of space from windows, added 10GB to os10 and was left with 5 free (unallocated, unpartitioned).

     

    i made the mistake of booting into windows and using disk management to try to format the unallocated space, the only options available for it was fat32 and ntfs, i chose fat32. reason why it was a mistake is because it destroyed the gpt. so windows wouldnt start and no other os was available from startup options during bootup.

     

    luckily i loaded up clonezilla and restored the entire disk from the image i created yesterday. everything restored exactly in the state it was yesterday.

     

    i then went back into HDM to do this one more time. i am stopping at this point until i can figure out a good way to safely make an extFAT partition using diskutil .... if possible. unfortunately HDM does not have the options of creating a new partition in the free space, I'm not sure why. The other partitions such as os10 and windows each had several operations available including resize, check filesystem, move, delete, etc.

     

    here is a snap shop of my configuration after i did these operations (HDM recovery view):

     

    https://drive.google.com/open?id=0BxFPkx-J8h1FZWFDaGtqampiVGRyLWVtaUxvcGJycG1RTG pR

     

    here is a thread i found where someone successfully did what i am trying to do, but the person was willing to wipe the drive and create new partitions first, then install os10 and windows (step 3 in the post marked 'solved'). so the extFAT partition was added before os10 and windows was installed:

     

    Re: Almost There with three partitions: OSX, Data, Win8.1

     

    so i am currently at this state, with 5GB unclaimed on the drive .... is it at all possible to format this unallocated space using extFAT using diskutil and keep the other partitions and the gpt intact ?

  • by Loner T,

    Loner T Loner T Feb 12, 2016 4:45 AM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 12, 2016 4:45 AM in response to sakman74

    sakman74 wrote:

     

    so i am currently at this state, with 5GB unclaimed on the drive .... is it at all possible to format this unallocated space using extFAT using diskutil and keep the other partitions and the gpt intact ?

    Yes. Can you post the output of diskutil list and I can provide the exact command you need? Be aware that there are some horror stories with Paragon HDM. They are searchable on ASC.

  • by sakman74,

    sakman74 sakman74 Feb 12, 2016 5:29 AM in response to Loner T
    Level 3 (748 points)
    Mac OS X
    Feb 12, 2016 5:29 AM in response to Loner T

    ok, will run that this eve and post the output here.

     

    to be sure: you want the output of the following:

     

    list

    verifyDisk (entire disk)

    verifyVolume (each volume)

    anything else you would want to see ?

     

    i did some searching before i dl'd hdm, and it seems it got very good reviews from places like pcmag and some other well known tech sites.

    i did not pay for the preview, it is free to use for 60 days, so i have some time to sit on it. overall though it's done the resizing and moving operations without any hiccups, so i was impressed.

     

    i bet that diskutil can do everything i did with hdm, maybe some day ill have time to learn the techniques ...

  • by Loner T,

    Loner T Loner T Feb 12, 2016 5:41 AM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 12, 2016 5:41 AM in response to sakman74

    Just diskutil list should work.

     

    The one area where I have seen most complaints are related to restores using backups created by HDM. You should test that, and save CloneZilla copies before using the restore.

  • by sakman74,

    sakman74 sakman74 Feb 12, 2016 5:35 PM in response to Loner T
    Level 3 (748 points)
    Mac OS X
    Feb 12, 2016 5:35 PM in response to Loner T

    Loner T,

     

    I gathered everything I could think of that might help you .... see below.

     

    I noticed that gdisk output is in Mebibytes/Gibibytes rather than Megabytes/Gigabytes, seems odd that gdisk uses the same units as Windows.

     

    diskutil output:

     

    Admins-MacBook-Pro:~ 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

     

    Admins-MacBook-Pro:~ adminuser$ diskutil verifyDisk disk0

    Started partition map verification on disk0

    Checking prerequisites

    Checking the partition list

    Checking the partition map size

    Checking for an EFI system partition

    Checking the EFI system partition's size

    Checking the EFI system partition's file system

    Checking the EFI system partition's folder content

    Checking all HFS data partition loader spaces

    Checking booter partitions

    Checking booter partition disk0s3

    Verifying file system

    Checking Journaled HFS Plus volume

    Checking extents overflow file

    Checking catalog file

    Checking multi-linked files

    Checking catalog hierarchy

    Checking extended attributes file

    Checking volume bitmap

    Checking volume information

    The volume Recovery HD appears to be OK

    File system check exit code is 0

    Checking Core Storage Physical Volume partitions

    The partition map appears to be OK

    Finished partition map verification on disk0

     

    Admins-MacBook-Pro:~ adminuser$ diskutil verifyVolume disk0s1

    Started file system verification on disk0s1 EFI

    Verifying file system

    ** /dev/rdisk0s1

    ** Phase 1 - Preparing FAT

    ** Phase 2 - Checking Directories

    ** Phase 3 - Checking for Orphan Clusters

    22 files, 177269 KiB free (354539 clusters)

    File system check exit code is 0

    Finished file system verification on disk0s1 EFI

     

    Admins-MacBook-Pro:~ adminuser$ diskutil verifyVolume disk0s2

    Started file system verification on disk0s2 Macintosh HD

    Verifying file system

    Using live mode

    Performing live verification

    Checking Journaled HFS Plus volume

    Checking extents overflow file

    Checking catalog hierarchy

    Checking extended attributes file

    Checking volume information

    File system check exit code is 0

    Finished file system verification on disk0s2 Macintosh HD

     

    Admins-MacBook-Pro:~ adminuser$ diskutil verifyVolume disk0s3

    Started file system verification on disk0s3 Recovery HD

    Verifying file system

    Checking Journaled HFS Plus volume

    Checking extents overflow file

    Checking catalog file

    Checking multi-linked files

    Checking catalog hierarchy

    Checking extended attributes file

    Checking volume bitmap

    Checking volume information

    The volume Recovery HD appears to be OK

    File system check exit code is 0

    Finished file system verification on disk0s3 Recovery HD


    gdisk output:


    Admins-MacBook-Pro:~ 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!

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

     

    No problems found. 10034245 free sectors (4.8 GiB) available in 3

    segments, the largest of which is 10034015 (4.8 GiB) in size.

     

    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 10034245 sectors (4.8 GiB)

     

    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


  • by Loner T,

    Loner T Loner T Feb 12, 2016 5:45 PM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 12, 2016 5:45 PM in response to sakman74

    Can you post the output of

     

    sudo gpt -vv -r show /dev/disk0

  • by sakman74,

    sakman74 sakman74 Feb 12, 2016 6:04 PM in response to Loner T
    Level 3 (748 points)
    Mac OS X
    Feb 12, 2016 6:04 PM in response to Loner T

    yep:

     

    Admins-MBP:~ adminuser$ sudo gpt -vv -r show /dev/disk0

    Password:

    gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

    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 490234751

          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      10034015      

      490234719      32                   Sec GPT table

      490234751      1                    Sec GPT header

  • by Loner T,

    Loner T Loner T Feb 14, 2016 11:12 AM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 14, 2016 11:12 AM in response to sakman74

    Strange that I did not see a notification for this reply. Does DU let you see the Free Space after your Bootcamp partition?

  • by sakman74,

    sakman74 sakman74 Feb 14, 2016 11:35 AM in response to Loner T
    Level 3 (748 points)
    Mac OS X
    Feb 14, 2016 11:35 AM in response to Loner T

    is there a du or gedit command that will let me see the free unallocated space ?

  • by Loner T,

    Loner T Loner T Feb 14, 2016 12:10 PM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 14, 2016 12:10 PM in response to sakman74

    The space after GPT4 is free space. Can you turn on Disk Utility Debug?

  • by sakman74,

    sakman74 sakman74 Feb 14, 2016 3:25 PM in response to Loner T
    Level 3 (748 points)
    Mac OS X
    Feb 14, 2016 3:25 PM in response to Loner T

    i tried issuing the following command to turn on debug mode for DU, but when I list I don't see the unallocated space.  diskutil output is the same as before.

     

         defaults write com.apple.DiskUtility DUDebugMenuEnabled 1

     

    btw ... i am running diskutil from terminal, so that i can copy and paste the output to this thread.

  • by sakman74,

    sakman74 sakman74 Feb 14, 2016 3:31 PM in response to sakman74
    Level 3 (748 points)
    Mac OS X
    Feb 14, 2016 3:31 PM in response to sakman74

    this is the most detail i can get from Paragon Hard Disk Manager for the free space I created:

     

    Partition Number:    4

        Disk Number:    0

        Name:    Free

        Size:    5.14 GB (5137415680 Bytes)

        Disk Sector Size:    512 (0x200)

        First Sector:    0x000000001C9F4800

        Last Sector:    0x000000001D38635E

  • by Loner T,

    Loner T Loner T Feb 14, 2016 3:34 PM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 14, 2016 3:34 PM in response to sakman74

    Do you see any other hidden partitions? For example, the EFI partition in DU UI?

  • by Loner T,

    Loner T Loner T Feb 14, 2016 3:40 PM in response to sakman74
    Level 7 (24,317 points)
    Safari
    Feb 14, 2016 3:40 PM in response to sakman74

    sakman74 wrote:

     

    this is the most detail i can get from Paragon Hard Disk Manager for the free space I created:

     

    Partition Number:    4

        Disk Number:    0

        Name:    Free

        Size:    5.14 GB (5137415680 Bytes)

        Disk Sector Size:    512 (0x200)

        First Sector:    0x000000001C9F4800

        Last Sector:    0x000000001D38635E

    First sector decimal value is 480200704, last sector is 490234718. This matches your GPT Free Space as shown in the GPT output. DU does not draw to scale. Can you scroll down to the bottom of the partition display in DU UI and check?

first Previous Page 7 of 11 last Next