Windows won’t boot after installing Ubuntu on MacBook pro.

Hi! I got this very old problem that today I’ve been able to solve.

The error is this:

I have a MacBook Pro Retina (Late 2012). I installed MacOS, then Windows 10 (Build March 2019), then Ubuntu 19.04. When I boot Ubuntu, everything went fine. But when I boot Windows I just got a Purple screen.

To see what’s going, I edited /etc/default/grub and uncomment the line:

GRUB_TERMINAL=console

then, “sudo update-grub”

If you try to load again Windows 10, you can check this strange error in the screen, before everything is halted:

BLInitializeLibrary Failed 0xc00000bb

This windows errer went me bonker for almost 2 years. What I did wrong? I installed windows and ubuntu from several ways and no sucess. I though that the problem was in grub. I tried rEFInd instead of grub. Nothing!

Then, I realized what’s wrong.

The fact is MacBook computers are very special: They don’t have BIOS. And, If they don’t have bios, you don’t have legacy mode for disk partition. This means that you should go on EFI mode instead of MBR mode. Ubuntu, in other hand, tries to go MBR mode when they install their linux because it is more compatible with old PCs (and new PCs can handle it very well, using a Hybrid mode called… Hybrid GPT). That hybrid mode means that you’ll have a GPT disk layout, and then topped it a old MBR partition (for fooling old operating systems). But, windows does not like GPT Hybrid modes in MacBooks!

The solution is going through ubuntu, and do this steps

$ sudo gdisk -l /dev/sdX
(where X is the disk you installed your windows). Check that line:

Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present

Okey. We need to change that MBR to “protective”. Let’s do it:

$ sudo gdisk /dev/sdX
expert mode: letter “x”
protective mode: letter “n”
main menu: letter “m”
write: letter “w¨

Checking again
$ sudo gdisk -l /dev/sdX

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Now you can restart and load Windows 10 with no errors!

I shared this solution because it was hard for me to realize it, I hope you can profit from it.

Agregue un comentario

Su dirección de correo no se hará público. Los campos requeridos están marcados *