Bootcamp partition and MacOS Recovery bro…
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm running MBP early 2011 with El Capitan and Windows 10 (through bootcamp). I decided to create a partition (through disk utility in recovery mode) to act as a bridge between the two OS's. I didn't expect that making a partition would break both Windows and Recovery Mode partitions! Right now I can boot on mac, I also see the BOOTCAMP partition and see files in it. But it is not bootable, and doesn't show on Disk Utility while mac is running. All partitions show up on Internet Recovery Mode. Please also note that I deleted the additional partition I created (foolishly hoping things would fall back into place) but that didn't work. Then I thought if I'll have to go through the pain of fixing it, then let's have that "bridging partition" so I created a new one.
I followed this thread https://discussions.apple.com/thread/7279210?answerId=29103282022 But I'm stuck at steps 7 & 8 of using the gdisk tool. I don't know which value I should use as "sector size".
More details in the replies....
14 replies
Sign in or join Beachball Help to reply.
- 0
Loner T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks. I'm assuming that these numbers are not referring to the number of each partition, correct?
So now I have 3 questions:
1- Which sector dimensions should I use for steps 7&8 of gdisk tool?
2- How do I change the MBR?
Since your GPT5 is intact and shows files, we do not need to rebuild the GPT. This means you do not run the steps in Part 1 which require new values in steps 7 and 8. Also, the steps you are referring to reference GPT4 not GPT5, because you have the bridge partition.
In the second set of steps (Rebuild MBR section), the modifications are
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 10. Accept all other defaults that Gdisk offers. Please see thesample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.
- Sudo gdisk /dev/rdisk0
- P (Print list of parts)
- R (Recover)
- O (print current Hybrid MBR)
- H (chooses Hybrid)
- Partitions numbers to be hybridized: 3 4 5
- Y (Good for GRUB question)
- N (part 3 boot flag)
- N (part 4 boot flag)
- Y (part 5 boot flag make NTFS bootable partition)
- O (print current Hybrid MBR)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- Reboot
3- If I later decide to remove this bridge partition, will I need to repeat all this again?
Yes, otherwise you will lose data. You will fall back to the standard MBR of 2 3 4, instead of 3 4 5 in step 6.
- 0
Loner T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Your Local Recovery seems to be corrupted, but the output of the Testdisk 'p' command shows that your NTFS file system is intact.
1- Can I reformat the FAT 'bridge partition' in windows to ExFAT so that both mac and windows can use it with no issues?
Your issue is unrelated to format - FAT or exFAT. Your 2011 Mac needs an MBR to map the partitions that you see in the GPT.
MBRs do not allow more than 4 entries, by design, but you have GPT 1-5. If you was the bridged partition to work, we need create a non-standard MBR.
2- How do I fix my windows partition? Specifically, using the TestDisk and gdisk tools, what are the sector dimensions I should use?
We first need to decide how you want the bridge partition to be 'shown' to the Windows side.
3 - How do I fix my Mac OS Recovery partition? I have no idea how to approach this!
The Recovery partition needs to be rebuilt. It can only be rebuilt properly by re-installing the current version of macOS.
4 - Should I fix the recovery partition before the "bootcamp" windows partition?
Yes, that is the preferred method. I highly recommend a backup of your non-OS Windows files. It should still be visible from the macOS Finder.
Sorry that I'm posting too many replies on my own thread! But I'm trying to give all necessary information for the kind souls who can help me with this!!
Here is what I get when I try to enter recovery mode (pressing option at startup then choosing recovery partition):
https://discussions.apple.com/content/attachment/cf85cbd4-4f47-43bb-979f-fca2f4c11bc3
This appears for a couple of seconds then the computer restarts.
Does the computer boot into macOS properly?
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks a lot Loner T !
I finally got a chance to try your solution, and it worked !!
Here's a recap for whoever might find it useful:
I reinstalled MacOS first using a bootable flash drive to fix the recovery partition, disabled the system integrity protection, followed your steps (seeing the Q&A example from this post helped a lot El Capitan has deleted my bootcamp window… - Apple Community ), enabled system integrity protection, and now it works like before AND I have the bridging partition!
I reformatted the bridging partition to ExFAT on windows, now I can see it in both operating systems like I wanted.
BTW, my original aim to create the bridging partition was to put all cloud services folders there (e.g. dropbox, box.com, Drive...etc). So far I tried Box.com and it doesn't sync to ExFAT partitions... I obviously should've checked this before I started tinkering with stuff! Because the bridging partition is now way less useful! I'll keep it anyway as it might come in handy in the future!
Thanks again mate!
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
This is a screenshot from TestDisk:
The details of the candidates are the following (number indicates the line they appear on):
3- NTFS found using backup sector, blocksize=4096, 123 GB / 115 GiB
7- NTFS found using backup sector, blocksize=4096, 123 GB / 114 GiB
8- NTFS found using backup sector, blocksize=4096, 123 GB / 115 GiB
Note that lines 7 and 8 show " [BOOTCAMP].
For the recovery partition:
4- HFS+ blocksize=4096 + Backup, 650 MB / 619 MiB
6- HFS+ blocksize=4096, 650 MB / 619 MiB
10- HFS+ found using backup sector!, 650 MB / 619 MiB
For the new partition I'm surprised to find:
5- exFAT, blocksize=131072, 69 GB / 64 GiB
9- HFS blocksize=16777216, 70 GB / 66 GiB
I don't understand the presence of line 9 !!
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Also
Since recovery mode doesn't work I couldn't try the fix here hhttps://apple.stackexchange.com/questions/217527/mac-wont-boot-windows-partition-after-using-disk-utility
When I try it on Terminal on Mac (not recovery mode) I get "command not found" error.
Please help !!!
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
For the NTFS partitions, I clicked P (list files) for each. here are the results:
3- MS Data 1415595761 1657782000 242186240
Can't open filesystem. Filesystem seems damaged.
7-
9-
The two lists seem identical to me!
For the recovery partitions, I cannot list any files. I get the message: "Support for this filesystem hasn't been implemented."
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Sorry that I'm posting too many replies on my own thread! But I'm trying to give all necessary information for the kind souls who can help me with this!!
Here is what I get when I try to enter recovery mode (pressing option at startup then choosing recovery partition):
This appears for a couple of seconds then the computer restarts.
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
So I did some research on the idea of having an ExFAT partition as a bridge. And I'm afraid this actually would never work with Windows as it cannot read Mac formatted ExFAT partitions... Which I find absolutely ridiculous! So I just reformatted this 'bridging partition' to FAT. I hope I can later reformat it to ExFAT using Windows with no issues!
To clarify things, here are my questions:
1- Can I reformat the FAT 'bridge partition' in windows to ExFAT so that both mac and windows can use it with no issues?
2- How do I fix my windows partition? Specifically, using the TestDisk and gdisk tools, what are the sector dimensions I should use?
3- How do I fix my Mac OS Recovery partition? I have no idea how to approach this!
4- Should I fix the recovery partition before the "bootcamp" windows partition?
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Loner T,
Thanks for your response, I've been looking forward to it :D
Your issue is unrelated to format - FAT or exFAT. Your 2011 Mac needs an MBR to map the partitions that you see in the GPT.
MBRs do not allow more than 4 entries, by design, but you have GPT 1-5. If you was the bridged partition to work, we need create a non-standard MBR.
Yes I realize that. The reason I asked about FAT vs. ExFAT is because I still want to have this bridging partition. So I thought I should not proceed further with fixing things while it is an ExFAT partition that Windows can't read anyway. How complicated is the non-standard MBR idea? I'm willing to give it up if it's too much hassle.
We first need to decide how you want the bridge partition to be 'shown' to the Windows side.
Ideally, I want both MacOS and Windows to see it as an ExFAT partition that I can seamlessly use in both.
The Recovery partition needs to be rebuilt. It can only be rebuilt properly by re-installing the current version of macOS.
That's annoying!! But I assume that re-installing MacOS using Internet Recovery on my Macintosha partition would not result in any more problems? I.e. I do not want to reinstall windows. BTW, I have a Time Machine backup of the macOS side (only) that's 2 weeks old. Would restoring to that solve everything? i.e. does TimeMachine also restore the MBR mapping?
Yes, that is the preferred method. I highly recommend a backup of your non-OS Windows files. It should still be visible from the macOS Finder.
Yes I have a backup already of the files. However, what is more important to me is I don't want to reinstall and setup windows since that was a long process (had to install Windows 7 first with bootcamp, then upgrade to windows 10 from windows 7, then install several paid programs - I don't want to repeat/lose all that!) If this means I should give up the 'bridging' idea then I don't mind that!
Does the computer boot into macOS properly?
Yes. In fact macOS is faster than ever (booting and startup!) but that's irrelevant.
THANKS A LOT! I'll be awaiting your response :)
- 0
Loner T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
A standard Hybrid MBR maps a GPT using a 1:1 mapping. In your specific case, since you want the bridge partition to be visible to both OSes, but Recovery HD is not relevant to Windows, Recovery HD can be replaced with the bridged partition under macOS Sierra (or older). If we choose this method, it can cause issues if you choose to upgrade to High Sierra/Mojave, because it is a non-standard layout.
Under High Sierra/Mojave, the Recovery HD no longer exists as a separate partition, but becomes an APFS Volume, and your issue of exceeding four entries does not exist.
We can use either path to address your issue.
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for explaining.
However, I'm running El Capitan right now and I'm very satisfied with it (this laptop is 8 years old!). But since I have to reinstall macOS anyway to fix the recovery, should I just upgrade to Sierra? I'd rather stay with El Capitan if possible. This laptop had the discrete GPU issue (if you've heard of it) and I remember there was a risk in upgrading further than El Capitan but I don't remember the details and I might be wrong.
So, if I can proceed with El Capitan, please let me know how we should go about this. If I need to reinstall macOS to fix the Recovery first I'll do it tonight.
Thanks!
- 0
Astrolabium ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks. I'm assuming that these numbers are not referring to the number of each partition, correct?
So now I have 3 questions:
1- Which sector dimensions should I use for steps 7&8 of gdisk tool?
2- How do I change the MBR?
3- If I later decide to remove this bridge partition, will I need to repeat all this again?
- 0
Loner T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If you want to stay on the current macOS version, the MBR should have 3 4 5 as the list in Disk, when you create the MBR, instead of 2 3 4, which is standard.
- 0
Loner T ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Excellent. You can reformat the exFAT to FAT, if you temporarily save the exFAT content on an external disk. Be aware that FAT does not allow individual files larger than 4GB.