Prolog (non-essential)Today I had the fantastic idea to update my BIOS my perfectly running Hackintosh machine (DualBoot). I flashed the 7B85v1B BIOS of my B450 Carbon Pro with the new 7B85v1C2 Beta. While the installation of said BIOS went smooth, it reset (of course) all my BIOS settings and - to my suprise - seems to have whiped my UEFI NVRAM. I realised this when my machine wouldn't boot into Hackintosh (the first Boot option) anymore, but straight into Windows (the second Boot option). Naturally I went into the BIOS to change this, but there was no other Boot Option than Windows. So I paniced, did dumb stuff (resets) and wasted seven hours figuring out a solution for this not very grave problem. The solution is actually quite obvious and known, but it was hard to find a solution if you don't have a clue on what to search for and are not that experienced with the BIOS/UEFI. Also there doesn't seem to be a OC version of this solution, so I'm hoping that the search engines' crawlers will lead you to this guide. The ProblemThe BIOS does not show the Hackintosh Partition as a Boot Option after having worked and booted perfectly. Why this is happend does not matter (maybe a CMOS and/or NVRAM reset), but let's say it is because you updated your BIOS too and now your previously perfectly working Hackintosh isn't recoginsed as bootable partition anymore. This can also help you, if you actually want to update your BIOS. The SolutionTL;DR go the bottom of this post and/or visit the next link. This will focus on OpenCore, if you are here for a Clover machine, I'd refer you to this. All credit goes to that post as all the steps below are from there, but I'll be a little bit more specific here. So maybe even Clover People can follow the steps below, but apply the changes according to said post.
OR
1) You'll need your OpenCore stick (with OpenShell.efi on it) that you hopefully still have, like every good Hackinthosher. ;) If you don't have one anymore, you'll have to create one again. Make sure to include OpenShell.efi from EFI/OC/Tools/ of the OpenCorePkg, like here. You might need a second machine to do this. You might not have to do create a or alter your existing stick if you...
2) Connect the OC stick to your system. Cool, with this stick you can gain access to your system, if you want to backup or something. It is very unlikely that this procedure will damage anything, but safe is safe.
3) Boot into your BIOS (spam del or F11 or the key specific to your motherboard). I'm fairly sure that multiple settings are back to default, else you probably would not encounter said problem.
Optimise your BIOS settings for your Hackintosh: I disabled "Fast Boot" and "CSM" [UEFI instead] and enabled "EHCI/XHCI Hand-off" as well as "Above 4G decoding". (This might differ for you!) If you don't do this, your Hackintosh will proably not boot. Do other changes as you like. Save your changes and reboot. 4) Boot into your Hackintosh via the Stick and open Terminal:
Enter into Terminal
This will show you all the partitions available. Look for the Device Node of the one that houses your Hackintosh's EFI (not the OC stick, though!). Note this partition's Device Node in the form of disk_s_. For me it is disk0s1 (the same EFI partition that my Windows uses). (If you are not sure which partition it is, you can mount any partition with
This will return something like this: Now, keep the Partition UUID in mind for the next step. I is probably enough tomemorise a few digits of this number (e.g. ...96250), but maybe take a photo. 5) Get familiar with OpenCore Booting. (Just to know why you are doing this.) Reboot again into said Stick, but stop at the OC Boot Picker where your Hackinthosh Partition shows up! Choose OpenShell.efi with the arrows and enter. 6) Get familiar with the bcfg command; just to understand what you will be doing. To make the following easier, you might want to unplug the OpenCore Stick at this point. Now enter into the appeared shell:
This will show you all partitions again: Note, that you can always enter cls to clear the screen of all the information. You can go up and down with page up and down on your keyboard. You can navigate your command history with the up and down arrows. You are on the look for your EFI partition. In my case above it is the one ending on ...96250, so FS0. Memorise the FS__ of your EFI partition and enter
This will show you the current boot configuration with all the UEFI NVRAM entries. In my case this was empty, but it doesn't have to be in your case! If there are entries, look at the option number of the (furthest down) entry with the highes option number. Add 1 to this number and memorise it. If there is no entry, memorise 00. In the example below there is already one entry with the option number 00. The number to remeber here is 01. (Note, that there are ways to alter this sequence and even remove entries.) Now enter into the new line of shell:
where
So, my command is: Shell will confirm your command like above if everything went smooth. If there is a problem, check your command and try again. Note, that you must point the BIOS to BOOTx64.efi, not to OpenCore.efi in EFI/OC/! I did that mistake... Now, let's confirm your boot configuration with
This should show the previously shown boot options with your new one at the bootom (highest number). For me this is the one entry (Windows doesn't seem to need an entry here...): 7) Wonderful. With that you are finished. Reboot with the reboot button of your case. Disconnect the OC stick, if you haven't already. If you want you can now go into your BIOS. Your Hackintosh Partition should show up as boot option again. If you have multiple operating systems, you may want to change the boot order. In my MSI BIOS, this can be done in the UEFI Hard Disk Drive BBS Priorities. Here I can also disable unwanted boot entries: That's it. Hope this helped and solved your problem. Windows software solutionThere is a software solution to this problem (there are probably a few applications that can do this): https://www.easyuefi.com/index-us.html. The trial version is free and does a good job. This could be an easy solution for people on DualBoot. For everyone else, I believe the above is faster, especially if you have a OC stick at hand; I also consider the above more elegant... Nevertheless here are some screenshots of the application: Only the Windows EFI partition is present as a Boot Option (\"Hard Drive\" is an empty entry). There are probably other applications to do this, and probably some for Linux; maybe even one for Hacintosh? TL; DR The Solution
[link] [comments] |
Post a Comment