Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

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

Bootcamp missing after resizing manually

I know i have seen many threads, discussions about this kind of problem. Sorry if this is posted in here if its the wrong place I mean.

Well I did some reading and wasnt so sure about going further than what I've seen was successful for others (scared to damage or lose any files on my bootcamp).


I did resize it once, and it was successful, but this time it just suddenly turned to a disk0s4 and has an amount of the very first partition I had for the bootcamp (before resizing it successfully)


Thing is I'm not that confident without proper help or guide in repairing and any help would be greatly appreciated. I'm online this very moment and day I just want to wrap this up as I won't be able to sleep knowing that my sister's thesis report are in that bootcamp.


Here is so far what i have done.


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

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 976773167

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

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

394345320 386630808

780976128 195796992 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

976773120 15

976773135 32 Sec GPT table

976773167 1 Sec GPT header



Disk: /dev/disk0 geometry: 60801/255/63 [976773168 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 - 392666144] HFS+

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

4: 0C 1023 254 63 - 1023 254 63 [ 780976128 - 195796992] Win95 FAT32L

MacBook Pro, Mac OS X (10.7.5)

Posted on May 3, 2014 12:08 AM

Reply
87 replies

May 3, 2014 4:49 AM in response to KaiKaiser

KaiKaiser wrote:



Disk: /dev/disk0 geometry: 60801/255/63 [976773168 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 - 392666144] HFS+

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

4: 0C 1023 254 63 - 1023 254 63 [ 780976128 - 195796992] Win95 FAT32L


Can you use fdisk -e and change Partition number 4 to type x'07' and flag it as bootable?


There are quite a few examples of how to do it or if you are comfortable with using Unix man pages, then you can execute man fdisk in a Terminal window on your Mac and use setpid and flag commands. You will also have to use write and reboot, if required, after you make changes using fdisk.


You may still get Missing OS errors, but these can be fixed using Windows Recovery Console.

May 3, 2014 5:27 AM in response to Loner T

Loner T wrote:

Can you use fdisk -e and change Partition number 4 to type x'07' and flag it as bootable?


There are quite a few examples of how to do it or if you are comfortable with using Unix man pages, then you can execute man fdisk in a Terminal window on your Mac and use setpid and flag commands. You will also have to use write and reboot, if required, after you make changes using fdisk.


You may still get Missing OS errors, but these can be fixed using Windows Recovery Console.


Could you be a bit more specific with what to do Loner T? I'm not that well known with ios.


Did you mean for me to type those into the terminal as commands?

May 3, 2014 6:28 AM in response to KaiKaiser

Please look here...


https://discussions.apple.com/thread/5087650?answerId=22243032022#22243032022


In Mac OS X Terminal, do the following


sudo fdisk -e /dev/disk0

print

setpid 4

07

flag

print

write


Now reboot. Check if holding the ALT/Option key will show the Bootcamp partition. If it does, MAC OS X is now happy, but you may have to still use Windows Recovery Console.

May 3, 2014 7:31 AM in response to KaiKaiser

It depends on how much "damage" was done during resizing. It is also possible to re-install Windows (without losing your personal data), but I would recommend the Windows Recovery console first and you may need to use fixmbr or similar tools.


http://windows.microsoft.com/en-us/windows7/products/features/startup-repair


http://support.microsoft.com/kb/927392

May 3, 2014 10:53 AM in response to Loner T

Yeah i saw that, something about the boot disc sector is corrupted i think. And its hard disk drive was actually x: instead of the natural c:. I tried getting to c: drive but told me that it needs to be reformatted so i didnt do it.


i also noticed this


Disk: /dev/disk0geometry: 60801/255/63 [976773168 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 - 392666144] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 780976128 - 195796992] HPFS/QNX/AUX


the one with the bold letters



EDITED: made me wonder why the startup repair couldnt find the windows 7 OS told myself yeah, thats whats been missing and trying to repair it wont be that easy.



May 3, 2014 1:17 PM in response to KaiKaiser

I would suggest that you backup the Bootcamp partition, even if Windows cannot be booted. MAC OS X can read Windows partition (it should show up mounted in Finder) and you can see files within the partition. This backup of an unbootable Windows is much better than no backup at all.


Once you have this backup, you should try and reinstall (including reformatting the C: drive). Because of the resizing work done on the disk, Windows is unable to find NTFS information to allow it's use.


On the issue of '07' vs '0C', you can use the fdisk -e command to change it back to 0C, but that will not address

the disk corruption issue. Diskutil list and gpt will still show the disk as Microsoft Basic Data because they use the GPT rather than MBR. The partition types in GPT should be the same.


There is another utility called Testdisk, if you want to spend time looking for deleted partition information.

Bootcamp missing after resizing manually

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