shiftynick

Q: Ran 'repair disk' from disk utility, now unable to boot into win8 partition

I made a mistake apparently and ran repair disk on my hd, and now i am unable to boot back into my bootcamp partition.

 

I've included the output from fdisk and gpt that seem to appear in most related posts.

 

Any help would be appreciated!

 

output from:

sudo fdisk /dev/disk0

 

Disk: /dev/disk0          geometry: 30515/255/63 [490234752 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 -  253148464] HFS+       

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

4: 0C 1023 254  63 - 1023 254  63 [ 294922240 -  195311616] Win95 FAT32L

 

 

 

output from:

sudo gpt -r -vv show disk0

 

gpt show: disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 490234751

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

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

  254827640   40094600        

  294922240  195311616      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  490233856        863        

  490234719         32         Sec GPT table

  490234751          1         Sec GPT header

MacBook Pro with Retina display, OS X Mavericks (10.9.1)

Posted on Feb 24, 2014 10:22 AM

Close

Q: Ran 'repair disk' from disk utility, now unable to boot into win8 partition

  • All replies
  • Helpful answers

first Previous Page 3 of 3
  • by shiftynick,

    shiftynick shiftynick Feb 25, 2014 9:25 AM in response to Number88
    Level 1 (0 points)
    Feb 25, 2014 9:25 AM in response to Number88

    Actually I had been booting back and forth between OS X/Win8 for a while after the resize and after upgrading to 10.9.1. The problem didn't start until I tried to run Parallels using the Bootcamp partition for my VM (which also used to work) and it gave me an error and suggested I run Repair Disk. That's when it all went to crap.

     

    I'll see what I can find with testdisk.

     

    And I actually was getting "Use one to protect more partitions?", even after answering Y to "Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N):"

     


  • by Number88,

    Number88 Number88 Feb 25, 2014 10:45 AM in response to Christopher Murphy
    Level 3 (750 points)
    Feb 25, 2014 10:45 AM in response to Christopher Murphy

    Thanks for the clarification Christopher Murphy

     

    Would the "load MBR and build fresh GPT from it" option in gdisk be of any help in these situations?

  • by Christopher Murphy,Helpful

    Christopher Murphy Christopher Murphy Feb 25, 2014 11:19 AM in response to shiftynick
    Level 3 (555 points)
    Feb 25, 2014 11:19 AM in response to shiftynick

    And I actually was getting "Use one to protect more partitions?", even after answering Y to "Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N):"

     

     

    This doesn't make sense. There are only 4 primary partition entries possible in the MBR. If you answer Y to this question, MBR 1 is used. If you choose to put GPT partitions 2 3 4 into the MBR, all four are used and then you don't get the Use one to protect more partitions? question for two reasons: There's no more room for them in the MBR, and you only have 4 partitions in the GPT anyway. I'd be curious what happens if you answer yes to the protect more partitions question, what it thinks it's going to add and where it puts them. It could be a bug or it could indicate other problems.

     

    If you cancel out of gdisk with control-c, and then relaunch it, do you get any error messages? If you issue the v command (for verify) from the main menu, what do you get?

     

    Since a. you've posted your MBR and GPT to the forum and hence effectively have a backup, and b. your MBR is the same as your GPT and therefore you don't even need a backup of the MBR; I'd consider creating a protective MBR and overwriting the GPT. Use gdisk's expert menu, x, and then create a new protective mbr, n, and then write out this GPT, w, and reboot before starting with testdisk.

     

    If there are any weird GPT/MBR issues then you'll might get superfluous results from testdisk that aren't actually useful. Later, you'll create a new hybrid MBR anyway, so there's no harm in removing it now in favor of the standard protective MBR.

  • by shiftynick,

    shiftynick shiftynick Feb 25, 2014 11:43 AM in response to Christopher Murphy
    Level 1 (0 points)
    Feb 25, 2014 11:43 AM in response to Christopher Murphy

    If you look at the original MBR there was a gap between the 3rd partition sector end and 4th partitions sector start. The size of this gap matched the changes i made with Mini Tool to the MBR. So that's what I think is causing the

    Use one to protect more partitions? problems.

     

    Right now I'm using testdisk to at least backup all of my data on the bootcamp partition, if I decide to start fresh.

     

    I'll take a look at your latest suggestions too.

     


  • by shiftynick,

    shiftynick shiftynick Feb 25, 2014 11:55 AM in response to shiftynick
    Level 1 (0 points)
    Feb 25, 2014 11:55 AM in response to shiftynick

    FYI

     

    Command (? for help): v

     

    No problems found. 45207813 free sectors (21.6 GiB) available in 3

    segments, the largest of which is 45206944 (21.6 GiB) in size.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Feb 25, 2014 12:16 PM in response to shiftynick
    Level 3 (555 points)
    Feb 25, 2014 12:16 PM in response to shiftynick

    The gap is not a partition, it's unallocated space.

  • by shiftynick,

    shiftynick shiftynick Feb 25, 2014 4:29 PM in response to Christopher Murphy
    Level 1 (0 points)
    Feb 25, 2014 4:29 PM in response to Christopher Murphy

    As an update, I was able to get the correct start/end sectors using testdisk and now have the option to boot the win8 partition. It doesn't have the 'missing operating system' message and actually tries to boot. However i get a winload.exe error message and it basically says i need to use some sort of recovery.

     

    I am trying to figure out how to do this now. I created a bootable win8 installation USB, but have had no luck with it.

  • by Number88,Helpful

    Number88 Number88 Feb 25, 2014 5:25 PM in response to shiftynick
    Level 3 (750 points)
    Feb 25, 2014 5:25 PM in response to shiftynick

    Did you create a new hybrid MBR with gdisk? If so

     

    Boot from the Windows 8 USB and at the install now screen do a shift + F10 which should bring a command prompt window up.

    In that window try entering these one at a time

     

    bootrec /fixmbr  - should report ran ok

    bootrec /fixboot - same as above

    bootrec /rebuildbcd - this should scan your drive for a Windows installation. It should find 1 and then ask you whether you would like to add it to the menu - answer Y

     

    Reboot and see if Windows now boots.

  • by shiftynick,

    shiftynick shiftynick Feb 25, 2014 5:42 PM in response to Number88
    Level 1 (0 points)
    Feb 25, 2014 5:42 PM in response to Number88

    Ok, all good! The last steps did it. Thank you both!

  • by Number88,

    Number88 Number88 Feb 25, 2014 5:46 PM in response to shiftynick
    Level 3 (750 points)
    Feb 25, 2014 5:46 PM in response to shiftynick

    Glad to hear that. A long road but perhaps worth it 

    Good job.

     

    So, presumably the unused space that was there has now gone? So all back to normal then.

first Previous Page 3 of 3