Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows not starting after resizing the Partition..

Hey guys

i've got a huge problem.

I have an iMac 2007, running both, OSX and Windows via Bootcamp. All worked fine, till i wanted to resize the OSX Partition to increase the Bootcamp one. I already did this one time, but this time this did not work. My OSX works perfectly, but Bootcamp doesn't start anymore. I can select it in the bootmenu, but it just says 'missing operation system...'. I already tried rEFIt, but this did not worked, it just synchronized something.

Here is a screenshot of my harddrive in disk utility:


User uploaded file

If you need this, i have done this too:


User uploaded file


I know this problem is well known here, but i didn't found any solutions on my specific case here..:(

Thanks for your help!

Sorry if my english isn't on a that high level, i'm german 🙂

iMac, OS X Yosemite (10.10.3), null

Posted on Apr 18, 2015 4:58 AM

Reply
Question marked as Best reply

Posted on Apr 18, 2015 6:39 AM

1. Your Recovery HD is missing.

2. You have a large gap between GPT3 and GPT4, which is the most likely place where you have a lost NTFS header.

3. Can you use Bootcamp partition missing after yosemite installation as a reference and start with a Testdisk scan?

41 replies

Apr 18, 2015 11:18 AM in response to Bastianum

In your specific case, I will assume that a Recovery HD did exist at some point in time, and is located right after GPT2. This is a table with such an assumption.


GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS EndSector Offset (MB)
13883472012695361401042561969930245688876829048217648747519927,778


Your sector offset is about 27GB, which will become unusable space. It requires a lot more terminal steps, but the first goal is to get your Windows installation up and running.


The following steps are specific to your case, and should not be used for similar issues without validation using Testdisk.

Leave your Testdisk display and start a new Terminal Window. 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.


Rebuild GPT3 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 3 (part 3 - special case)
  5. N (new part)
  6. 3 (part 3 - special case)
  7. 196993024 - Start offset in bytes (start point for Bootcamp part)
  8. +290482176 (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/disk0s3.


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 8. Accept all other defaults that Gdisk offers.


  1. Sudo gdisk /dev/disk0
  2. P (Print list of parts)
  3. R (Recover)
  4. H (chooses Hybrid)
  5. Partitions numbers to be hybridized: 2 3
  6. Y (Good for GRUB question)
  7. N (part 2 boot flag)
  8. Y (part 3 boot flag make NTFS bootable partition - special case for missing Recovery HD)
  9. W (Write the new MBR)
  10. Y (Yes! write the new MBR)
  11. Reboot


Example Q&A for the second set of Gdisk steps is

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 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.

Apr 18, 2015 11:18 AM in response to Loner T

I did all steps like u said, all worked fine. After the last step 'Y (Yes! write the new MBR)' this came up:


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

Enter an MBR hex code (default AF): n

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


Creating entry for GPT partition #3 (MBR partition #3)

Enter an MBR hex code (default 07): w

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


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

I do not know what to do with the bold, are that the 27GB?

Press Y or N?

Apr 18, 2015 11:24 AM in response to Bastianum

Here is a part of my Terminal:

Do you want to proceed? (Y/N): y

OK; writing new GUID partition table (GPT) to /dev/rdisk0.

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.

Bastians-iMac:~ bastianfischer$ sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 1.0.0


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

At the point, where the second part, at disk0, started, you can see all from step one worked well (The operation has completed successfully.)..so can i just close and repeat step 2 correctly?

Apr 18, 2015 11:54 AM in response to Loner T

I know, but this time i did it the right way:


Type from one to three GPT partition numbers, separated by spaces, to be

added to the hybrid MBR, in sequence: 2 3

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 #3 (MBR partition #3)

Enter an MBR hex code (default 07):

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


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

But what shall i answer to this question? Yes or No?

Apr 18, 2015 12:20 PM in response to Loner T

Disk: /dev/disk0 geometry: 30401/255/63 [488397168 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: AF 25 127 15 - 1023 254 63 [ 409640 - 138425080] HFS+

*3: 07 1023 254 63 - 1023 254 63 [ 196993024 - 290482176] HPFS/QNX/AUX

4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

Windows not starting after resizing the Partition..

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.