Skip navigation

Repairing Boot Camp after creating new partition

176179 Views 1,252 Replies Latest reply: Apr 5, 2014 6:57 AM by BobTheFisherman RSS
  • Christopher Murphy Level 2 Level 2 (470 points)

    The problem with this layout, other than being fragile and unsupported, is that now the Recovery HD partition isn't listed in the MBR at all which means it's not protected. Windows and anything non-GPT aware will see this 1GB as free space and fair game to overwrite. Recovery HD is non-critical so long as you have no need for Filevault 2.

  • ava_Jack Calculating status...

    Hi Chris,

     

    I've been trying to understand the contents from page 48...still quite confused since it's not adaptable to everyone's different case.

    I have one bootcamp (windows) partition and it's gone after upgrade to mavericks, now cheked with testdisk, the windows partition seems there, but when browsing the folder, only few folders with vert few contents.

    Just did the gdisk with such result....what should I do now?

     

    Screen Shot 2013-10-27 at 16.24.07.png

    Screen Shot 2013-10-27 at 16.44.05.png

  • ava_Jack Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 27, 2013 1:55 AM (in response to tomd007)

    Hi Tom,

     

    Thanks for your reply. Let me clear my current situation:

    I have one 1TB disk divided into 250GB for Mac and 750GB for windows bootcamp.

    Just run the command you give to me with following screen shot detail:

     

    Give me some advise for the next operation, thank you.

    Actually for me, most important is to find this windows partition files, so make it back and get read only could be enough....

    Screen Shot 2013-10-27 at 16.44.05.png

  • ava_Jack Level 1 Level 1 (0 points)

    Hi,

     

    Is it possible you give more detail that you did?

  • ava_Jack Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 27, 2013 6:53 AM (in response to G. Tran)

    Hi Tran,

     

    Would like to follow your instructions to restore my bootcamp partition.

    For the 2nd point:

    Used TestDisk to locate the partition by trying to list the files for the partition.  If it lists the files of your root drive then that should be the right one.  Copy the starting and ending values

    what if I can see the exact match partition, but when press P to list the files, I can only see folder "users", my profile is in this users folder with only several files available.

     

    What can I do......

  • Trojita Calculating status...

    So this is the fix for fixing Bootcamp after the Mavericks update broke the partition?

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 27, 2013 11:52 AM (in response to ava_Jack)

    Based on your existing partition map you should already be able to get readonly access to your files in the OS X Finder. If you can't, you have either chosen the wrong start/end sectors from testdisk, or you have a totally different problem.

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 27, 2013 11:56 AM (in response to Trojita)

    There isn't one fix. The simplest fix is to completely erase the disk as a single partition and reinstall, and then restore your data from backups. That's what's recommended.

  • ava_Jack Level 1 Level 1 (0 points)

    Hi Chris,

     

    since I lost the bootcamp partition, no further operation was taken yet.....

    According to my screen shot, I should have my bootcamp partition with read only access, is that should appear after I use Gdisk to delete the old partition, and create a new partition with Tom's manual?

    If yes, then I will try it and report back. The only thing I'm worrying is when I find the partition with testdisk, trying to browse the files inside, the list was not full. I can only see users folder which included all windows users profile, not windows system folder, no program files folder......and inside this users folder, only several strange files available......

  • frankywashere Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 28, 2013 1:36 AM (in response to ava_Jack)

    you might want to try looking at a different partition table and see if there's more files in that one.

  • ava_Jack Level 1 Level 1 (0 points)

    within the quick search result from the testdisk, only this partition match the exact size of my bootcamp.

    And other partition if I press P to view files, the answer is something like this partition cannot be recoverred......

    20131027_163249_resized.jpg

  • Juuso Ylamaki Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 28, 2013 7:29 AM (in response to ava_Jack)

    After few hours my analyzing progress looks like this:

     

     

     

    testdisk

    Disk /dev/rdisk0 - 320 GB / 298 GiB - 625142448 sectors (RO)

    Analyse cylinder 388005888/625142447: 62%

     

     

    check_FAT: Unusual media descriptor (0xf0!=0xf8)

    Warning: number of heads/cylinder mismatches 16 (FAT) != 1 (HD)

    Warning: number of sectors per track mismatches 32 (FAT) != 1 (HD)

      EFI System                    40     409639     409600 [EFI]

      Mac HFS                   409640  353822935  353413296

      Mac HFS                353822936  355092479    1269544

    check_FAT: Bad number of sectors per cluster

      Mac HFS                357851788  366240397    8388610 [    D^A]

    Warning: number of heads/cylinder mismatches 16 (NTFS) != 1 (HD)

    Warning: number of sectors per track mismatches 2 (NTFS) != 1 (HD)

      MS Data                370774411  370780584       6174

    Warning: number of heads/cylinder mismatches 16 (NTFS) != 1 (HD)

    Warning: number of sectors per track mismatches 2 (NTFS) != 1 (HD)

      MS Data                370780584  370786757       6174 [Boot]

     

    After all those warnings, do I have any point to continue analyzing the disk? Or are those warnings normal?
    It takes about 1-2h per every 5%..
    I don't have any important files on the bootcamp partition, so I'm only doing this to avoid installing again all those softwares, drivers tweaks etc. But if that already tells there's more problems coming, I could just make a fresh Windows installation.

    Windows is originally installed via Bootcamp Assistant and the partition is untouched what comes to the size. So I haven't resized it in any way. I lost the option to boot to Windows after updating to 10.9 from 10.6.8.

     


    This is what fdisk says:

    fdisk

    Disk: /dev/rdisk0          geometry: 38913/255/63 [625142448 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 -  353413296] HFS+       

    3: AB 1023 254  63 - 1023 254  63 [ 353822936 -    1269544] Darwin Boot

    4: 0C 1023 254  63 - 1023 254  63 [ 355092480 -  270049280] Win95 FAT32L

     

     

    gpt show: /dev/rdisk0: mediasize=320072933376; sectorsize=512; blocks=625142448

    gpt show: /dev/rdisk0: 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  353413296      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      353822936    1269544      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      355092480  270049280      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      625141760        655        

      625142415         32         Sec GPT table

      625142447          1         Sec GPT header

  • Christopher Murphy Level 2 Level 2 (470 points)
    Currently Being Moderated
    Oct 28, 2013 10:14 AM (in response to mrmcb)

    I don't have a suggestion if you've done the scan of the disk, which does take a long time on a 900GB drive, and all of your options seem to have few or broken files. I'd say that something else happened that caused some file system damage in the interim but I don't know the whole sequence of things you did or tried so it's speculation on my part.

  • Christopher Murphy Level 2 Level 2 (470 points)

    Wow. You have a totally different problem. This is a bad bad bug from Apple. So what I think happened, is that from 10.6 upgrade, it's creating a Recovery HD for you. 10.6 doesn't have a Recovery HD, that's new since 10.7. When the installer created Recovery HD, it had to change the hybrid MBR, and when it did that, it changed the type code from 07 to 0C, and removed the boot flag. So you do not need to be in testdisk.

     

    All you need to do is use fdisk to change the type code (using setpid) to 07 and then make it bootable (using the flag command). You could also use gdisk to create a  new hybrid MBR as described for other people. This is quite fast, unlike testdisk.

  • Juuso Ylamaki Level 1 Level 1 (0 points)

    This would be boring without new kind of problems..

     

    Anyway, I did as you said. I'm not so familiar with these tools, but by reading this thread and using google I think I understood the meaning of every command.

     

    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>

    2: AF   25 127  15 - 1023 254  63 [    409640 -  353413296] HFS+       

    3: AB 1023 254  63 - 1023 254  63 [ 353822936 -    1269544] Darwin Boot

    *4: 07 1023 254  63 - 1023 254  63 [ 355092480 -  270049280] HPFS/QNX/AUX

     

     

    ID should be correct now and the partition is bootable. With gdisk I made hybrid MBR and added partitions 2, 3 and 4. (Only for partition 4 I set bootable flag. Again). Bootcamp partition now shows up when booting, but says "Missing operating system". Partition neither shows up in OS X.

     

    Did I miss something? I used gdisk like Tom on page 50 and remembered to "write" at the end.

1 ... 53 54 55 56 57 ... 84 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (21)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.