Apple Event: May 7th at 7 am PT

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

BOOTCAMP partition not showing up on Mac OSX after resize

Hello, I have a iMac 27" late 2013 with OSX 10.9.5 and recently I resized my bootcamp partition and reformatted the OSX partition for a clean install. After the formatting, I cannot see or access the Bootcamp partition anymore. I really don't want to have Windows anymore, but I messed up thinking I would be able to recover my files. I tried following these answers but none of them worked for me. Now I can try to boot into Windows, but it gets into a disk error.


- I tried this solution without any success: http://nerdr.com/bootcamp-partition-lost-repairing-mac-partitions/

- I tried LonerT's solution on this post but it was hard to apply to my case: https://discussions.apple.com/thread/6574886


diskutil list /dev/disk0

/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 550.3 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data BOOTCAMP 249.0 GB disk0s4


Could anyone give me some hints? I tried following other solutions but I don't really grasp how partitioning works on the OS X.


Thanks anyhow 🙂

iMac, OS X Mavericks (10.9.5)

Posted on Apr 27, 2015 11:15 AM

Reply
27 replies

May 13, 2015 9:24 AM in response to pmcimini

Leave your Testdisk display and start a new Terminal Window. You need to use the following steps. You will need to installGPT Fdisk (aka Gdisk).


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. Notice the '+' sign in step 8.


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. 1076582400 - Start offset in bytes (start point for Bootcamp part)
  8. +876941305 - 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.

  1. Sudo gdisk /dev/disk0
  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.

BOOTCAMP partition not showing up on Mac OSX after resize

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