Venia77

Q: Bootcamp with Win' 8 won't start after Yosemite

After installing bootcamp I had to upgrade my windows partition, it worked until I upgraded to Yosemite.

After upgrading and rebooting and clicking alt the windows option didn't even appear.

I tried a couple of tips in the communitie threads and managed to get windows to appear as an option on reboot however I get the message

"missing operating system".

 

Following Loner T's suggestions I get these results:


diskutil list

MacBook-Pro:~ Ran$ diskutil list

/dev/disk0

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *251.0 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:          Apple_CoreStorage                         210.0 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:       Microsoft Basic Data                         30.0 GB    disk0s4

/dev/disk1

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:                  Apple_HFS Macintosh HD           *209.6 GB   disk1

                                 Logical Volume on disk0s2

                                 ADB5ED30-596D-4CBF-95B6-3147DF954E96

                                 Unlocked Encrypted

 

 

diskutil cs list

MacBook-Pro:~ Ran$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group B8C99B8C-D7C4-4E0E-8AD3-BA68035C6584

    =========================================================

    Name:         Macintosh HD

    Status:       Online

    Size:         209999998976 B (210.0 GB)

    Free Space:   0 B (0 B)

    |

    +-< Physical Volume 0D9669BA-EE47-4F1C-A256-BFD369F8694E

    |   ----------------------------------------------------

    |   Index:    0

    |   Disk:     disk0s2

    |   Status:   Online

    |   Size:     209999998976 B (210.0 GB)

    |

    +-> Logical Volume Family BF2FC390-7959-4AD8-A73C-6A2D1ACFD56B

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

        Encryption Status:       Unlocked

        Encryption Type:         AES-XTS

        Conversion Status:       Complete

        Conversion Direction:    -none-

        Has Encrypted Extents:   Yes

        Fully Secure:            Yes

        Passphrase Required:     Yes

        |

        +-> Logical Volume ADB5ED30-596D-4CBF-95B6-3147DF954E96

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

            Disk:                  disk1

            Status:                Online

            Size (Total):          209648091136 B (209.6 GB)

            Conversion Progress:   -none-

            Revertible:            Yes (unlock and decryption required)

            LV Name:               Macintosh HD

            Volume Name:           Macintosh HD

            Content Hint:          Apple_HFS

 

sudo gpt -vv -r show /dev/disk

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

gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

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 490234751

      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  410156248      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

  411835424   19807200        

  431642624   58591232      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  490233856        863        

  490234719         32         Sec GPT table

  490234751          1         Sec GPT header


 

 

sudo fdisk /dev/disk

MacBook-Pro:~ Ran$ sudo fdisk /dev/disk0

