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 Black Screen of Death after restore from DMG file + mbr rebuild

I have a 2012 Macbook Pro 15", and my hard drive died the other day. Thankfully I had a bitwise copy (non-compressed DMG file) of my Bootcamp partition from that morning via Disk Utility, and I had all of my Mac data backed up through Time Machine.

The new disk was installed with the factory default Mac OS. I was told to try and restore the Windows partition before I restored my Mac partition. I spent all weekend and the past two days trying to restore my Windows... I took it to the Mac store and they said this was "not in their skill set to assess".


First through Bootcamp I installed Windows 7 (I still have the original install disk!), then I restarted in the Recovery partition (that comes with Mac) to load the DMG file onto the Bootcamp partition. I had to load the DMG file into the source files on the left of Disk Utility by clicking it twice, and then selected all the files as the source image in the "Restore" tab of the Bootcamp drive, and the Bootcamp partition as the destination. Everything went smoothly as far as I can tell.

Here's where things go south. I restart, after the image is loaded onto the Bootcamp partition, into Bootcamp and I receive a "Missing Operating System" error.

  1. I then run through all of the bootrec.exe functions
  2. bootsec.exe /nt60 all /force (which resulted in "Bootcode was successfully updated on at least one volume.")
  3. I ran DISKPART to flag the partition as active and navigated to Partition 4 (Bootcamp) and the readback was
    "Partition 4 Type : 07 Hidden : No Active : Yes Offset in Bytes : 320108232704 Volume # - Volume 1 Ltr - C Label - BOOTCAMP Fs - NTFS Type - Partition Size - 165 GB Status - Healthy"
  4. chkdsk C: /f went well too if I remember correctly.

The only part that keeps my hopes up is that from Mac I can see all of my Windows files, it recognizes the Bootcamp partition, and everything is right in place. Any help is greatly appreciated! Also if anybody knows a better way to restore Bootcamp from a DMG please let me know! Thank you so much in advance for any feedback you may be able to provide. I can boot from my Windows installer and run any commands, and terminal is a thing

Posted on Jul 2, 2014 6:14 PM

Reply
16 replies

Jul 2, 2014 7:04 PM in response to Wheesty

Running "sudo gpt -r -v show /dev/disk0" gives the following


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

gpt show: /dev/disk0: Suspicious MBR at sector 0

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

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

625210632 760

625211392 346185728 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

971397120 5376015

976773135 32 Sec GPT table

976773167 1 Sec GPT header


Running "sudo fdisk /dev/disk0" gives


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 - 623531456] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 625211392 - 346185728] HPFS/QNX/AUX

Jul 3, 2014 1:36 PM in response to Wheesty

The GPT and MBR look correct, at least they are in sync with each other, the type code for Windows is correct as is the active bit being set. So this looks like bootloader failure. Missing Operating System is a message that's in the first 440 bytes of the MBR, which tells me that it's failing to jump to the correct location. I think you need to do a bootrec.exe /FixMbr and /FixBoot. That should get you farther. And then there's this:

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

Jul 3, 2014 2:14 PM in response to Wheesty

It's not the GPT, it's fine because OS X boots and it finds and mounts Windows read only. Windows on Macs boots in CSM-BIOS mode, therefore Windows will ignore GPT on boot drives, and only reference the MBR.


Because the drive has changed, the BCD almost certainly needs to be rebuilt, either with the bcd rebuild command or the multi-step manual process in the Microsoft support article I referenced.

Jul 3, 2014 3:01 PM in response to Wheesty

Get back to that command prompt, and at the X: do this

chkdsk c:

For cluster problems, answer yes. Then

chkdsk c: /f /v

This should be pretty chatty and note problems at each step. If the file system is clean, bootloaders were installed, and the BCD is rebuilt, then it ought to boot. This is just a hard drive change? It's the exact same computer? Because Windows doesn't tolerate being transferred to different CPUs very well.

Jul 15, 2014 1:43 PM in response to Christopher Murphy

Here is what rEFIt Partition Inspector said about it all


*** Report for internal hard disk ***


Current GPT partition table:

# Start LBA End LBA Type

1 40 409639 EFI System (FAT)

2 409640 623941095 Mac OS X HFS+

3 623941096 625210631 Mac OS X Boot

4 625211392 971397119 Basic Data


Current MBR partition table:

# A Start LBA End LBA Type

1 1 409639 ee EFI Protective

2 409640 623941095 af Mac OS X HFS+

3 623941096 625210631 ab Mac OS X Boot

4 * 625211392 971397119 07 NTFS/HPFS


MBR contents:

Boot Code: Unknown, but bootable


Partition at LBA 40:

Boot Code: None (Non-system disk message)

File System: FAT32

Listed in GPT as partition 1, type EFI System (FAT)


Partition at LBA 409640:

Boot Code: None

File System: HFS Extended (HFS+)

Listed in GPT as partition 2, type Mac OS X HFS+

Listed in MBR as partition 2, type af Mac OS X HFS+


Partition at LBA 623941096:

Boot Code: None

File System: HFS Extended (HFS+)

Listed in GPT as partition 3, type Mac OS X Boot

Listed in MBR as partition 3, type ab Mac OS X Boot


Partition at LBA 625211392:

Boot Code: Windows BOOTMGR (Vista)

File System: NTFS

Listed in GPT as partition 4, type Basic Data

Listed in MBR as partition 4, type 07 NTFS/HPFS, active


Bootcamp partition Black Screen of Death after restore from DMG file + mbr rebuild

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