Q: How to Fix the lost Bootcamp Partition after Resizing Mac OS X Partition
I have a MacBook Pro (15-inch Early 2008
with OS X 10.10.5 (14F27).
Today I try to change my Macbook partition sizes and Windows Bootcamp would not show in the Boot menu. I installed CampTune demo to resize bootcamp size to add 100gb to the current bootcam partition. but now my Bootcamp partition is gone and cant be seen in disk utility.
I try it out this program but it is stuck at the "Your system is being scanned for a Boot Camp Configuration" screen and goes no where. I've let it sit for quite some time. I've rebooted and tried, repaired permissions and tried... nothing.
typed on the terminal: diskutil list... and I get this:
Name:~ User$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Mac OS 223.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
Name:~ User$
Bootcamp partition is not listed!!. Is any chance to recover my win7 partition?
Please help! now I am in panic!!!
MacBook Pro (15-inch Early 2008), OS X Yosemite (10.10.5)
Posted on Aug 22, 2015 9:01 PM
hennweb wrote:
Is any chance you can remotely control the machine so you can review faster if there are chances of recovery?
No. Unless you can verify that I work for Apple (which I do not ), for your own safety, do not allow remote access to your machine under any circumstances.
or what is the next steep?I leave the terminal like the last screen shot.
Please read to the end of this part before you start executing these steps.
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
- Sudo gdisk /dev/rdisk0
- P (print the full list of parts)
- D (delete)
- 4 (part 4)
- N (new part)
- 4 (part 4)
- 438173696 ( - Start offset in sectors or the start point for Bootcamp part)
- +391108608 ( - Size offset, as opposed to End offset)
- 0700 (Windows part type)
- P (print list of all parts just to see what changes will be made)
- W (Write the new GPT)
- 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 the sample 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.
- Sudo gdisk /dev/rdisk0
- P (Print list of parts)
- R (Recover)
- O (print current Hybrid MBR)
- H (chooses Hybrid)
- Partitions numbers to be hybridized: 2 3 4
- Y (Good for GRUB question)
- N (part 2 boot flag)
- N (part 3 boot flag)
- Y (part 4 boot flag make NTFS bootable partition)
- O (print current Hybrid MBR)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- 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.
Posted on Aug 25, 2015 8:48 AM

