Wheesty

Q: 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:18 PM

Close

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

  • All replies
  • Helpful answers

Page 1 Next
  • by Wheesty,

    Wheesty Wheesty Jul 2, 2014 7:04 PM in response to Wheesty
    Level 1 (0 points)
    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

  • by Christopher Murphy,Helpful

    Christopher Murphy Christopher Murphy Jul 3, 2014 1:36 PM in response to Wheesty
    Level 3 (555 points)
    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

  • by Wheesty,

    Wheesty Wheesty Jul 3, 2014 1:51 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 3, 2014 1:51 PM in response to Christopher Murphy

    Thank you so much for the response! I ran bootrec.exe /FixMbr as well as bootrec.exe /FixBoot before, and it got rid of my "Missing Operating System" error and got me to the point where the boot is just a blinking cursor. Do you think rEFIt would do any good? I feel like it may be a GUID Partition Table issue

  • by Wheesty,

    Wheesty Wheesty Jul 3, 2014 2:01 PM in response to Wheesty
    Level 1 (0 points)
    Jul 3, 2014 2:01 PM in response to Wheesty

    I'm going to try to export the BCD backup and then rebuild it, I haven't tried that yet. I'll keep you updated!

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jul 3, 2014 2:14 PM in response to Wheesty
    Level 3 (555 points)
    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.

  • by Wheesty,

    Wheesty Wheesty Jul 3, 2014 2:25 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 3, 2014 2:25 PM in response to Christopher Murphy

    http://imgur.com/5xslWYd

    Here is the manual rebuild process results. I've had the line "Total identified Windows installations: 0" read out 1 before.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jul 3, 2014 2:49 PM in response to Wheesty
    Level 3 (555 points)
    Jul 3, 2014 2:49 PM in response to Wheesty

    I just tried it in a VM and I get the same thing yet it still boots. But the thing is in your case, you got an error message for the ren command and I did not. So I'm not sure why that failed, "duplicate file name exist or file cannot be found" seems mutually incompatible. Are there two or are there zero?

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jul 3, 2014 3:01 PM in response to Wheesty
    Level 3 (555 points)
    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.

  • by Wheesty,

    Wheesty Wheesty Jul 3, 2014 3:09 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 3, 2014 3:09 PM in response to Christopher Murphy

    This may be the issue. http://imgur.com/ACqBFeK Should I rid of one?

     

    I will go run the chkdsk commands for you! Same exact computer, just a different hard drive.

  • by Wheesty,

    Wheesty Wheesty Jul 3, 2014 3:25 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 3, 2014 3:25 PM in response to Christopher Murphy

    20140703_181815.jpg

  • by Wheesty,

    Wheesty Wheesty Jul 3, 2014 5:13 PM in response to Wheesty
    Level 1 (0 points)
    Jul 3, 2014 5:13 PM in response to Wheesty

    I'm pretty sure this is the issue. I have two bcd backup files!

  • by Wheesty,

    Wheesty Wheesty Jul 15, 2014 1:43 PM in response to Christopher Murphy
    Level 1 (0 points)
    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

     

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jul 16, 2014 8:16 AM in response to Wheesty
    Level 3 (555 points)
    Jul 16, 2014 8:16 AM in response to Wheesty

    I don't see any new information here. Also, FYI, rEFIt is no longer maintained. The rEFInd fork should be used instead, and is maintained by Rod Smith, author of gdisk (a.k.a. GPT fdisk).

  • by Wheesty,

    Wheesty Wheesty Jul 16, 2014 1:05 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 16, 2014 1:05 PM in response to Christopher Murphy

    Ah, good to know, thank you! So is the issue that the GPT partition 4 reads as Basic Data and not NTFS? Or is it that there are multiple BCD_backup files?

Page 1 Next