Disk: /dev/disk0    geometry: 30515/255/63 [490234752 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: AC 1023 254  63 - 1023 254  63 [    409640 -  410156248] <Unknown ID>

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

*4: 07 1023 254  63 - 1023 254  63 [ 431642624 -   58591232] HPFS/QNX/AUX

 

 

sudo dd if=/dev/rdisk0 count=1 2>/dev/null | hexdump -

MacBook-Pro:~ Ran$ sudo fdisk /dev/disk0

Disk: /dev/disk0    geometry: 30515/255/63 [490234752 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: AC 1023 254  63 - 1023 254  63 [    409640 -  410156248] <Unknown ID>

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

*4: 07 1023 254  63 - 1023 254  63 [ 431642624 -   58591232] HPFS/QNX/AUX

MacBook-Pro:~ Ran$ sudo dd if=/dev/rdisk0 count=1 2>/dev/null | hexdump -C

00000000  33 c0 8e d0 bc 00 7c 8e  c0 8e d8 be 00 7c bf 00  |3.....|......|..|

00000010  06 b9 00 02 fc f3 a4 50  68 1c 06 cb fb b9 04 00  |.......Ph.......|

00000020  bd be 07 80 7e 00 00 7c  0b 0f 85 0e 01 83 c5 10  |....~..|........|

00000030  e2 f1 cd 18 88 56 00 55  c6 46 11 05 c6 46 10 00  |.....V.U.F...F..|

00000040  b4 41 bb aa 55 cd 13 5d  72 0f 81 fb 55 aa 75 09  |.A..U..]r...U.u.|

00000050  f7 c1 01 00 74 03 fe 46  10 66 60 80 7e 10 00 74  |....t..F.f`.~..t|

00000060  26 66 68 00 00 00 00 66  ff 76 08 68 00 00 68 00  |&fh....f.v.h..h.|

00000070  7c 68 01 00 68 10 00 b4  42 8a 56 00 8b f4 cd 13  ||h..h...B.V.....|

00000080  9f 83 c4 10 9e eb 14 b8  01 02 bb 00 7c 8a 56 00  |............|.V.|

00000090  8a 76 01 8a 4e 02 8a 6e  03 cd 13 66 61 73 1c fe  |.v..N..n...fas..|

000000a0  4e 11 75 0c 80 7e 00 80  0f 84 8a 00 b2 80 eb 84  |N.u..~..........|

000000b0  55 32 e4 8a 56 00 cd 13  5d eb 9e 81 3e fe 7d 55  |U2..V...]...>.}U|

000000c0  aa 75 6e ff 76 00 e8 8d  00 75 17 fa b0 d1 e6 64  |.un.v....u.....d|

000000d0  e8 83 00 b0 df e6 60 e8  7c 00 b0 ff e6 64 e8 75  |......`.|....d.u|

000000e0  00 fb b8 00 bb cd 1a 66  23 c0 75 3b 66 81 fb 54  |.......f#.u;f..T|

000000f0  43 50 41 75 32 81 f9 02  01 72 2c 66 68 07 bb 00  |CPAu2....r,fh...|

00000100  00 66 68 00 02 00 00 66  68 08 00 00 00 66 53 66  |.fh....fh....fSf|

00000110  53 66 55 66 68 00 00 00  00 66 68 00 7c 00 00 66  |SfUfh....fh.|..f|

00000120  61 68 00 00 07 cd 1a 5a  32 f6 ea 00 7c 00 00 cd  |ah.....Z2...|...|

00000130  18 a0 b7 07 eb 08 a0 b6  07 eb 03 a0 b5 07 32 e4  |..............2.|

00000140  05 00 07 8b f0 ac 3c 00  74 09 bb 07 00 b4 0e cd  |......<.t.......|

00000150  10 eb f2 f4 eb fd 2b c9  e4 64 eb 00 24 02 e0 f8  |......+..d..$...|

00000160  24 02 c3 49 6e 76 61 6c  69 64 20 70 61 72 74 69  |$..Invalid parti|

00000170  74 69 6f 6e 20 74 61 62  6c 65 00 45 72 72 6f 72  |tion table.Error|

00000180  20 6c 6f 61 64 69 6e 67  20 6f 70 65 72 61 74 69  | loading operati|

00000190  6e 67 20 73 79 73 74 65  6d 00 4d 69 73 73 69 6e  |ng system.Missin|

000001a0  67 20 6f 70 65 72 61 74  69 6e 67 20 73 79 73 74  |g operating syst|

000001b0  65 6d 00 00 00 63 7b 9a  4e 8b 2f 59 00 00 00 fe  |em...c{.N./Y....|

000001c0  ff ff ee fe ff ff 01 00  00 00 27 40 06 00 00 fe  |..........'@....|

000001d0  ff ff ac fe ff ff 28 40  06 00 d8 7c 72 18 00 fe  |......(@...|r...|

000001e0  ff ff ab fe ff ff 00 bd  78 18 20 5f 13 00 80 fe  |........x. _....|

000001f0  ff ff 07 fe ff ff 00 58  ba 19 00 08 7e 03 55 aa  |.......X....~.U.|

00000200

 

Thanks.

MacBook Pro with Retina display, OS X Yosemite (10.10), With bootcamp

Posted on Nov 2, 2014 2:05 PM

Close

Q: Bootcamp with Win' 8 won't start after Yosemite

  • All replies
  • Helpful answers

Previous Page 2
  • by Venia77,

    Venia77 Venia77 Nov 4, 2014 11:12 PM in response to Loner T
    Level 1 (0 points)
    Nov 4, 2014 11:12 PM in response to Loner T

    It was saying: Can't open filesystem, filesystem seems damaged.

     

    But nevermind that, I found my files!!!!

     

    Can you see the image below?

    Screen-Shot-2014-11-05-at-09.08.35.png

  • by Loner T,Solvedanswer

    Loner T Loner T Nov 5, 2014 4:04 AM in response to Venia77
    Level 7 (23,813 points)
    Safari
    Nov 5, 2014 4:04 AM in response to Venia77

    Fantastic. Yosemite moved your partitions but the partition headers were calculated incorrectly. Based on what you have found via Testdisk, this table should show the correct placement of where the NTFS start should be. If the Byte Offset was negative you would lose Recovery HD.

     

    GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartByte Offset
    4105658881269536411835424411836416992

     

    The next steps are (please stop if you see any error messages other than a read-only disk warning).

     

    1. Delete the old GPT 4 entry and create a new entry at GPT 4 using the start/end you found via Testdisk.

     

    sudo gdisk /dev/disk0

    p

    d

    4

    n

    4

    411836416

    490233848

    0700

    p

    w

    y

     

    Here is an example...

     

    Command (? for help): d

    Partition number (1-4): 4

     

    Command (? for help): n

    Partition number (4-128, default 4): 4

    First sector (34-1954210086, default = 1454210080) or {+-}size{KMGTP}: 1454211072

    Last sector (1454211072-1954210086, default = 1954210086) or {+-}size{KMGTP}: 1954209791

    Current type is 'Apple HFS/HFS+'

    Hex code or GUID (L to show codes, Enter = AF00): 0700

    Changed type of partition to 'Microsoft basic data'

     

    Command (? for help): p

    Disk /dev/disk0: 1954210120 sectors, 931.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 6ED0C429-00D1-4759-B50E-04B6FB80D0E3

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 1954210086

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1293 sectors (646.5 KiB)

     

    Number  Start (sector)    End (sector)  Size       Code  Name

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640      1452940543   692.6 GiB   AF00  Customer

       3      1452940544      1454210079   619.9 MiB   AB00  Recovery HD

       4      1454211072      1954209791   238.4 GiB   0700  Microsoft basic data

     

    2. You want to check after the second 'p'rint command that it looks reasonable, before the 'w'rite and 'y'es to confirm.

     

    3. You will need to reboot after the change, because the disk you are booted from is the one being modified. Reboot will rebuild disk0s4 using the start/end you entered.

     

    4. Run the dd command - sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C and check that the first line contains "R.NTFS".

     

    5. Once you have a working GPT 4, a new hybrid MBR needs to be created which will overwrite what you see in your Fdisk output. This is also done using GPT Fdisk (Gdisk). The following is an example and the output of "p" command may differ from your specific values

     

    sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 0.8.10

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Partition table scan:

      MBR: hybrid

      BSD: not present

      APM: not present

      GPT: present

     

    Found valid GPT with hybrid MBR; using GPT.

     

    Command (? for help): p

    Disk /dev/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 59BDFEEB-1EB4-4529-94FE-3CBC2C3CD513

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 2604 sectors (1.3 MiB)

     

    Number  Start (sector)    End (sector)  Size       Code  Name

       1              40          409639   200.0 MiB   EF00  EF

       2          409640       401060383   191.0 GiB   AF05  Macintosh HD

       3       401060384       402329919   619.9 MiB   AB00  Re

       4       402331648       490233848   41.9 GiB    0700  Microsoft basic data

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4

    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): AF

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

     

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

    Enter an MBR hex code (default AB): AB

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

     

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

    Enter an MBR hex code (default 07): 07

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

     

    Recovery/transformation command (? for help): w

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

    Do you want to proceed? (Y/N): y

    OK; writing new GUID partition table (GPT) to /dev/disk0.

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Warning: The kernel may continue to use old or deleted partitions.

    You should reboot or remove the drive.

    The operation has completed successfully.

     

    Now Reboot and verify the output of fdisk again.

     

    6. a. Test 1 - Can you see your Bootcamp volume in Finder.

        b. Test 2 - Can you files in the Bootcamp volume?

        c. Test 3 - Can you see Bootcamp in your System Preferences -> Startup Disk.

        d. Test 4 - If Test 1-3 are successful, select Bootcamp and click on Restart. You may need Windows startup repair, if you see a hanging underline cursor at the top left corner of your screen. In most cases, it is not required.

  • by Venia77,

    Venia77 Venia77 Nov 5, 2014 4:51 AM in response to Loner T
    Level 1 (0 points)
    Nov 5, 2014 4:51 AM in response to Loner T

    Thanks!

     

    Is this achieved with GPT Fdisk? If so, I have another problem, I've installed it but I can't find it in my application folder nore anywhere else...

  • by Loner T,

    Loner T Loner T Nov 5, 2014 5:52 AM in response to Venia77
    Level 7 (23,813 points)
    Safari
    Nov 5, 2014 5:52 AM in response to Venia77

    GPT Fdisk binary is Gdisk.

     

    Please see

     

    type gdisk

    gdisk is /usr/sbin/gdisk

  • by Venia77,

    Venia77 Venia77 Nov 5, 2014 6:05 AM in response to Loner T
    Level 1 (0 points)
    Nov 5, 2014 6:05 AM in response to Loner T

    It worked!!!!!!!!!!

     

    I got my windows back!

     

    Loner you are a life saver, thanks!

     

    Do I need to do anything else now?

  • by Loner T,

    Loner T Loner T Nov 5, 2014 6:34 AM in response to Venia77
    Level 7 (23,813 points)
    Safari
    Nov 5, 2014 6:34 AM in response to Venia77

    Please switch between OSX and Windows. Take a backup of Windows and OSX to ensure future recoverability.

  • by Venia77,

    Venia77 Venia77 Nov 5, 2014 6:42 AM in response to Loner T
    Level 1 (0 points)
    Nov 5, 2014 6:42 AM in response to Loner T

    Everything looks normal except for 2 things:

    1- I don't see recovery HD in the options after reboot and alt, I only get windows and macintosh. Is it normal?

    2- My mac used to load extremely fast, now I get this loading bar which takes a few second to load...

  • by Loner T,

    Loner T Loner T Nov 5, 2014 7:15 AM in response to Venia77
    Level 7 (23,813 points)
    Safari
    Nov 5, 2014 7:15 AM in response to Venia77

    1. Does Command+R during power up bring up Recovery?

    2. Are referring to OSX startup or Windows startup?

  • by Venia77,

    Venia77 Venia77 Nov 5, 2014 8:51 AM in response to Loner T
    Level 1 (0 points)
    Nov 5, 2014 8:51 AM in response to Loner T

    1. yes

    2. OSX startup is extremely slow

  • by Loner T,

    Loner T Loner T Nov 5, 2014 9:37 AM in response to Venia77
    Level 7 (23,813 points)
    Safari
    Nov 5, 2014 9:37 AM in response to Venia77
Previous Page 2