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.

Repairing Boot Camp after creating new partition

elyoe011 Nov 24, 2014 5:10 AM Re: Repairing Boot Camp after creating new partition

Re: Repairing Boot Camp after creating new partition in response to Loner T

Loner T,


I did this fix:


sudo fdisk -e /dev/disk0

p

setpid 4

07

flag 4

p

write

y


When I started Windows all I had was a black screen with a blinking underscore "_"


I went back to my MAC and try it again... but instead of "setpid 4" and "flag 4" I did "setpid 1" and "flag 1"


Now when I boot into Windows/BootCamp is saying "Missing Operating System" and OS X is not bootable.


Also Macintosh HD is gone from Disk Utility when I go into recovery mode and check Disk Utility...


I there any REMEDY for this? I have a lot of data that I need to recover...


ANY help is really appreciated!!!!!!!!

Mac Pro, OS X Yosemite (10.10.1)

Posted on Nov 24, 2014 6:21 AM

Reply
48 replies

Jul 3, 2015 2:51 PM in response to SuperDudeplayer

Can you post a new discussion and the output of the following Terminal commands?


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

Jul 3, 2015 3:05 PM in response to Loner T

i couldn't make a discussion since apple say's"you are not allowed to create or update this content", but i done what you told me to do and this is what i got


Oliviers-MacBook-Pro:~ oliviercontempre$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *500.1 GB disk0

1: Apple_HFS 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 200.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Windows_NTFS 150.0 GB disk0s4

Oliviers-MacBook-Pro:~ oliviercontempre$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *500.1 GB disk0

1: Apple_HFS 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 200.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Windows_NTFS 150.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *62.9 GB disk1

1: Windows_NTFS 62.8 GB disk1s1

Oliviers-MacBook-Pro:~ oliviercontempre$ diskutil cs list

No CoreStorage logical volume groups found

Oliviers-MacBook-Pro:~ oliviercontempre$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

gpt show: /dev/disk0: 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

Oliviers-MacBook-Pro:~ oliviercontempre$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: AF 1023 254 63 - 1023 254 63 [ 1 - 409639] HFS+

2: AF 1023 254 63 - 1023 254 63 [ 409640 - 390625000] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 683804672 - 292968448] HPFS/QNX/AUX


Is there anything wrong with this?

Repairing Boot Camp after creating new partition

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