Bastianum

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

 

disk utility.png

If you need this, i have done this too:

 

Bildschirmfoto 2015-04-18 um 14.01.02.png

 

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 5:02 AM

Close

Q: Windows not starting after resizing the Partition..

  • All replies
  • Helpful answers

Previous Page 2 of 3 last Next
  • by Loner T,Solvedanswer

    Loner T Loner T Apr 18, 2015 9:42 AM in response to Bastianum
    Level 7 (24,825 points)
    Safari
    Apr 18, 2015 9:42 AM in response to Bastianum

    Bastianum wrote:

     

    What shall i do with the TestDisk Window? Actually I am in the menu with the recoverable HD's, i can press continue or modify the partitions. Continue or not?

    Use the Down arrow key to get to the first MS Data entry and use 'P - List Files'. Do not use left/right arrow keys in Testdisk. You are looking for a listing similar to

     

    Testdisk-GoodWindowsPartition.png

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 9:56 AM in response to Loner T
    Level 1 (0 points)
    Apr 18, 2015 9:56 AM in response to Loner T

    I deleted the serial number...:)

    Okay, i think i found what you need:

     

     

    Bildschirmfoto 2015-04-18 um 18.48.02.png

    Is this the right place? And what do i have to do now?

    And you do not need to ask me for installing gdisk, i already have this

  • by Loner T,Helpful

    Loner T Loner T Apr 18, 2015 11:18 AM in response to Bastianum
    Level 7 (24,825 points)
    Safari
    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.

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 11:18 AM in response to Loner T
    Level 1 (0 points)
    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?

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 11:20 AM in response to Bastianum
    Level 1 (0 points)
    Apr 18, 2015 11:20 AM in response to Bastianum

    Oh no i messed something up, instead of pressing enter i just followed your steps...sorry man can i just close this and repeat the second part of the commands? because the first one went well..

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 11:24 AM in response to Bastianum
    Level 1 (0 points)
    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?

  • by Loner T,

    Loner T Loner T Apr 18, 2015 11:26 AM in response to Bastianum
    Level 7 (24,825 points)
    Safari
    Apr 18, 2015 11:26 AM in response to Bastianum

    Please repeat the first Gdisk steps, and then second Gdisk steps. For the second set, in my example, I have Press Enter Return, but you are typing 'n' which is incorrect.

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 11:54 AM in response to Loner T
    Level 1 (0 points)
    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?

  • by Loner T,

    Loner T Loner T Apr 18, 2015 11:59 AM in response to Bastianum
    Level 7 (24,825 points)
    Safari
    Apr 18, 2015 11:59 AM in response to Bastianum

    Please say no. This is because you have the 27Gb partition which is essentially free space. You can use the 'o print protective MBR data'

    in the 'r'(ecovery) menu to check if your data looks good.

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 12:03 PM in response to Loner T
    Level 1 (0 points)
    Apr 18, 2015 12:03 PM in response to Loner T

    Okay, i pressed 'n', then 'w' to write and 'y' for yes. Seems like all worked. Reboot now? Try to reboot into Windows or OSX? Do i have to do anything else?

  • by Loner T,

    Loner T Loner T Apr 18, 2015 12:04 PM in response to Bastianum
    Level 7 (24,825 points)
    Safari
    Apr 18, 2015 12:04 PM in response to Bastianum

    Reboot into OS X, you need to run the 4 tests to verify before you switch to Windows.

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 12:16 PM in response to Loner T
    Level 1 (0 points)
    Apr 18, 2015 12:16 PM in response to Loner T

    I restarted my system, worked fine. I booted via alt-menu, to secure its booting into osx and not into windows. First it stucked, but then it booted like usually.

    Just two little problems: I cannot see the Bootcamp HD in Finder as well as in my start volume...:(

     

    Bildschirmfoto 2015-04-18 um 21.15.07.png

    Bildschirmfoto 2015-04-18 um 21.15.19.png

    What now?

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 12:19 PM in response to Bastianum
    Level 1 (0 points)
    Apr 18, 2015 12:19 PM in response to Bastianum

    At least Bootcamp shows up in disk utility :

    Bildschirmfoto 2015-04-18 um 21.16.35.png

    Last time there was disk03 instead of BOOTCAMP.

  • by Loner T,

    Loner T Loner T Apr 18, 2015 12:19 PM in response to Bastianum
    Level 7 (24,825 points)
    Safari
    Apr 18, 2015 12:19 PM in response to Bastianum

    Please post the output of sudo fdisk /dev/disk0.

  • by Bastianum,

    Bastianum Bastianum Apr 18, 2015 12:20 PM in response to Loner T
    Level 1 (0 points)
    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 

Previous Page 2 of 3 last Next