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 partition not showing up in El Capitan

I just upgraded to OS X El Capitan, however, my windows partition is not showing up either in disk utility or start up menu. I see that my mac partition is still the same size as i left it (500 GB) while its missing the windows partition (250 GB). I followed this

sudo fdisk -e /dev/disk0

p

setpid 4

07

flag 4

p

write

y

but i get an error when i use the command "write" it says "operation not permitted"


I have a macbook pro mid 2012 with 750 GB HDD

Please help!!!

MacBook Pro, OS X El Capitan (10.11)

Posted on Sep 30, 2015 4:24 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 30, 2015 4:45 PM

Please post the output of the following Terminal commands


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0


You may run into more issues, because some of the tools do not work on ELC yet.

58 replies

Oct 4, 2015 12:08 PM in response to X_1Cesar1_X

Using that screen shot,


GPT3 StartGPT 3 SizeGPT3 EndSector OffsetNTFS StartNTFS SizeNTFS EndSector Offset (GB)NTFS Size (GB)
8793158881269536880585423132988058675258456063314651473840.00278.74


The NTFS start at 880586752 seems the most likely candidate. Scroll down to this entry and type 'P' to list files. You should a screen similar to the following...


User uploaded file

Oct 4, 2015 6:51 PM in response to X_1Cesar1_X

Install GPT Fdisk (aka gdisk). Leave your Testdisk display and start a new Terminal Window. You need to use the following steps. If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8. Please notice the'+' sign in step 8 (this is called offset notation). The text in parentheses is for informational purpose to describe the action being taken. Gdisk has one-character commands except when entering numbers.


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. 880586752 ( - Start offset in sectors or the start point for Bootcamp part)
  8. +584560633 ( - 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.

Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers. Please see thesample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.

  1. Sudo gdisk /dev/rdisk0
  2. P (Print list of parts)
  3. R (Recover)
  4. O (print current Hybrid MBR)
  5. H (chooses Hybrid)
  6. Partitions numbers to be hybridized: 2 3 4
  7. Y (Good for GRUB question)
  8. N (part 2 boot flag)
  9. N (part 3 boot flag)
  10. Y (part 4 boot flag make NTFS bootable partition)
  11. O (print current Hybrid MBR)
  12. W (Write the new MBR)
  13. Y (Yes! write the new MBR)
  14. Reboot


Here is sample Q&A for this section. Please notice the Press Enter/Return.


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): Press Enter/Return

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


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

Enter an MBR hex code (default AB): Press Enter/Return

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


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

Enter an MBR hex code (default 07): Press Enter/Return

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


Test 1 - Does Bootcamp Volume show up in Finder?

Test 2 - Can you see files in Bootcamp Volume?

Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

Oct 4, 2015 3:08 PM in response to Loner T

mmm gdisk doesn't work, and I think its too dangerous to install it the way you posted it since it isnt compatible with 10.11

"Boot int Local Recovery (Command+R) and start Utilities -> Terminal and then type

csrutil disable

Boot back into OSX and try to re-install Gdisk package."


So i guess its better if I stop since i dont really want to mess up the Mac OSX filesystem.

Nov 17, 2015 11:16 AM in response to Loner T

Hi Loner T,


I tried same thing but didn't work for me. I was hoping you can spill some of your magic my way.

Quick recap: I had Wind 7 with bootcamp, after upgrading to El Capitan, lost the bootable partition (doesn't see it in disk startup).


Did all the step you described, rebooted, with "Option" button pressed.

IT SHOWED Windows bootable partition, but when I select it, comes with black screen "Missing operating system".

My guess is this is really bad.


I need to get to my Windows partition to recover data that's all. Is there any other way to read that partition?


Thanks in advance.

bootcamp partition not showing up in El Capitan

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