You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Bootcamp not booting after install rEFInd for dual boot

This is my 1st post on this site, hope I don't screw up.

I tried to install rEFInd boot manager and screwed up my Bootcamp so windows 8 will not boot. It does show up on boot holding the option key, but it does nothing but a black screen when selected. Same when selecting to boot from CD/DVD, black screen. I've read a few posts similar to this but he suggestions from "LonerT" did not fix my issue. I'm hoping LonerT or someone of his knowledge base is available to help me, I really don't want to reinstall window if it can be helped. :-)

Here's the information requested by LonerT in previous posts:

av-server-enet:~ joe$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Microsoft Basic Data BOOTCAMP 749.9 GB disk0s2

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_HFS Macintosh HD 150.4 GB disk1s2

3: Apple_Boot Recovery HD 650.0 MB disk1s3

4: Microsoft Basic Data KodiBuntu 598.9 GB disk1s4

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: ESD-ISO *4.7 GB disk2

av-server-enet:~ joe$ sudo fdisk -e /dev/disk0

Password:

fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

Enter 'help' for information


av-server-enet:~ joe$ diskutil cs list

No CoreStorage logical volume groups found


av-server-enet:~ joe$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Malformed MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: error: bogus map

gpt show: unable to open device '/dev/disk0': Undefined error: 0


av-server-enet:~ joe$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 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: 07 25 159 7 - 1023 254 63 [ 411648 - 951814144] HPFS/QNX/AUX

3: 07 1023 254 63 - 1023 254 63 [ 952225792 - 512917504] HPFS/QNX/AUX

*4: 07 0 0 0 - 0 0 0 [ 0 - 0] HPFS/QNX/AUX

Mac mini, OS X Mavericks (10.9.5), Dual 750g drives

Posted on Feb 4, 2016 8:55 AM

Reply
38 replies

Feb 4, 2016 9:12 AM in response to Wanbliwichaca

You do not have a Bootcamp entry in the MBR.


Please download GPT Fdisk from http://sourceforge.net/projects/gptfdisk/ and install it. Once GPT Fdisk is installed, run 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 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.

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


Here is sample Q&A for this section. Please notice the Press Enter/Return.


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): Press Enter/Return

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


Test 1 - Does Bootcamp Volume show up in Finder?

Test 2 - Can you see files in Bootcamp Volume?

Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

Feb 4, 2016 9:51 AM in response to Loner T

Ok, I did a few of your steps and received responses that differ from what you showed, so I stopped at a step 8 (looking through, I screwed up by not entering the default of '07', assuming it would use the default with no entry). Also, as an FYI, Before executing any of this, I passed all 4 tests indicated at the bottom of your post (but bootcamp will not boot).

So here's where I am and what I received back so far:


av-server-enet:~ joe$ Sudo gdisk /dev/rdisk0

Password:

GPT fdisk (gdisk) version 1.0.1


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/rdisk0: 1465149168 sectors, 698.6 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): BF567CEC-E795-4DBA-8121-23D231AED1D2

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1465149134

Partitions will be aligned on 8-sector boundaries

Total free space is 3757 sectors (1.8 MiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 411648 1465147391 698.4 GiB 0700 BOOTCAMP


Command (? for help): R


Recovery/transformation command (? for help): O


Disk size is 1465149168 sectors (698.6 GiB)

MBR disk identifier: 0xD97B4E06

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 411648 952225791 primary 0x07

3 952225792 1465143295 primary 0x07


Recovery/transformation command (? for help): H


WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

just hit the Enter key at the below prompt and your MBR partition table will

be untouched.


Type from one to three GPT partition numbers, separated by spaces, to be

added to the hybrid MBR, in sequence: 2 3 4

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 07):

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


GPT partition #3 does not exist or is too big; skipping.


GPT partition #4 does not exist or is too big; skipping.


Unused partition space(s) found. Use one to protect more partitions? (Y/N):

Feb 4, 2016 9:59 AM in response to Wanbliwichaca

You show two disks, disk0 only has Bootcamp, disk1 has KodiBuntu. To confirm, is Disk0 dedicated to Bootcamp? If yes,


1. Your MBR for disk0 has too many entries, since you have only 2 parts, disk0s1 and disk0s2. Were these created as part of some previous terminal work?

2. If Disk1 is not related to Bootcamp, we should ignore it.

Feb 4, 2016 10:11 AM in response to Loner T

First, THANK YOU for the quick responses and the help! I REALLY appreciate it! 🙂

1. Disk0 actually "had" another partition call "Backup", but it seems to have disappeared somehow. There was relatively important data on it, but that is secondary to getting Bootcamp to boot. But, for this discussion disk0 is a physically a separate disk and only has windows (Bootcamp) on it. As for the 2 partitions, one is shown as 'EFI' and the other as Bootcamp. I don't believe that I created any of them intentionally. The EFI one my have been created when I installed rEFInd in an attempt to have a better boot manager, which caused ALL these problems.

2. Yes, Disk1 is NOT related to bootcamp and works just fine.

Feb 4, 2016 10:35 AM in response to Loner T

av-server-enet:~ joe$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Malformed MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: error: bogus map

gpt show: unable to open device '/dev/disk0': Undefined error: 0

Feb 4, 2016 10:45 AM in response to Wanbliwichaca

Your GPT seems to be corrupt. The steps you will need to use are only valid for GPT 2


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

Feb 4, 2016 11:38 AM in response to Loner T

Ok, I rebooted to the "Windows Folder" on Bootcamp from the Startup Disk window, but received only a blank screen. I did a hard boot, held down the option key and the bootcamp drive showed up as a drive (not a folder), but wouldn't boot, same black screen. BTW, the same thing happens if I load up a DVD in the external DVD drive, it shows up, but will not boot to any cd or dvd disk. Not sure if these two are related, but they could be. Also, when using the Options key at boot I also see the 'EFI Drive, which provides an alternate Boot Manager when selected. This will boot to the MAC, but not to the Bootcamp or CD/DVD. Same behavior as the MAC Boot Manager. At this point I can't even reinstall Windows 8 without the CD/DVD drive. The Mac drive boots fine, any other suggestions?

Bootcamp not booting after install rEFInd for dual boot

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.