Scotch_Brawth

Q: Repairing Boot Camp after creating new partition

I'm running OS X 10.8 and Windows 7 x64 Pro.

 

After properly setting up Boot Camp to dual-boot Windows on my Mac mini, I decided to test whether or not it was true that creating another partition (a data partition for OS X) would interfere with Boot Camp.  Wikipedia claims it does interfere but without citing a source, whilst the Boot Camp documentation itself only specifies that the disk must be a single partition _prior_ to setup - there's no mention of whether the disk must be _kept_ that way afterwards.

 

I opened Disk Utility, reduced the size of my OS X parition from 420GB to 80GB, and created a new partition in the unallocated space.  Here's how it looks now:

/___sbsstatic___/migration-images/190/19047693-1.png

When I attempted to proceed with the process, I did receive a warning that doing this (and I quote), "may" cause problems with Boot Camp.  Seeing as it was inconclusive, I thought I'd give it a shot - nothing ventured…

 

Of course, it borked Boot Camp, otherwise I wouldn't be posting here.  Whilst OS X boots just fine, the Boot Camp partition now no longer shows up in the Startup Manager, though it does in the Startup Disk prefPane.  If I do attempt to boot into Boot Camp, I receive the following message on a black screen:

No bootable device --- insert boot disk and press any key

The advice given to someone who had this same problem was, "fix your damaged Boot Camp volume."  But I'm at a loss as to how to do that.

 

So, anyone know how to proceed now so that I can keep my partitions as is, whilst fully restoring normal Boot Camp functionality?

Mac mini (Mid 2011), Mac OS X (10.7.4)

Posted on Jul 26, 2012 11:28 PM

Close

Q: Repairing Boot Camp after creating new partition

  • All replies
  • Helpful answers

