Boot camp lost after upgrading to Yosemite from mountain lion

User uploaded file

I lost my windows7 boot camp after I upgrade to Yosemite from mountain lion. When I press ALT when rebooting there is no more alternative to boot for window anymore. I did read some thread about this but my case is different since when I tried to type 3 steps(diskutil.......etc) 😕 as LonerT user answers it did not work. The attached files here are what I faced with. Please help. I have a lot of important files in windows

User uploaded fileUser uploaded fileUser uploaded file

MacBook Pro, OS X Yosemite (10.10), macbook pro

Posted on Nov 10, 2014 1:38 PM

Reply
82 replies

Jan 19, 2015 5:43 PM in response to Eugeniu_K

Using the start/end/size from '4' and '5', this is what the numbers look like...



GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS End
7208245441269536722094080722036736-57344254734336976771072
GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS End
72082454412695367220940807220940800254679040976773120


The negative sector offset means the NTFS header is located somewhere in the current Recovery HD partition. This is the reason for asking if there are any additional files in '4' (because it may be a part of the NTFS partition you are looking for). '5' matches your current GPT 4 partition which is damaged because there is no NTFS header.


If you want, '4' can be used and tested, but you will lose Recovery HD (temporarily), and will have to reinstall OSX after Windows is recovered to rebuild it.

Jan 20, 2015 2:37 PM in response to Loner T

Loner T wrote:


Can you look at Re: Please help, lost windows after Yosemite upgrade execute the steps with Gdisk in rebuilding GPT4 and the Hybrid MBR?

Yes will do the same, but with my numbers:

Using the start/end/size from '4' and '5', this is what the numbers look like...



GPT 3 Start GPT 3 Size GPT 3 End NTFS Start Sector Offset NTFS Size NTFS End
720824544 1269536 722094080 722036736 -57344 254734336 976771072
GPT 3 Start GPT 3 Size GPT 3 End NTFS Start Sector Offset NTFS Size NTFS End
720824544 1269536 722094080 722094080 0 254679040 976773120

So just to be sure


I leave testdisk now and continue with this ?


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.720824544 - Start offset in bytes (start point for Bootcamp part)
8.+254734336 (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.

Jan 20, 2015 4:03 PM in response to Eugeniu_K

If I correct the GPT3 start, see the comment below the table. You also need to delete GPT 3, not just GPT 4.

Using the start/end/size from '4' and '5', this is what the numbers look like...


GPT 3 Start GPT 3 Size GPT 3 End NTFS Start Sector Offset NTFS Size NTFS End
722036736 1269536 722094080 722036736 -57344 254734336 976771072
GPT 3 Start GPT 3 Size GPT 3 End NTFS Start Sector Offset NTFS Size NTFS End
720824544 1269536 722094080 722094080 0 254679040 976773120


The negative sector offset means the NTFS header is located somewhere in the current Recovery HD partition. This is the reason for asking if there are any additional files in '4' (because it may be a part of the NTFS partition you are looking for).

So you also need to execute 'd', '3'.

Jan 20, 2015 4:06 PM in response to Loner T

Loner T wrote:


If I correct the GPT3 start, see the comment below the table. You also need to delete GPT 3, not just GPT 4.

Using the start/end/size from '4' and '5', this is what the numbers look like...


GPT 3 Start GPT 3 Size GPT 3 End NTFS Start Sector Offset NTFS Size NTFS End
722036736 1269536 722094080 722036736 -57344 254734336 976771072
GPT 3 Start GPT 3 Size GPT 3 End NTFS Start Sector Offset NTFS Size NTFS End
720824544 1269536 722094080 722094080 0 254679040 976773120


The negative sector offset means the NTFS header is located somewhere in the current Recovery HD partition. This is the reason for asking if there are any additional files in '4' (because it may be a part of the NTFS partition you are looking for).

So you also need to execute 'd', '3'.


ok, how can I cancel current action?

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.

Boot camp lost after upgrading to Yosemite from mountain lion

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