LapoDiLatta

Q: I can't boot into windows after having resized my mac partition

any help would be greatly appreciated

 

diskutil list

Screen Shot 2016-04-26 at 10.34.01 PM.png

sudo fdisk /dev/disk0

Screen Shot 2016-04-26 at 10.13.08 PM.png

sudo gpt -vv -r show /dev/disk0

Screen Shot 2016-04-26 at 10.13.49 PM.png

MacBook Pro, OS X El Capitan (10.11.4)

Posted on Apr 26, 2016 1:42 PM

Close

Q: I can't boot into windows after having resized my mac partition

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Apr 26, 2016 8:23 PM in response to LapoDiLatta
    Level 7 (23,828 points)
    Safari
    Apr 26, 2016 8:23 PM in response to LapoDiLatta

    You have a 55GB Apple Recovery HD. It is normally about 620MB. What are the various attempts you have made so far to restore Windows?

     

    Please post the output of

     

    sudo dd if=/dev/rdisk0s5 count=1 2>/dev/null | hexdump -C

  • by Tayroar24,

    Tayroar24 Tayroar24 Apr 26, 2016 8:31 PM in response to Loner T
    Level 1 (8 points)
    Windows Software
    Apr 26, 2016 8:31 PM in response to Loner T

    Hey sorry to bother you but I've seen you solve similar issues to this and and mine before and would really appreciate the help, I've got outputs listed in my post

    Link is:Can't install Windows 10 on iMac

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 27, 2016 4:05 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 27, 2016 4:05 AM in response to Loner T

    i haven't made any attempts to restore Windows since i couldn't find command outputs similar to mine in the various forums i read. what happened was i tried using Camptune X to resize partitions. it failed but both operating systems remained intact and bootable and since i had tried shrinking the Mac partition by about 55GB, by then it actually was 55GB smaller although the Windows partition had remained unchanged. after having booted into Windows and having opened its standard partition manager, i noticed that the 55GB were "Unallocated space" so, after having installed a third-party software (Partition Wizard), i expanded the Windows partition so that it would use up all the unallocated space. by then, i realised the additional space i had assigned to Windows wasn't enough but this time, instead of using Camptune X again which had previously failed, i stupidly decided to use Disk Utility. so i booted into Mac's recovery partition, launched Disk Utility and tried shrinking Mac's partition by about 10GB but it told me i had to make a bigger change. coincidentally, the amount i ended up assigning to the new partition for it to work was about 55GB. after that, i was no longer able to boot into windows nor see its partition in finder or disk utility

     

     

    sudo dd if=/dev/rdisk0s5 count=1 2>/dev/null hexdump -C

    Screen Shot 2016-04-27 at 12.38.24 PM.png

  • by Loner T,

    Loner T Loner T Apr 27, 2016 6:25 AM in response to LapoDiLatta
    Level 7 (23,828 points)
    Safari
    Apr 27, 2016 6:25 AM in response to LapoDiLatta

    Using two tools has compounded your problems.

     

    1. Do you have a backup of OS X?

    2. Can Windows be re-installed without loss of data?

    3. Can you use El Capitan has deleted my bootcamp windows partition as a reference and start a Testdisk scan and run a quick search?

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 27, 2016 11:18 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 27, 2016 11:18 AM in response to Loner T

    1. unfortunately, i do not have a backup of OS X
    2. i don't know if Windows can be re-installed without loss of data
    3. i'm running a quick search right now

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 27, 2016 6:27 PM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 27, 2016 6:27 PM in response to Loner T

    why was i presented with two choices? (i chose rdisk0)

    Screen Shot 2016-04-28 at 3.10.29 AM.pngScreen Shot 2016-04-28 at 3.02.55 AM.pngScreen Shot 2016-04-28 at 3.16.59 AM.png

    i listed the second "MS Data" from the top's files

    Screen Shot 2016-04-28 at 3.24.31 AM.png

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 28, 2016 4:58 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 28, 2016 4:58 AM in response to Loner T

    any suggestions on how i should proceed? thank you, i really appreciate your help

     

    i apologise for the screenshots in my previous reply. i added them one by one continuously editing my reply, one of them ended up being randomly replaced by another and i now no longer have the option to edit my reply

  • by Loner T,

    Loner T Loner T Apr 28, 2016 5:18 AM in response to LapoDiLatta
    Level 7 (23,828 points)
    Safari
    Apr 28, 2016 5:18 AM in response to LapoDiLatta

    No worries.

     

    Your layout looks to be (start, size)

     

    GPT3 - Apple Recovery HD  (459309032, 1269536)

    GPT4 - Bootcamp Windows  (460578792, 400093177)

    GPT5 - Content to be determined - (684109824, 292663296) - this is correct as it stands now.

     

    Your Local Recovery does not work. Please install OS X on an external disk and boot from it. How to install OS X on an external drive connected to your Mac - Apple Support .

     

     

    A. We need to disable SIP.

     

    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. Rebuild non-standard MBR.

     

    Download GPT Fdisk from http://sourceforge.net/projects/gptfdisk/ and install it on the OS X side. The following steps are executed when booted in OS X.

     

    Install GPT Fdisk (aka gdisk).  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 GPT3 and 4 using start/end offsets

     

    1. Sudo gdisk /dev/rdisk0
    2. P  (print the full list of parts)
    3. D  (delete)
    4. 3  (part 3)
    5. D (delete)
    6. 4 (part 4)
    7. N  (new part)
    8. 3  (part 3 - Recovery HD)
    9. 459309032 ( - Start offset in sectors or the start point for Recovery HD part)
    10. +1269536 ( - Size offset, as opposed to End offset)
    11. AB00 (Recovery HD)
    12. N (new part)
    13. 4 (part 4 - Bootcamp/Windows)
    14. 460578792 ( - Start offset in sectors or the start point for Bootcamp part)
    15. +400093177 ( - Size offset, as opposed to End offset)
    16. 0700 (Windows)
    17. P  (print list of all parts just to see what changes will be made)
    18. W (Write the new GPT)
    19. Y  (Yes! really write the new GPT)

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


    Reboot. Please ensure you can see all partitions in Finder. Once you can, I can provide steps to correct Windows.

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 28, 2016 8:25 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 28, 2016 8:25 AM in response to Loner T

    i'm stuck at step 15. although i entered "+400093177", it keeps repeating "Last sector (460578792-684109823, default = 684109823) or {+-}size{KMGTP}:"

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 28, 2016 8:53 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 28, 2016 8:53 AM in response to Loner T

    my recovery partition does work although i don't understand why it's 55.5 GB. i don't wish to have an additional mac partition, the space assigned to my additional mac partition was space i wanted to move over to the windows partition. i want to have one mac partition and one windows partition. all i wanted to do was make the windows one larger. of course i can't enter "+400093177" as the largest number i can set as last sector is "684109823". any suggestions? i'm kind of afraid of making matters worse. thank you so much, again

  • by Loner T,

    Loner T Loner T Apr 28, 2016 8:57 AM in response to LapoDiLatta
    Level 7 (23,828 points)
    Safari
    Apr 28, 2016 8:57 AM in response to LapoDiLatta

    You will need to delete GPT 5. The end of the new Gpt4 overlaps Gpt5.

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 28, 2016 9:05 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 28, 2016 9:05 AM in response to Loner T

    i'm sorry to bother you but i don't know how to do that...

  • by LapoDiLatta,

    LapoDiLatta LapoDiLatta Apr 28, 2016 10:00 AM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Apr 28, 2016 10:00 AM in response to Loner T

    should i just type "D", then "5"? should i then create a new number 5 partition? if that's the case, what values should i set for it?

  • by Loner T,

    Loner T Loner T Apr 28, 2016 10:25 AM in response to LapoDiLatta
    Level 7 (23,828 points)
    Safari
    Apr 28, 2016 10:25 AM in response to LapoDiLatta

    Just d and 5. We do not want to recreate gpt 5. 

Page 1 Next