You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Bootcamp Windows 8.1 Missing after Yosemite Upgrade

Hi!


After upgrading to Yosemite, I could no longer access to my Windows on my macbook pro. The windows partition doesn't show up like it usually does when I boot and hold the 'option' key.


This is quite urgent as I have some important school work and the deadline is just around the corner. I am very bad with computers, I would much appreciate if someone can help me!. Thank you.

Gordons-MBP:~ gordonchiu$ 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 110.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 110.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *109.6 GB disk1

Logical Volume on disk0s2

F3C829C5-CF71-48E8-9022-C36FA871F5DF

Unencrypted

Gordons-MBP:~ gordonchiu$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 34DFD75E-D3EE-4C13-9591-EEE92FDA079A

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

Name: Macintosh HD

Status: Online

Size: 109999996928 B (110.0 GB)

Free Space: 18923520 B (18.9 MB)

|

+-< Physical Volume 9FD3F580-F25D-4002-87AC-0EECA613D183

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 109999996928 B (110.0 GB)

|

+-> Logical Volume Family EAF37DE2-25C7-4B87-8505-BB78B84CF4E4

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

Encryption Status: Unlocked

Encryption Type: None

Conversion Status: NoConversion

Conversion Direction: -none-

Has Encrypted Extents: No

Fully Secure: No

Passphrase Required: No

|

+-> Logical Volume F3C829C5-CF71-48E8-9022-C36FA871F5DF

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

Disk: disk1

Status: Online

Size (Total): 109628751872 B (109.6 GB)

Conversion Progress: -none-

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

Gordons-MBP:~ gordonchiu$ sudo gpt -vv -r show /dev/disk0

Password:

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

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

216522920 58869592

275392512 214841344 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

490233856 863

490234719 32 Sec GPT table

490234751 1 Sec GPT header


Gordons-MBP:~ gordonchiu$ 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 - 214843744] <Unknown ID>

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

4: 0C 1023 254 63 - 1023 254 63 [ 275392512 - 214841344] Win95 FAT32L

Gordons-MBP:~ gordonchiu$

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

Posted on Nov 2, 2014 5:07 AM

Reply
27 replies

Nov 2, 2014 5:23 AM in response to GordonChiu

Please go to Application -> Utilities -> Terminal.


Type each of the following commands by triple-clicking on each line, use Command+C to copy and Command+V to paste it in the Terminal. Post the output of each command. Enter your password for the last two commands.


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0

Nov 2, 2014 8:22 AM in response to Loner T

Im doing step 1. Got stuck with the part where it asks for the numbers with first sector and last sector. What should I be typing? Im sorry, I am really bad at this.


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): 000037D9-16B0-0000-A668-000004700000

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 58870461 sectors (28.1 GiB)


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

1 40 409639 200.0 MiB EF00 EFI system partition

2 409640 215253383 102.4 GiB AF05 Macintosh HD

3 215253384 216522919 619.9 MiB AB00 Recovery HD

4 275392512 490233855 102.4 GiB 0700 BOOTCAMP


Command (? for help): d

Partition number (1-4): 4


Command (? for help): n

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

First sector (34-490234718, default = 216522920) or {+-}size{KMGTP}:

Nov 2, 2014 7:39 PM in response to Loner T

I have just completed my deeper search. (assuming I have chosen the correct drive) I could not figure out the start / end sectors. Also, it could not identify rdisk1 as a Intel/PC partition. The default selection is a Non partition media.

Do you mind giving me a step by step through TestDisk? I could not find any reference from the other threads.

These are the disks that came up.

>Disk /dev/disk0 - 251 GB / 233 GiB (RO)

Disk /dev/rdisk0 - 251 GB / 233 GiB (RO)

Disk /dev/rdisk1 - 109 GB / 102 GiB

Nov 3, 2014 4:25 AM in response to Loner T

soon after the quick search this came up

TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)


The harddisk (251 GB / 233 GiB) seems too small! (< 391 GB / 364 GiB)

Check the harddisk size: HD jumpers settings, BIOS detection...


The following partitions can't be recovered:

Partition Start End Size in sectors

> MS Data 490233855 763942903 273709049

Mac HFS 490234708 491504243 1269536










[ Continue ]

I have no idea what these things mean.....

Nov 3, 2014 4:35 AM in response to Loner T

Sorry about this, these maybe stupid questions to you.. I couldn't follow the step by step as it looks nothing like it..

please bear with me

TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

Partition Start End Size in sectors

>P EFI System 40 409639 409600 [EFI]

P Mac HFS 409640 214528295 214118656

P Mac HFS 215253384 216522919 1269536

