I can't boot into windows after having resized my mac partition
any help would be greatly appreciated
diskutil list
sudo fdisk /dev/disk0
sudo gpt -vv -r show /dev/disk0
MacBook Pro, OS X El Capitan (10.11.4)
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
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
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
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?
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
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
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
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.
i'm stuck at step 15. although i entered "+400093177", it keeps repeating "Last sector (460578792-684109823, default = 684109823) or {+-}size{KMGTP}:"
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
You will need to delete GPT 5. The end of the new Gpt4 overlaps Gpt5.
i'm sorry to bother you but i don't know how to do that...
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?
Just d and 5. We do not want to recreate gpt 5.
i did as you suggested and i can now see my bootcamp partition again! thank you so much! what do i need to do now to correct windows?
I can't boot into windows after having resized my mac partition