Issues after resizing Bootcamp using Minitool

I have:

- MBP running Yosemite 10.10 and Windows 7 accessed via Parallels Desktop 10

- 512Gb drive originally partitioned into ~430Gb for OS X and ~70Gb for Win7


What happened:

- I got lulled into taking a 'shortcut' to resize my Bootcamp drive using the Minitool Partition Wizard app.

- I resized to ~400Gb for OS X and ~100Gb for Win7

- At first it actually worked - I could boot into Win7 via Bootcamp

- When I tried to access Win7 using Parallels, things started to crap out...


Current Situation:

- I can access OSX

- I can see Bootcamp in Finder (although many files/documents are not visible/missing)

- I cannot see Bootcamp as an option on Startup. Parallels craps out when I try to go in that way also.


PLEASE HELP!!!


Diagnostics:

- I ran the following as it seems like the first questions asked by gurus who can help:

Last login: Wed Aug 19 14:44:13 on ttys000

MacBook-Pro:~ $ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *512.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS John's Macbook Pro 400.1 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data BOOTCAMP 70.2 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *31.5 MB disk1

1: Apple_partition_map 32.3 KB disk1s1

2: Apple_HFS MiniTool Mac Data Re... 31.4 MB disk1s2

MacBook-Pro:~ $ diskutil cs list

No CoreStorage logical volume groups found

MacBook-Pro:~ $ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=512110190592; sectorsize=512; blocks=1000215216

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 1000215215

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 781495032 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

781904672 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

783174208 79834560

863008768 137205760 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1000214528 655

1000215183 32 Sec GPT table

1000215215 1 Sec GPT header

MacBook-Pro:~ $

MacBook Pro (15-inch Late 2008), OS X Yosemite (10.10.5)

Posted on Aug 19, 2015 12:05 PM

Reply
23 replies

Aug 19, 2015 3:18 PM in response to jtham

Yes. Can you follow Windows 7 Vanished after Yosemite update... help? and download Testdisk (http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step) and GPT Fdisk (http://sourceforge.net/projects/gptfdisk/) and start a Testdisk scan (example - http://imgur.com/a/PjmnK) . The gap between GPT3 and GPT4 indicates a 'lost' NTFS header. Minitool does not keep MBR and GPT in sync.


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

Aug 19, 2015 4:31 PM in response to Loner T

Just to be double-sure... which value from below do I use for the start offset please?


TestDisk 7.0, Data Recovery Utility, April 2015

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 512 GB / 476 GiB - 1000215216 sectors (RO)

Partition Start End Size in sectors

P EFI System 40 409639 409600 [EFI]

D Mac HFS 409640 781904671 781495032

D MS Data 566136840 783175680 217038841

D Mac HFS 781904672 783174207 1269536

>D MS Data 783175680 1000214520 217038841

D MS Data 863008768 1000214527 137205760

D Mac HFS 998945640 1000215175 1269536

Aug 19, 2015 4:43 PM in response to Loner T

Disk: /dev/disk0 geometry: 62260/255/63 [1000215216 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 - 781495032] HFS+

3: AB 1023 254 63 - 1023 254 63 [ 781904672 - 1269536] Darwin Boot

4: 0C 1023 254 63 - 1023 254 63 [ 863008768 - 137205760] Win95 FAT32L

Aug 19, 2015 5:31 PM in response to jtham

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 GPT4 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 4 (part 4)
  5. N (new part)
  6. 4 (part 4)
  7. 783175680 ( - Start offset in sectors or the start point for Bootcamp part)
  8. +217038841 ( - 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/disk0s4.

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 10. Accept all other defaults that Gdisk offers. Please see thesample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers.

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


Here is sample Q&A for this section. Please notice the Press Enter/Return.


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 AB): Press Enter/Return

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


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

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.

Aug 19, 2015 6:19 PM in response to Loner T

We are making progress!!!


I did a shutdown and then held down Option to see what would show up. Lo and behold, Windows was an option! So I selected and started up. The issue is, there is a startup problem now. CHKDSK came up all clear. It appears to be a driver issue. I'm wondering if it's Parallels Desktop related?


Anyway, I could only go so far on the Windows side so I rebooted into OS X. This time, I can see all my files in the Bootcamp partition!


You're a legend already Loner T!!! Now I just need to figure out how to make the Windows boot up fine...


To answer your question about 3rd party NTFS, is Parallels one of those? If not, I don't have anything.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Issues after resizing Bootcamp using Minitool

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