Q: Bootcamp partition missing after yosemite installation
I am running OS X 10.10.1 currently. Right after I upgraded to Yosemite my windows 7 partition was missing. I have all of my school work and programs on that partition and I use it quite often. I have seen other questions similar to this but none with an external hard drive backed up like I do. I tried to repair the windows 7 partition with disk utility but it appears to just be floating in cyber space unrecognizable and unrepairable. Something happened when I "upgraded" to Yosemite.
Thankfully, I have an external hard drive with both my Macbook partition as well as my windows 7 partition saved on to my external hard drive. I went the extra mile and partitioned my external hard drive as well with a macbook partition and a windows 7 partition so they are not in the same part of the hard drive. Unfortunately I'm a little rusty with my tech skills now. How can I just restore this back to what it was? time machine won't restore my windows 7 partition. I just want everything back to where it was originally, I don't care about yosemite. I'm quite sure that I didn't overwrite the windows 7 partition on my external hard drive because it doesn't exist on this new operating system, so it must be in my external drive. Can someone please give me some direction for a beginner on stuff like this?
MacBook Pro (15-inch Mid 2012)
Posted on Mar 4, 2015 2:35 PM
Leave your Testdisk display and start a new Terminal Window. Please use the following steps.
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.
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)
- 779970560 - Start offset in bytes (start point for Bootcamp part)
- +196802553 (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 6. Accept all other defaults that Gdisk offers.
- Sudo gdisk /dev/disk0
- P (Print list of parts)
- R (Recover)
- 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)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- Reboot
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 Mar 4, 2015 6:18 PM
