BCufr

Q: Repairing Boot Camp after creating new partition

Hello,

 

I am running OS X 10.10.1 and Windows 8x64.

I added another partition to my mac so I could store extra data on it. When I tried to boot into windows I could no longer find it when I used the alt key. But I can still find the files. I have looked online and found this link to a problem that appears to be like mine.Repairing Boot Camp after creating new partition. I realize that I need to post the output of, 1. diskutil list, 2. sudo fdisk /dev/<DiskWhereYouHaveInstalledBootcamp>, and 3. sudo gpt -v -r show /dev/<DiskWhereYouHaveInstalledBootcamp> but I do not know how to find the last two. But I am attaching a image of my disk utility.Screen Shot 2015-03-09 at 11.20.22 AM.png Could someone please help?


Thank you

Posted on Mar 9, 2015 9:21 AM

Close

Q: Repairing Boot Camp after creating new partition

  • All replies
  • Helpful answers

Previous Page 2 of 3 last Next
  • by Loner T,

    Loner T Loner T Mar 9, 2015 2:02 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 9, 2015 2:02 PM in response to BCufr

    For Option 2 to work, you will need to download and install http://sourceforge.net/projects/gptfdisk/.

     

    If you have the standard configuration, and do not have a CoreStorage volume (Yosemite default is CS), each OS contains drivers to read the volumes on the other side. For example, BC drivers include a read-only HFS+ driver. On Yosemite with CS volumes, it does not work.

     

    ExFAT source may be a disk image, but the exFat when restored is a partition on your internal disk, which is causing problems because the Hybrid MBR no longer matches the GPT.

  • by BCufr,

    BCufr BCufr Mar 9, 2015 2:46 PM in response to Loner T
    Level 1 (0 points)
    Mar 9, 2015 2:46 PM in response to Loner T

    So why is option 2 better than option 3?

  • by Loner T,

    Loner T Loner T Mar 9, 2015 2:53 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 9, 2015 2:53 PM in response to BCufr

    Option 2 allows you keep the exFAT partition.

    Option 3 requires you to delete the exFAT partition.

  • by BCufr,

    BCufr BCufr Mar 9, 2015 5:28 PM in response to Loner T
    Level 1 (0 points)
    Mar 9, 2015 5:28 PM in response to Loner T

    What are the chances that option 3 will work. I do not have anything on the partition and would be ok removing it. But, if the chances are low then I will choose option 2.

  • by Loner T,

    Loner T Loner T Mar 9, 2015 5:50 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 9, 2015 5:50 PM in response to BCufr

    I suggest Option 2, which manipulates the MBR only, and does not touch any data on the disk. If there are no issues in executing the steps, you can use it easily. You must maintain regular backups in such a configuration to ensure future upgrades do not create complications, since it is difficult to predict Apple's software direction.

  • by BCufr,

    BCufr BCufr Mar 9, 2015 7:17 PM in response to Loner T
    Level 1 (0 points)
    Mar 9, 2015 7:17 PM in response to Loner T

    I downloaded it and installed it. Now the only problem is that I cannot find the file. Any ideas where it would be?

  • by Loner T,

    Loner T Loner T Mar 9, 2015 7:22 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 9, 2015 7:22 PM in response to BCufr

    You can also use man gdisk in Terminal, if necessary.

    which gdisk

    /usr/sbin/gdisk

     

    type gdisk

    gdisk is /usr/sbin/gdisk

     

    sudo gdisk /dev/disk0

    Password:

    GPT fdisk (gdisk) version 0.8.10

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    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: 500118192 sectors, 238.5 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 22749ACF-207D-458E-B255-5DF02C39DC2D

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 500118158

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1325 sectors (662.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       250801735   119.4 GiB   AF05  OSY-MBP13

       3       250801736       252071271   619.9 MiB   AB00  Recovery HD

       4       252071936       500117503   118.3 GiB   0700  BOOTCAMP

     

    Command (? for help): q

  • by BCufr,

    BCufr BCufr Mar 9, 2015 7:27 PM in response to Loner T
    Level 1 (0 points)
    Mar 9, 2015 7:27 PM in response to Loner T

    How doI know if I have standard configuration or core storage?

  • by Loner T,

    Loner T Loner T Mar 9, 2015 7:30 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 9, 2015 7:30 PM in response to BCufr

    The absence of any volumes when you run diskutil cs list indicates that you do not have CS.

  • by BCufr,

    BCufr BCufr Mar 9, 2015 7:34 PM in response to Loner T
    Level 1 (0 points)
    Mar 9, 2015 7:34 PM in response to Loner T

    I do not have cs is there anything special that I need to do besides what you typed in the example above?

  • by Loner T,

    Loner T Loner T Mar 9, 2015 9:03 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 9, 2015 9:03 PM in response to BCufr

    Please use the following steps.

     

    Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 6. Accept all other defaults that Gdisk offers.

    1. Sudo gdisk /dev/disk0
    2. P  (Print list of parts)
    3. R   (Recover)
    4. H (chooses Hybrid)
    5. Partitions numbers to be hybridized: 3 4 5
    6. Y (Good for GRUB question)
    7. N (part 3 boot flag)
    8. N (part 4 boot flag)
    9. Y  (part 5 boot flag make NTFS bootable partition)
    10. W  (Write the new MBR)
    11. Y    (Yes! write the new MBR)
    12. Reboot

     

    Here is an example of the Q&A in the set of commands. In your case the list will prompt for GPT #3, #4 and #5.

     

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): Press Enter/Return

    Set the bootable flag? (Y/N): N

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): Press Enter/Return

    Set the bootable flag? (Y/N): N

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): 07

    Set the bootable flag? (Y/N): Y

  • by BCufr,

    BCufr BCufr Mar 10, 2015 10:32 AM in response to Loner T
    Level 1 (0 points)
    Mar 10, 2015 10:32 AM in response to Loner T

    I followed your instructions like you said. However, I did not get the partitions in the order your image has. What should I do. And when I reboot do I boot directly into Windows or OSX?

    Screen Shot 2015-03-10 at 12.19.23 PM.png

  • by Loner T,

    Loner T Loner T Mar 10, 2015 10:51 AM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 10, 2015 10:51 AM in response to BCufr

    GPT4 = MBR3 = ExFat partition should have boot flag as 'n'.

    GPT5 = MBR4 = BOOTCAMP partition should have boot flag 'y'.

     

    Boot into OSX.

  • by BCufr,

    BCufr BCufr Mar 10, 2015 1:06 PM in response to Loner T
    Level 1 (0 points)
    Mar 10, 2015 1:06 PM in response to Loner T

    Thank you,

    That worked Windows is back to normal. Is there a way that I can save files from my Windows side to the other partition that I made? Or can I save Windows files to my OSX partition?

  • by Loner T,

    Loner T Loner T Mar 10, 2015 1:25 PM in response to BCufr
    Level 7 (24,596 points)
    Safari
    Mar 10, 2015 1:25 PM in response to BCufr

    GPT4/MBR3 will be assigned a drive letter from Windows side automatically. Do not change the drive letter, otherwise it will cause problems.

     

    If the drive is a exFAT partition, you can read/write to it from both OSX and Windows. The dump of rdisk0s4 you posted shows it to be exFAT.

     

    Screen+Shot+2015-03-09+at+12.58.19+PM.png

     

    If you convert it to NTFS, OSX can read (write requires third-party products like Tuxera, NTFS-3g, Paragon or MacDrive). Windows can read/write to either format.

     

    Please test with a small file.

     

    The current MBR will not allow you to see the OSX partition.

Previous Page 2 of 3 last Next