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

Upgraded to El Capitan and now Bootcamp windows partition is not recognized.

Hello, this morning I thought I made a successful upgrade to El Capitan from Yosemite. Restart and no more Bootcamp Windows partition. I went to disk utilities and it is now unknown space. I could really use some help.


Background: no errors in the past, smooth transition between OS and OS X, no errors during the upgrade.


Thank you all in advance.

Mac Pro, Upgrade to El Capitan, lost Windows

Posted on Oct 12, 2015 8:34 AM

Reply
41 replies

Oct 12, 2015 10:40 AM in response to TravelerOne

In Terminal...


sudo fdisk /dev/rdisk0

sudo gpt -r -vv show /dev/rdisk0

In particular, if the fdisk (MBR output) shows the 4th partition is 0C without an asterisk; and if the gpt output shows a large number of unallocated sectors between partition 3 and 4, you are really deep in the weeds. Hope is not lost, the data is OK, but recovering it is a really deep dark rabbit hole. There's no magic button to fix it. But let's see the output from those two commands.

Oct 13, 2015 5:54 PM in response to BDAqua

Here is the dump from the queries:


Disk: /dev/rdisk0 geometry: 60821/255/63 [977105060 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 - 196892784] HFS+

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

4: 0C 1023 254 63 - 1023 254 63 [ 488824832 - 488280064] Win95 FAT32L

Williams-Pro:~ *****$ sudo gpt -r -vv show /dev/rdisk0

gpt show: /dev/rdisk0: mediasize=500277790720; sectorsize=512; blocks=977105060

gpt show: /dev/rdisk0: Suspicious MBR at sector 0

gpt show: /dev/rdisk0: Pri GPT at sector 1

gpt show: /dev/rdisk0: Sec GPT at sector 977105059

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

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

198571960 290252872

488824832 488280064 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

977104896 131

977105027 32 Sec GPT table

977105059 1 Sec GPT header

Thanks again.

<Personal Information Edited by Host>

Oct 21, 2015 6:23 PM in response to TravelerOne

The Gap between GPT3 and GPT 4 indicates a lost NTFS header. It is usually a problem after resizing BC/Windows.


Because the partitioning tools do not clean up headers properly and do not sync the GPT and Hybrid MBR, OS X Software upgrades just exacerbate this issue. It is usually recoverable in almost all cases.


Can you use El Capitan has deleted my bootcamp windows partition as a reference and download Testdisk and GPT Fdisk and start a Testdisk scan and run a Quick Search? The Testdisk screens are also shown in that discussion.


Testdisk - http://www.cgsecurity.org/wiki/TestDisk_Download

GPT Fdisk - http://sourceforge.net/projects/gptfdisk/

Oct 22, 2015 4:20 PM in response to Loner T

I did everything as outlined but the changes will not save. Here is the outcome:


Last login: Thu Oct 22 17:58:22 on ttys001

MEPro:~ ME$ sudo gdisk /dev/rdisk0

Password:

GPT fdisk (gdisk) version 1.0.1


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

NOTE: Write test failed with error number 1. It will be impossible to save

changes to this disk's partition table!

You may need to deactivate System Integrity Protection to use this program. See

https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

for more information.


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/rdisk0: 977105060 sectors, 465.9 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 415DC92E-1F12-4519-AA28-3433684C2B4D

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 977105026

Partitions will be aligned on 8-sector boundaries

Total free space is 290253009 sectors (138.4 GiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 197302423 93.9 GiB AF00 MACOS

3 197302424 198571959 619.9 MiB AB00 Recovery HD

4 488824832 977104895 232.8 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-977105026, default = 198571960) or {+-}size{KMGTP}: 198572032

Last sector (198572032-977105026, default = 977105026) or {+-}size{KMGTP}: +778532857

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/rdisk0: 977105060 sectors, 465.9 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 415DC92E-1F12-4519-AA28-3433684C2B4D

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 977105026

Partitions will be aligned on 8-sector boundaries

Total free space is 216 sectors (108.0 KiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 197302423 93.9 GiB AF00 MACOS

3 197302424 198571959 619.9 MiB AB00 Recovery HD

4 198572032 977104888 371.2 GiB 0700 Microsoft basic data


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/rdisk0.

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Unable to open device '/dev/rdisk0' for writing! Errno is 1! Aborting write!


Command (? for help):

Oct 22, 2015 5:51 PM in response to TravelerOne

1. You should turn SIP back on using csrutil enable .

2. Please backup OS X and Windows.

3. This is optional, but strongly recommend it. Use the same Gdisk utility, and use the 'b' option (Backup) and use a filename of your choice, Once the backup is complete, type 'q'(quit) and copy this file to an external disk (a USB flash) and away from the Mac. This is your current disk layout which can be loaded using the 'l'(oad) command in the future.

4. I know that Apple Engineering reads these forums.

Upgraded to El Capitan and now Bootcamp windows partition is not recognized.

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