D MS Data 216524800 490233848 273709049

D MS Data 216524807 490233855 273709049

D Mac HFS 488965176 490234711 1269536







Structure: Ok. Use Up/Down Arrow keys to select partition.

Use Left/Right Arrow keys to CHANGE partition characteristics:

P=Primary D=Deleted

Keys A: add partition, L: load backup, T: change type, P: list files,

Enter: to continue

FAT32, blocksize=512, 209 MB / 200 MiB

Nov 3, 2014 4:45 AM in response to GordonChiu

Your original GPT as you posted is


216522920 58869592

275392512 214841344 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


Please select one of the following and use "P" to list files. Repeat this for the second entry as well. The difference is 1,880 bytes. You are close to getting it fixed.


D MS Data 216524800 490233848 273709049

D MS Data 216524807 490233855 273709049

Nov 3, 2014 4:49 AM in response to Loner T

The first one

TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org

MS Data 216524800 490233848 273709049

Directory /


>dr-xr-xr-x 0 0 0 24-Oct-2014 04:52 .

dr-xr-xr-x 0 0 0 24-Oct-2014 04:52 ..

dr-xr-xr-x 0 0 0 21-Oct-2014 16:25 $AVG

dr-xr-xr-x 0 0 0 5-Dec-2013 18:22 $Recycle.Bin

dr-xr-xr-x 0 0 0 16-Sep-2014 13:51 AdwCleaner

dr-xr-xr-x 0 0 0 17-May-2014 15:54 Autodesk

dr-xr-xr-x 0 0 0 7-Sep-2014 11:56 Boot

dr-xr-xr-x 0 0 0 24-Oct-2014 04:52 Config.Msi

dr-xr-xr-x 0 0 0 5-Dec-2013 18:23 Intel

dr-xr-xr-x 0 0 0 16-Oct-2014 18:49 NVIDIA

dr-xr-xr-x 0 0 0 23-Aug-2013 01:22 PerfLogs

dr-xr-xr-x 0 0 0 20-Oct-2014 15:20 Program Files

dr-xr-xr-x 0 0 0 20-Oct-2014 15:20 Program Files (x86)

dr-xr-xr-x 0 0 0 21-Oct-2014 16:24 ProgramData

dr-xr-xr-x 0 0 0 11-Apr-2014 04:51 Recovery

dr-xr-xr-x 0 0 0 22-Oct-2014 15:23 System Volume Information

dr-xr-xr-x 0 0 0 2-Apr-2014 19:18 Users

dr-xr-xr-x 0 0 0 21-Oct-2014 21:13 Windows

dr-xr-xr-x 0 0 0 26-Jun-2014 13:35 XiGua Yingshi

dr-xr-xr-x 0 0 0 5-Dec-2013 18:22 temp

dr-xr-xr-x 0 0 0 25-Jun-2014 17:25 xfmovie

-r--r--r-- 0 0 1 18-Jun-2013 22:18 BOOTNXT

-r--r--r-- 0 0 8192 6-Dec-2013 08:27 BOOTSECT.BAK

-r--r--r-- 0 0 2062 16-May-2014 12:23 RHDSetup.log

-r--r--r-- 0 0 404250 14-Jun-2014 20:46 bootmgr

-r--r--r-- 0 0 13665624064 1-Nov-2014 14:04 hiberfil.sys

-r--r--r-- 0 0 904704 2-Dec-2006 00:37 msdia80.dll

-r--r--r-- 0 0 2550136832 1-Nov-2014 14:04 pagefile.sys

-r--r--r-- 0 0 16777216 1-Nov-2014 14:04 swapfile.sys


Next

Use Right to change directory, h to hide Alternate Data Stream

q to quit, : to select the current file, a to select all files

C to copy the selected files, c to copy the current file

And the second one

TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


MS Data 216524807 490233855 273709049




Can't open filesystem. Filesystem seems damaged.

Nov 3, 2014 5:06 AM in response to GordonChiu

Here is a cut/paste from a similar thread (Yosemite Upgrade Broke Bootcamp)...


"

Take a look at the following example. You need to use your own start/end rather than what is here...


Post back when you are ready for Step 5.


"Please stop if you see any error messages.


1. Delete the old entry and create a new entry at GPT#4.


sudo gdisk /dev/disk0

p

d

4

n

4

216524807

490233855

0700

p

w

y


2. 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.


3. 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".


4. This is a tedious process and you want to check after the second 'p'rint command that it looks reasonable, before the 'w'rite and 'y'es to confirm.


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).


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.



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


"

Bootcamp Windows 8.1 Missing after Yosemite Upgrade

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