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 gone after partitioning

I've looked throughRe: Repairing Boot Camp after creating new partition and can't seem to yield anything when following many of the steps given. I have very little experience with Mac so perhaps I didn't follow some steps properly.


I have a Macbook Pro running 10.9.5 OS. I partitioned my drive using the Mac tool within OS and a Windows tool which I can't remember the name of on the MS side. I didn't notice any issues until I left Windows for OS and tried rebooting into Windows again. The Bootcamp option was gone:

User uploaded file

At this point I'd be happy just to get the data off the Windows side and will buy a dedicated work computer once complete. If someone could offer some guidance it would be appreciated


Here the result of the basic commands. Thanks in advance.


dons-mbp:~ donharward$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 1.0.1


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): 928B19BE-1A86-4B16-A275-7B8BD168BA34

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 115635173 sectors (55.1 GiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 236613727 112.6 GiB AF00 Untitled

3 236613728 237883263 619.9 MiB AB00 Recovery HD

4 353517568 490233855 65.2 GiB 0700 BOOTCAMP


Command (? for help):

iPhone 4S, iOS 5.0.1

Posted on Nov 10, 2015 7:57 AM

Reply
23 replies

Nov 10, 2015 8:24 AM in response to Loner T

I apologize.


dons-mbp:~ donharward$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

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

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: AF 25 127 15 - 1023 254 63 [ 409640 - 236204088] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 237883392 - 251428864] HPFS/QNX/AUX

dons-mbp:~ donharward$

Nov 10, 2015 9:14 AM in response to Loner T

Sure:


dons-mbp:~ donharward$ 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: error: bogus map

gpt show: unable to open device '/dev/disk0': Undefined error: 0

dons-mbp:~ donharward$

Nov 10, 2015 3:45 PM in response to donfromduvall

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

Bootcamp gone after partitioning

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