bobemil

Q: Can't fire up windows after Yosemite update

I can't see my Bootcamp drive anymore. When I boot windows after holding down ALT it says "Missing OS" and I can't do anything. My life work was on my Bootcamp :/ I'm very sad over this right now. Is my Bootcamp partition gone forever?

sudo gpt -vv -r show /dev/disk0 show this:

 

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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

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

  1277250632   232242104        

  1509492736   444030976      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  1953523712        1423        

  1953525135          32         Sec GPT table

  1953525167           1         Sec GPT header

Emil-Anderssons-iMac:~ emil$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

00000000  08 a5 10 a5 18 a5 20 a5  28 a5 30 a5 38 a5 40 a5  |...... .(.0.8.@.|

00000010  48 a5 50 a5 58 a5 60 a5  68 a5 70 a5 78 a5 80 a5  |H.P.X.`.h.p.x...|

00000020  88 a5 90 a5 98 a5 a0 a5  a8 a5 b0 a5 b8 a5 c0 a5  |................|

00000030  c8 a5 d0 a5 d8 a5 e0 a5  e8 a5 f0 a5 f8 a5 00 a6  |................|

00000040  08 a6 10 a6 18 a6 20 a6  28 a6 30 a6 38 a6 40 a6  |...... .(.0.8.@.|

00000050  48 a6 50 a6 58 a6 60 a6  68 a6 70 a6 78 a6 80 a6  |H.P.X.`.h.p.x...|

00000060  88 a6 90 a6 98 a6 a0 a6  a8 a6 b0 a6 b8 a6 c0 a6  |................|

00000070  c8 a6 d0 a6 d8 a6 e0 a6  e8 a6 f0 a6 f8 a6 00 a7  |................|

00000080  08 a7 10 a7 18 a7 20 a7  28 a7 30 a7 38 a7 40 a7  |...... .(.0.8.@.|

00000090  48 a7 50 a7 58 a7 60 a7  68 a7 70 a7 78 a7 80 a7  |H.P.X.`.h.p.x...|

000000a0  88 a7 90 a7 98 a7 a0 a7  a8 a7 b0 a7 b8 a7 c0 a7  |................|

000000b0  c8 a7 20 a8 38 a8 18 a9  20 a9 28 a9 30 a9 38 a9  |.. .8... .(.0.8.|

000000c0  40 a9 48 a9 50 a9 58 a9  60 a9 68 a9 70 a9 c8 a9  |@.H.P.X.`.h.p...|

000000d0  d0 a9 d8 a9 e0 a9 e8 a9  f0 a9 f8 a9 00 aa 08 aa  |................|

000000e0  10 aa 18 aa 20 aa 28 aa  30 aa 38 aa 40 aa 48 aa  |.... .(.0.8.@.H.|

000000f0  50 aa 58 aa 60 aa 68 aa  70 aa 78 aa 80 aa 88 aa  |P.X.`.h.p.x.....|

00000100  90 aa 98 aa a0 aa a8 aa  b0 aa b8 aa c0 aa c8 aa  |................|

00000110  d0 aa d8 aa e0 aa e8 aa  f0 aa 40 ab 48 ab 50 ab  |..........@.H.P.|

00000120  58 ab 60 ab 68 ab 70 ab  78 ab 80 ab 90 ab 98 ab  |X.`.h.p.x.......|

00000130  a0 ab a8 ab b0 ab b8 ab  c0 ab c8 ab d0 ab d8 ab  |................|

00000140  e0 ab e8 ab f0 ab f8 ab  00 ac 08 ac 10 ac 18 ac  |................|

00000150  20 ac 28 ac 30 ac 38 ac  40 ac 48 ac 50 ac 58 ac  | .(.0.8.@.H.P.X.|

00000160  60 ac 90 ac 98 ac a0 ac  a8 ac b0 ac b8 ac c0 ac  |`...............|

00000170  c8 ac d0 ac e0 ac e8 ac  f0 ac f8 ac 00 ad 08 ad  |................|

00000180  10 ad 18 ad 20 ad 28 ad  30 ad 38 ad 40 ad 48 ad  |.... .(.0.8.@.H.|

00000190  50 ad 58 ad 60 ad 68 ad  70 ad 78 ad 80 ad 88 ad  |P.X.`.h.p.x.....|

000001a0  90 ad 98 ad a0 ad a8 ad  b0 ad b8 ad c0 ad d0 ad  |................|

000001b0  d8 ad e0 ad e8 ad f0 ad  f8 ad 00 ae 08 ae 10 ae  |................|

000001c0  18 ae 20 ae 28 ae 30 ae  38 ae 40 ae 48 ae 50 ae  |.. .(.0.8.@.H.P.|

000001d0  58 ae 60 ae 68 ae 70 ae  78 ae 80 ae 88 ae 90 ae  |X.`.h.p.x.......|

000001e0  98 ae a0 ae a8 ae b0 ae  b8 ae c0 ae c8 ae d0 ae  |................|

000001f0  d8 ae e0 ae e8 ae f0 ae  f8 ae 00 af 08 af 10 af  |................|

00000200


----------------------


sudo fdisk /dev/disk0:


Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 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 - 1275571456] HFS+       

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

*4: 07 1023 254  63 - 1023 254  63 [1509492736 -  444030976] HPFS/QNX/AUX

 

-----------

 

diskutil list:


/dev/disk0

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *1.0 TB     disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:                  Apple_HFS Macintosh HD            653.1 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:       Microsoft Basic Data                         227.3 GB   disk0s4

iMac, OS X Yosemite (10.10)

Posted on Nov 7, 2014 10:54 AM

Close

Q: Can't fire up windows after Yosemite update

  • All replies
  • Helpful answers

  • by Loner T,Helpful

    Loner T Loner T Nov 7, 2014 12:12 PM in response to bobemil
    Level 7 (24,202 points)
    Safari
    Nov 7, 2014 12:12 PM in response to bobemil

    This is a much easier fix than many other Yosemite issues.

     

    The gap between GPT#3 and GPT#4 is actually your savior.

     

    Please see Yosemite Upgrade Broke Bootcamp as a reference.

     

    Please download Testdisk and GPT Fdisk as mentioned in the linked article. If you need directly link, please post back.

     

    You will need to use Testdisk to find the "lost" NTFS partition, and based on the results of it, your GPT entries and MBR can be manipulated to get your Windows back.

     

    Here is a collection of similar threads, to make you feel better - Bootcamp and Yosemite upgrade - potential data loss warning.

  • by bobemil,

    bobemil bobemil Nov 7, 2014 5:03 PM in response to Loner T
    Level 1 (0 points)
    Nov 7, 2014 5:03 PM in response to Loner T

    Thank you for responding! You seem to be this sections best supporter I followed some steps from the links you gave me but I don't understand all these commands that other people seem to know everything about. But at least there are some hope now, thank you I will try to get my hands on someone that knows how to do this step by step. Thank you again!

  • by Loner T,

    Loner T Loner T Nov 7, 2014 5:23 PM in response to bobemil
    Level 7 (24,202 points)
    Safari
    Nov 7, 2014 5:23 PM in response to bobemil

    sThe basics of the exercise are fairly easy to explain. The tools obfuscate it a bit too much.

     

    1. During Yosemite Upgrade/Install, it rebuilds the recovery partition and in some cases converts the Mavericks (or prior) filesystem to a Logical Volume group and Logical Volume combination.

    2. Due to various issues, the move of the volumes and the resizing of partitions, the NTFS header is left in a location which is no longer part of the Bootcamp partition (which seems to be a calculation issue). This is the gap between GPT#3 and GPT#4.

    3. Bootcamp now has a partial filesystem from which it cannot boot. The Windows Bootloader/manager are not accessible.

    4. Testdisk scans your hard disk sector-by-sector to locate such "lost" NTFS headers. Once found, the Bootcamp partition is reconstructed using the information using Gdisk and the corresponding MBR entry is recreated.

    5. This allows Windows volume to become viable again.

    6. If you notice, Finder (in Mavericks and prior) used to have read-only access to Bootcamp volume, but Yosemite Finder does not show it, because the NTFS header it is looking for has been corrupted.

    7. If you need any help with syntax, please ask. If you are uncomfortable with terminal CLI commands, then someone who is, can look at the referenced link and  follow the steps. The Testdisk WiKi is also an excellent resource.