ashmathcom

Q: Repairing Boot Camp after creating new partition

Thank you Loner T!


I would be grateful if you could help me.

I have the same issue (i have yosemite 10.10. i partitioned and resized my macintosh hd. and i lost bootcamp start up)

I can see it in my drives. But i lost as startup disk and when i hold down option key there is no windows 7

 

here are my screen shots:

http://imgur.com/OVdwU9F

http://imgur.com/gtlOHxO

http://imgur.com/yQ1q38W

http://imgur.com/jYfcs74

http://imgur.com/Y57upHJ

MacBook Pro, OS X Yosemite (10.10)

Posted on Oct 24, 2014 11:45 AM

Close

Q: Repairing Boot Camp after creating new partition

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Oct 24, 2014 11:48 AM in response to ashmathcom
    Level 7 (24,307 points)
    Safari
    Oct 24, 2014 11:48 AM in response to ashmathcom

    Can I ask the hosts to change the title to be something different than the original thread you came from to avoid confusion?

  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 11:49 AM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 11:49 AM in response to Loner T

    Sure!

  • by Loner T,

    Loner T Loner T Oct 24, 2014 11:55 AM in response to ashmathcom
    Level 7 (24,307 points)
    Safari
    Oct 24, 2014 11:55 AM in response to ashmathcom

    Typically, BC support 4 partitions, EFI, OSX, Recovery HD and Bootcamp. You have GPT#5 and GPT#6. This is inherently fragile and software updates can cause problems.

     

    The NTFS header looks good. If you want to keep it this way, I suggest using Gdisk to create a new Hybrid MBR with 5 and 6, which will put 1,2,3,4 into a single MBR entry. It can break, so you may have to repeat this process.

     

    Do you need steps for the Hybrid MBR?

  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 12:02 PM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 12:02 PM in response to Loner T

    So if I remove the NTFS, the problem will not occur again?

     

    I prefer to fix this fragility to support 4 partitions! So, I don't have to repeat this process, do I?

  • by Loner T,Helpful

    Loner T Loner T Oct 24, 2014 12:10 PM in response to ashmathcom
    Level 7 (24,307 points)
    Safari
    Oct 24, 2014 12:10 PM in response to ashmathcom

    You will need to remove partitions 5 and 6, and recreate the MBR, because your MBR output in the first screen shot shows a single protective entry for the whole disk. You are going to need Gdisk. How were these partitions created? Disk Utility? Your http://imgur.com/jYfcs74 image shows Multimedia and NTFS which need to be deleted, and tis http://imgur.com/yQ1q38W needs to be rechecked.

     

    If it looks clean, then a new Hybrid MBR via GDisk is needed.

  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 12:21 PM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 12:21 PM in response to Loner T

    Yes I used disk utility. I deleted multimedia and rtfs.

     

    this is updated:

    http://imgur.com/yw44cW5

     

    what is next step? I don't know steps.

  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 12:27 PM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 12:27 PM in response to Loner T
  • by Loner T,Helpful

    Loner T Loner T Oct 24, 2014 12:39 PM in response to ashmathcom
    Level 7 (24,307 points)
    Safari
    Oct 24, 2014 12:39 PM in response to ashmathcom

    1. The dd command now becomes (after partitions were deleted) as sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C.

    2. The MBR needs to be updated to be 07 and flagged via fdisk.

    3. The literal "<DiskWhereYouHaveInstalledBootcamp>" is disk0s4 or rdisk0s4 as appropriate.

  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 12:41 PM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 12:41 PM in response to Loner T

    sorry. i need more help!

     

    i should type sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C in terminal?

     

    and for step 2, how should i update mbr to be 7 and flag via disk?

  • by Loner T,Solvedanswer

    Loner T Loner T Oct 24, 2014 12:43 PM in response to ashmathcom
    Level 7 (24,307 points)
    Safari
    Oct 24, 2014 12:43 PM in response to ashmathcom

    Yes the dd via OSX Terminal and then

     

    sudo fdisk -e /dev/disk0

    setpid 4

    07

    flag 4

    p

    w

    y

  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 12:59 PM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 12:59 PM in response to Loner T

    thank-you!  it is solved.

     

    how should i gain knowledge about coding in terminal and fixing problems? could you please introduce me some reference?

  • by Loner T,

    Loner T Loner T Oct 24, 2014 1:06 PM in response to ashmathcom
    Level 7 (24,307 points)
    Safari
    Oct 24, 2014 1:06 PM in response to ashmathcom
  • by ashmathcom,

    ashmathcom ashmathcom Oct 24, 2014 1:11 PM in response to Loner T
    Level 1 (0 points)
    Oct 24, 2014 1:11 PM in response to Loner T

    thanks for this suggestions

  • by Jimmy_R,

    Jimmy_R Jimmy_R Oct 27, 2014 3:59 PM in response to Loner T
    Level 1 (0 points)
    Oct 27, 2014 3:59 PM in response to Loner T

    Loner T

     

    I have a similar issue based on the original thread that this was from.  I have tried running these commands and I do not get a working resolution.  Are there any other commands that might fix the partition?  I can not use bootcamp or remove the partition that created when bootcamp crashed.  I posted a question in the iMac community, but I think this would be a better place to ask since I did not get much response other than 1 person who said your hosed, start over.

     

    Here is the base command and results that I ran.  Not sure if that is enough to suggest where to go next.

     

    Thanks

    Jimmy

     

    sudo gpt -r -vv show disk 0

     

    I got the following response.

     

    gpt show: disk0: mediasize=3000592982016; sectorsize=512; blocks=5860533168

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Malformed MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 5860533167

           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  3281567344      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

      3283246520         584        

      3283247104  1011455992      4  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

      4294703096      262144      5  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      4294965240  1565305744      6  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

      5860270984      262144      7  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      5860533128           7        

      5860533135          32         Sec GPT table

      5860533167           1         Sec GPT header

Page 1 Next