first Previous Page 88 of 102 last Next
  • by Gmouse1,

    Gmouse1 Gmouse1 Jun 15, 2014 6:18 AM in response to Gmouse1
    Level 1 (16 points)
    Mac OS X
    Jun 15, 2014 6:18 AM in response to Gmouse1

    tracy-imac:~ Tracy$ sudo gpt -r -vv show disk0

    gpt show: disk0: mediasize=1000555581440; sectorsize=512; blocks=1954210120

    gpt show: disk0: PMBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 1954210119

           start        size  index  contents

               0           1         PMBR

               1           1         Pri GPT header

               2          32         Pri GPT table

              34           6       

              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

          409640  1703124992      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

      1704804168         184       

      1704804352   249405440      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      1954209792         295       

      1954210087          32         Sec GPT table

      1954210119           1         Sec GPT header

  • by Gmouse1,

    Gmouse1 Gmouse1 Jun 15, 2014 6:20 AM in response to Gmouse1
    Level 1 (16 points)
    Mac OS X
    Jun 15, 2014 6:20 AM in response to Gmouse1

     

    tracy-imac:~ Tracy$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *1.0 TB     disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            872.0 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data BOOTCAMP                127.7 GB   disk0s4

     

    Soooo...question is, should I go ahead and use the sudo gdisk utility to repair things, or...something else?

     

    And...if there is some kind of issue with using Boot Camp when you have external drives attached, what can be done to get around that?

     

    Thanks!

  • by Iyassou,

    Iyassou Iyassou Jun 15, 2014 8:30 AM in response to Christopher Murphy
    Level 1 (0 points)
    Jun 15, 2014 8:30 AM in response to Christopher Murphy

    Hi!

    I have the same problem and I followed your instructions, but when I press "w", Terminal shows the following message:

    "

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

    Do you want to proceed? (Y/N):

    "

     

    What does this mean and what should I answer?

     

    Many thanks!

  • by Loner T,

    Loner T Loner T Jun 15, 2014 9:54 AM in response to Puding666
    Level 7 (24,770 points)
    Safari
    Jun 15, 2014 9:54 AM in response to Puding666

    Can you start a new thread and post a reference to that thread here? Bootconfig data can be rebuilt. Please see http://technet.microsoft.com/en-us/library/cc721886(v=ws.10).aspx

  • by Loner T,

    Loner T Loner T Jun 15, 2014 9:56 AM in response to Gmouse1
    Level 7 (24,770 points)
    Safari
    Jun 15, 2014 9:56 AM in response to Gmouse1

    Please start a new thread and post a reference here. Can you include the output of sudo fdisk /dev/rdisk0 in addition to what you have already posted?

  • by Loner T,

    Loner T Loner T Jun 15, 2014 9:58 AM in response to Iyassou
    Level 7 (24,770 points)
    Safari
    Jun 15, 2014 9:58 AM in response to Iyassou

    Please start a new thread and post a reference here. Can you also indicate if you are using fdisk or gdisk and what options did you choose to get to this point?

  • by Puding666,

    Puding666 Puding666 Jun 15, 2014 10:24 AM in response to Loner T
    Level 1 (0 points)
    Jun 15, 2014 10:24 AM in response to Loner T

    Here we go: https://discussions.apple.com/thread/6387799

     

    I tried to read this link, but have no success, don't know how to proceed.

  • by Iyassou,

    Iyassou Iyassou Jun 15, 2014 10:25 AM in response to Loner T
    Level 1 (0 points)
    Jun 15, 2014 10:25 AM in response to Loner T
  • by Gmouse1,

    Gmouse1 Gmouse1 Jun 15, 2014 1:16 PM in response to Iyassou
    Level 1 (16 points)
    Mac OS X
    Jun 15, 2014 1:16 PM in response to Iyassou

    My new one, as well (sorry for all the fragmented posts, but, something in the middle (blue) dump from SUDO would NOT post, so, had to do a screenshot.  https://discussions.apple.com/thread/6388236

  • by jpschmid,

    jpschmid jpschmid Jun 26, 2014 11:31 AM in response to Christopher Murphy
    Level 1 (0 points)
    Jun 26, 2014 11:31 AM in response to Christopher Murphy

    Christopher,

    Long story Short, 3.4 Ghz i7 iMac 27 with fusion drive 1Tb running 10.8.5 build 12F45

    have had bootcamp installed working without a hitch, using parallels 8 an Win 7 extreme...

    Upgraded to Parallels 9 (this is when everything went to pot…)

    Somehow (following the directions of Parallels tech support)I lost my Bootcamp drive. I was also instructed to repartition drive to osx only… which I did (I think this was my first big mistake [other than trying to upgrade])

    I have since repaired the disk and now am trying to reinstall bootcamp.  The new partition is formatted as fat 32 so it will not allow windows to install.

    Using the terminal commands, my bootcamp partition shows up on disk1 and not on disk0.  is it still possible to fix this and reinstall windows 7  or is a full restore and reformatting of the entire drive necessary?

     

    Although I am usually reluctant in the use of terminal commands, I do feel comfortable following your directions and attempting a repair if it is possible.

    It just seemed that a modification of the commands may be in order due to the different disk location (am I right?)

     

    Below are the dumps from the terminals commands for your review.

     

    Thanks in advance for any assistance you can provide.

    Josef

     

    sejms-iMac:~ sejms$ sudo gpt -r -vv show disk0

    gpt show: disk0: mediasize=121332826112; sectorsize=512; blocks=236978176

    gpt show: disk0: PMBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 236978175

          start       size  index  contents

              0          1         PMBR

              1          1         Pri GPT header

              2         32         Pri GPT table

               34          6        

            40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

         409640  236306352      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

      236715992     262144      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

    236978136          7        

      236978143         32         Sec GPT table

      236978175          1         Sec GPT header

     

    sejms-iMac:~ sejms$ sudo fdisk /dev/disk0

    Disk: /dev/disk0 geometry: 14751/255/63 [236978176 sectors]

    Signature: 0xAA55

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

    ------------------------------------------------------------------------

    1: EE 1023 254  63 - 1023 254  63 [         1 -  236978175] <Unknown ID>

    2: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

    3: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

    4: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

     

    sejms-iMac:~ sejms$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *121.3 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:          Apple_CoreStorage                         121.0 GB   disk0s2

       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *1.0 TB     disk1

       1:                        EFI                         209.7 MB   disk1s1

       2:          Apple_CoreStorage                         899.3 GB   disk1s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3

       4:       Microsoft Basic Data BOOTCAMP                100.0 GB   disk1s5

    /dev/disk2

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                  Apple_HFS SEJMS iMac HD          *1.0 TB     disk2

    /dev/disk3

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     FDisk_partition_scheme                        *7.8 GB     disk3

       1:                 DOS_FAT_32 WININSTALL              7.8 GB     disk3s1

    sejms-iMac:~ sejms$

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jun 26, 2014 11:48 AM in response to jpschmid
    Level 3 (555 points)
    Jun 26, 2014 11:48 AM in response to jpschmid

    You should do all commands on /dev/disk1 instead of disk0. disk0 is the SSD, disk1 is the HDD. And disk2 is a logical drive, the "Fusion drive" made from physical devices disk0s2 and disk1s2. So redo the commands with disk1:

    sudo gpt -r -v show /dev/disk1

    sudo fdisk /dev/disk1

     

  • by jpschmid,

    jpschmid jpschmid Jun 26, 2014 12:46 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jun 26, 2014 12:46 PM in response to Christopher Murphy

    here they are….

     

    sejms-iMac:~ sejms$ sudo gpt -r -v show /dev/disk1

    gpt show: /dev/disk1: mediasize=1000204886016; sectorsize=512; blocks=1953525168

    gpt show: /dev/disk1: 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  1756533456      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

      1758212632        1512        

      1758214144   195309568      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      1953523712        1423        

      1953525135          32         Sec GPT table

      1953525167           1         Sec GPT header


    sejms-iMac:~ sejms$ sudo fdisk /dev/disk1

    Disk: /dev/disk1 geometry: 121601/255/63 [1953525168 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: AC 1023 254  63 - 1023 254  63 [    409640 - 1756533456] <Unknown ID>

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

    4: 0B 1023 254  63 - 1023 254  63 [1758214144 -  195309568] Win95 FAT-32

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Jun 26, 2014 1:12 PM in response to jpschmid
    Level 3 (555 points)
    Jun 26, 2014 1:12 PM in response to jpschmid

    sudo dd if=/dev/rdisk1s5 count=4 2>/dev/null | hexdump -C

     

    This will spit out the contents of the first 4 sectors of the Bootcamp volume and hopefully make clear whether it is in fact FAT32 or NTFS. If you've formatted it, then whatever was there before is likely toast, but Test Disk might get it back if you want to go that route. Otherwise you just point to that BOOTCAMP named volume in the Windows 7 installer and tell it to format it and it will, then it'll let you install Windows.

  • by Loner T,

    Loner T Loner T Jun 26, 2014 1:12 PM in response to jpschmid
    Level 7 (24,770 points)
    Safari
    Jun 26, 2014 1:12 PM in response to jpschmid

    The Windows installer will allow you to convert this FAT32 volume to NTFS. There should be an Advanced option.

     

    https://help.apple.com/bootcamp/mac/5.0/help/#apd5a4fe62a-dda5-4a8f-aca4-371bc72 6d861

  • by Matt2400,

    Matt2400 Matt2400 Jun 30, 2014 11:45 PM in response to Christopher Murphy
    Level 1 (0 points)
    Jun 30, 2014 11:45 PM in response to Christopher Murphy

    Hi Christopher,

     

    You seem like the expert in this situation.  I've been searching for possible solutions to my issue.  I recently updated my Mac to Mavericks 10.9.3.  I can no longer access Bootcamp.  I upgraded to Parallels 9 and that did nothing.  I just get the blue screen that brings me back to the boot options (safe mode, last configuration, etc). 

     

    I had Windows XP running on my bootcamp partition.  Apple says it doesn't support XP, but I've heard others able to do so.  When going to Disk Utility, I see the following.  So it appears that there's still data on that partition, but I can't access it.  When booting and holding ALT, I can go to that partition, but the same blue screen happens. 

     

    Screen Shot 2014-06-30 at 11.40.29 PM.png

    Screen Shot 2014-06-30 at 11.40.48 PM.png

    I would appreciate your guidance in fixing the situation.  I'm reading through this forum and just don't know what applies to my situation.  I figured I should reach out to you versus start something that isn't correct and end up in a worst situation.  I can follow instructions and more than willing to do what it takes to fix this.  I have important accounting files on that partition. 

     

    Thank you,

     

    Matt

first Previous Page 88 of 102 last Next