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 101 of 102 last Next
  • by arweed,

    arweed arweed Nov 15, 2015 4:14 AM in response to Scotch_Brawth
    Level 1 (0 points)
    Nov 15, 2015 4:14 AM in response to Scotch_Brawth

    Thank you both Scoth_Brawth and Christopher Murphy for this post, it saved my day and i learned a bit about efi and gpt.

     

    By the way i ran in the problem when resizing the Mac partition, afterwards i could't boot into Windows anymore. But with your solution i could manage to fix the problem.

     

    Thx again.

     

    Cheers,

    arweed

  • by JoeWilk,

    JoeWilk JoeWilk Nov 15, 2015 4:17 PM in response to Christopher Murphy
    Level 1 (0 points)
    Nov 15, 2015 4:17 PM in response to Christopher Murphy

    This works, but because I'm using El Captian I had to disable Rootless whatever:

     

    https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

  • by JoeWilk,

    JoeWilk JoeWilk Nov 15, 2015 4:19 PM in response to Christopher Murphy
    Level 1 (0 points)
    Nov 15, 2015 4:19 PM in response to Christopher Murphy

    This still works -- thank you! I had to disable Rootless whatever since I'm using El Capitan: https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

  • by cmcqueen,

    cmcqueen cmcqueen Nov 18, 2015 3:46 PM in response to Christopher Murphy
    Level 1 (0 points)
    Nov 18, 2015 3:46 PM in response to Christopher Murphy

    I'm having a similar problem with BOOTCAMP not showing up in the boot menu. I posted in this newer forum but would appreciate any help! https://discussions.apple.com/thread/7331535?start=15&tstart=0

  • by jeroengast,

    jeroengast jeroengast Nov 29, 2015 3:05 PM in response to Christopher Murphy
    Level 1 (0 points)
    Nov 29, 2015 3:05 PM in response to Christopher Murphy

    Hey there.

     

    I've used your tutorial, and some similar and identical ones, while having csrutil disable in the Recovery Mode (because I couldn't write the MBR at the end without disabling csrutil) but to no avail. I've made sure to do it correctly. My BOOTCAMP has id 5.

     

    Some more crucial info:

    • Operating systeem: Windows 10 (just upgraded from 8.1)
    • The error: "Your PC/Device needs to be repaired."
    • When it happened: I wanted to resize my Mac partition to make extra space for my Windows partition, knowing that it might break (because I looked it up beforehand). I resized the partition (making a new 46 GB unnamed partition), rebooted into Windows and it worked! I went to partitions and saw a 46 GB hard drive of which I thought that was the newly created free space, but I wasn't really sure that it was (because I'm used to seeing Unallocated Space as soon as I shrink a hard drive) so I booted back into Mac. Next, I reformatted the unnamed partition to MS-DOS because I thought, without reason, that it would transform it into unallocated space (I know that was stupid). I rebooted and now it says "Your PC/Device needs to be repaired." every time I boot. Booting into SAFE MODE doesn't work either. No options Windows gives me work.
    • What I've tried: All tutorials I could find. The ones where I use that GPT extension in Terminal, and ones that don't need it, but nothing worked. I still see the error.

     

    I really want this to work because I need Windows for school, and quickly. It would really be a drag and take a long time if I have to reinstall Windows and update all over again.

    I have lots of experience with Windows (and a bit with partitions and EFI, too) but very little with Mac (this MacBook is my first Mac ever.

     

    I'm running Mac OS X El Capitan. I got this MacBook Pro 2015 13.3 inch yesterday.

     

    Quick question:Would going to an Apple Certified reseller work? Could they possibly fix it in-store? Or would I have to pay or get it sent to Apple repair centers?

     

    I'm willing to try anything to get this working without reinstalling (either Windows or Mac).

    Thanks a bunch in advance!

     

    Greeting from Holland,

    Jeroen M.

     

    <Personal Information Edited By Host>

     

    EDIT: Currently deleting the unnamed partition and resizing the Mac partition again. Will let you know how things go.

  • by Loner T,

    Loner T Loner T Nov 29, 2015 4:20 PM in response to jeroengast
    Level 7 (24,869 points)
    Safari
    Nov 29, 2015 4:20 PM in response to jeroengast

    Can you post a new discussion and include the output of the following Terminal commands?

     

    diskutil list

    diskutil cs list

    sudo gpt -vv -r show /dev/disk0

    sudo fdisk /dev/disk0

     

    The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

  • by jeroengast,

    jeroengast jeroengast Nov 29, 2015 7:27 PM in response to Loner T
    Level 1 (0 points)
    Nov 29, 2015 7:27 PM in response to Loner T

    Hey Loner,

     

    Thanks a lot for responding so quickly. Fortunately, I got Windows working again, and it doesn't stop there.

     

    So a lot has happened in about 3.5 hours. I've been working on this the entire time.

     

    TL;DR: Use Winclone to backup your BOOTCAMP into an image, run Boot Camp Assistant, wipe BOOTCAMP partition, rerun Boot Camp Assistant, make new Boot Camp, reinstall Windows until you have installed the Boot Camp drivers again, and then, in Mac, restore the image to the fresh BOOTCAMP partition.

    It worked for me.

    Now running my original Windows 10 in a 100GB partition instead of 30GB.

     

    Here's the full story:

     

    So my intention was enlarging the Windows partition by shrinking my Mac partition and then assigning that unallocated space to my Windows partition.

    When shrinking my partition in Mac and returning to Windows I saw the aforementioned unallocated space turned out to be a Healthy partition in HFS format.

    I jumped back to Mac to make it an MS-DOS partition.

    Windows gave me the "Your PC/Device needs to be repaired." error.

    In Mac I repartitioned my SSD once again so that only BOOTCAMP and Mac were on it. No extra space or partitions.

    Windows worked! But I still hadn't solved my problem of gaining some extra space on that partition.

    I googled and "reddited" and figured that the best way was to backup the BOOTCAMP's data (through Winclone), revert back to one Mac partition in the Boot Camp Assistant (since that is the only thing that program can do aside from making a partition) and then repartitioning with more storage to begin with, open the Windows installer, format BOOTCAMP into NTFS and then restore the backup from Winclone within Mac.

    I grabbed a copy of Winclone and made a backup. I partitioned into all Mac and repartitioned into Mac and 100GB Windows, booted into Windows, reformatted the 100GB BOOTCAMP volume in NTFS, went back to Mac and restored the Winclone backup!

     

    It failed.

     

    If I tried to boot into Windows while holding alt/⌥ at boot and select "Windows" it just booted into Mac instead.

    I tried to restore the MBR (which, to my intuition, wasn't really broke at all) with the code from this thread and others. Didn't work as well.

     

    I proceeded to do the whole thing over again, but this time not stop at the setup, but rather install Windows up until I installed the Boot Camp drivers and rebooted. I thought that my Mac would, at that point, be completely "in sync with" or "have knowledge" of the BOOTCAMP partition again, including the boot record. Can't explain it well, but it felt right.

     

    It worked! FINALLY! I installed Windows, made an account, installed the included Boot Camp drivers, rebooted (because Boot Camp told me so) into Windows, rebooted again into Mac, restored the Winclone backup, rebooted into Windows (fingers crossed) and it worked! 100GB partition with my old Windows 10 installation.

     

    I still want to thank you for your support and help.

    Hope I could help someone with this information. I'll post this intel, together with the fix, on Apple Forums and reddit, and I'll make a YouTube video, to reach as many people facing problems when trying to resize their BOOTCAMP partition on El Capitan.

     

    Thanks again!

    Jeroen M.

  • by Sanjaya83,

    Sanjaya83 Sanjaya83 Dec 1, 2015 4:55 PM in response to Scotch_Brawth
    Level 1 (1 points)
    Dec 1, 2015 4:55 PM in response to Scotch_Brawth

    HI Christopher,

    I tried to resize my bootcamp and mac spaces recently

    I cannot boot into windows now. Get an error about missing MBR

    Do you think you could help me here?

     

    Sanjayas-MacBook-Pro:~ sanjaya83$ sudo fdisk /dev/disk0

    Disk: /dev/disk0 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 -  349609376] HFS+       

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

    4: 0C 1023 254  63 - 1023 254  63 [ 351289344 -  273852416] Win95 FAT32L

    Sanjayas-MacBook-Pro:~ sanjaya83$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 1.0.1

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    NOTE: Write test failed with error number 1. It will be impossible to save

    changes to this disk's partition table!

    You may need to deactivate System Integrity Protection to use this program. See

    https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

    for more information.

     

    Partition table scan:

      MBR: hybrid

      BSD: not present

      APM: not present

      GPT: present

     

    Found valid GPT with hybrid MBR; using GPT.

     

    Command (? for help): p

    Disk /dev/disk0: 625142448 sectors, 298.1 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 55739070-E42E-4414-947D-F1AAD2EB65D0

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 625142414

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1453 sectors (726.5 KiB)

     

    Number  Start (sector)    End (sector)  Size       Code  Name

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       350019015   166.7 GiB   AF00  Customer

       3       350019016       351288551   619.9 MiB   AB00  Recovery HD

       4       351289344       625141759   130.6 GiB   0700  BOOTCAMP

     

    Command (? for help):

  • by Loner T,

    Loner T Loner T Dec 1, 2015 4:58 PM in response to Sanjaya83
    Level 7 (24,869 points)
    Safari
    Dec 1, 2015 4:58 PM in response to Sanjaya83

    Please start a new discussion and post the details again on that discussion.

  • by Sanjaya83,

    Sanjaya83 Sanjaya83 Dec 1, 2015 4:58 PM in response to Christopher Murphy
    Level 1 (1 points)
    Dec 1, 2015 4:58 PM in response to Christopher Murphy

    HI Christopher,

    I tried to resize my bootcamp and mac spaces recently

    I cannot boot into windows now. Get an error about missing MBR

    Do you think you could help me here?

     

    Sanjayas-MacBook-Pro:~ sanjaya83$ sudo fdisk /dev/disk0

    Disk: /dev/disk0 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 -  349609376] HFS+      

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

    4: 0C 1023 254  63 - 1023 254  63 [ 351289344 -  273852416] Win95 FAT32L

    Sanjayas-MacBook-Pro:~ sanjaya83$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 1.0.1

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    NOTE: Write test failed with error number 1. It will be impossible to save

    changes to this disk's partition table!

    You may need to deactivate System Integrity Protection to use this program. See

    https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

    for more information.

     

    Partition table scan:

      MBR: hybrid

      BSD: not present

      APM: not present

      GPT: present

     

    Found valid GPT with hybrid MBR; using GPT.

     

    Command (? for help): p

    Disk /dev/disk0: 625142448 sectors, 298.1 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 55739070-E42E-4414-947D-F1AAD2EB65D0

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 625142414

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1453 sectors (726.5 KiB)

     

    Number  Start (sector)    End (sector)  Size       Code  Name

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       350019015   166.7 GiB   AF00  Customer

       3       350019016       351288551   619.9 MiB   AB00  Recovery HD

       4       351289344       625141759   130.6 GiB   0700  BOOTCAMP

     

    Command (? for help):

  • by jeroengast,

    jeroengast jeroengast Dec 1, 2015 5:05 PM in response to Sanjaya83
    Level 1 (0 points)
    Dec 1, 2015 5:05 PM in response to Sanjaya83

    EDIT: Ignore this. Look at Loner T's latest post. I don't know how Apple Discussions work.

     

    Be sure to link us to the URL of the new discussion so we can help you over there.

  • by Loner T,

    Loner T Loner T Dec 1, 2015 5:01 PM in response to Sanjaya83
    Level 7 (24,869 points)
    Safari
    Dec 1, 2015 5:01 PM in response to Sanjaya83

    Do not post on this discussion. Start a new one. See Find answers and ask new questions to start a new discussion.

  • by Sanjaya83,

    Sanjaya83 Sanjaya83 Dec 1, 2015 5:13 PM in response to jeroengast
    Level 1 (1 points)
    Dec 1, 2015 5:13 PM in response to jeroengast
  • by SN225,

    SN225 SN225 Feb 11, 2016 3:07 PM in response to Christopher Murphy
    Level 1 (0 points)
    Feb 11, 2016 3:07 PM in response to Christopher Murphy

    Hi Chris,

     

    I have been following your solution. As you said to report back. at this point. I didnt see the star at 07.  Can you please help me and let me what I need to do from here to login into windows.

     

    Command (? for help): p

    Disk /dev/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 501C1C66-4C7A-480F-BF6A-A1C30B5CD766

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 263013 sectors (128.4 MiB)

     

    Number  Start (sector)    End (sector)  Size       Code  Name

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       329296167   156.8 GiB   AF05  Customer

       3       329296168       330565703   619.9 MiB   AB00  Recovery HD

       4       330565704       390365183   28.5 GiB    AF00  Untitled

       5       390627328       490233855   47.5 GiB    0700  BOOTCAMP


    You should have two entries. One type EE, one 07, with the 07 entry marked with * under Boot. If you don't, report back. If you do, write out the update partition information, and hope  a power failure doesn't occur for the next few seconds...

  • by ImminentTechnologies,

    ImminentTechnologies ImminentTechnologies Feb 28, 2016 10:49 PM in response to jeroengast
    Level 1 (14 points)
    Feb 28, 2016 10:49 PM in response to jeroengast

    Many thanks to Jeroen for suggesting the WinClone route, worked like a charm!! I was lucky I could still access my bootcamp with Parallels but was getting, "Your PC/Device needs to be repaired" when trying to boot directly to Windows after attempting to increase the Windows partition w/ disk utility (seems to be a common problem, you'd think they'd build in a warning of some kind!)

     

    My Recovery drive is still screwed up, but it'll have to wait another day.

    I am noticing a discrepancy in Windows reporting the size of the drive after the restore:

    mismatch.PNG

     

    My original drive size was ~250 GB and I increased it to 350 GB. "This PC" reports the old size of the drive but the disk manager shows the new and old sizes, Jeroen, did you have this issue?

first Previous Page 101 of 102 last Next