Jump to content
Egonaut

How to fix “Error Loading Kernel Cache (0x1)” on existing 10.13 installations.

4 posts in this topic

Recommended Posts

BEFORE TRYING THIS, DO THE OBVIOUS SOLUTION! REPLACE YOUR OPTIOFIX EFI FILE WITH VERSION 2, OR WITH VERSION 1.

ONLY PROCEED IF DOING THIS DOES NOT WORK.

 

 

Alright, so my first attempt at helping people that isn’t in a private discord. Hope this goes well.

 

No one has posted this as a direct solution to someone asking for help with this error, so I thought I’d be the one to share it.



 

I encountered this problem when I rebooted after making some minor changes and discovered I couldn’t boot back into the disk. All over the web, people keep suggesting clover-side tweaks and replacing kexts, and while they may solve the problem for some, absolutely nothing was working for me (and a few others), even when booting with no kernel cache at all.

 

No boot flags worked, no .efi files would solve it. 

Holding spacebar in clover, no change.

 

So, the solution ended up being system side, and not clover related. You needed to delete your prelinked kernel from the HDD and rebuild it. 

To do this, you just have to be able to get to your recovery drive or use an install USB that’ll give you access to the disk. Clover got me into my recovery drive just fine, another hint that it wasn’t related to clover - but regardless, whatever works for you.

After you’re in a terminal, type the following commands.



Df -h

This will list all of your volumes, make sure you’re targeting your installation drive.



 

If your volume has a space in the name, such as "Mac OS HS", you'll need to format it as such: "Mac\ OS\ HS" - This is simply how the command line associates spaces.

touch /Volumes/[NAME HERE]/System/Library/Extensions && kextcache -u /Volumes/[NAME HERE]



In my case, I replaced [NAME HERE] with my installation drive - "macOS\ 10.13".

 

Chances are, this command will give you the error "Child process [directory] has exited due to signal 10"

 

The line immediately after that will give you another bit of extremely important information that you need to take note of.

 

"Error 107 rebuilding /System/Library/PrelinkedKernels/prelinkedkernel"

 

That directory is what we're going to be targeting to fix our system.

So, time to nuke it.

rm -rf [location to /prelinkedkernel/prelinkedkernel]

MAKE SURE YOU DOUBLE CHECK IT IS EXACTLY WHAT WAS OUTPUT WHEN YOU TRIED THE COMMAND ABOVE.



IMPORTANT: YOU MAY RECEIVE A READ ONLY ERROR! DO NOT PANIC.

I've done this on multiple machines and it really is hit or miss whether or not this will appear. Regardless, the solution is simple. The following code tag only applies to if you encounter this issue.

Fsck

mount -uw /

RE-ENTER THE FOLLOWING COMMAND! You need a more specific location now.

rm -rf /Volumes/[NAME]/System/Library/PrelinkedKernels/prelinkedkernel

touch /Volumes/[NAME]/System/Library/Extensions && kextcache -u /Volumes/[Name]

Now you should be receiving "/Volumes/[NAME] locked; waiting for lock."
This is a good thing. Wait a few seconds, you'll receive "Lock acquired; proceeding."
After that, you'll be back at -bash-3.2#, and it will appear as if nothing happened.
Again, this is expected.

For people who didn't have to use the Fsck command, simply type the following and receive the usual "Waiting for lock; Lock received" response.

touch /Volumes/[NAMEHERE]/System/Library/Extensions && kextcache -u /Volumes/[NAME HERE]

Now, use your up arrow on the keyboard to re-enter this command. If nothing happens, you're golden. If it detects kexts with invalid signatures, that's still okay - but for future reference, don't go the ##### approach/philosophy of installing kexts to your system drive. Take this as a warning.

 

Go ahead and reboot, and start your installation just like normal. You'll now get past the 0x1 error. Congratulations!

 

If you get hung up anywhere, go back to clover and add “-f” to the boot flags, then boot again.

 

You should make it back to your desktop with no damage whatsoever.

 Like nothing ever happened!

Now, as for what causes this, I honestly have no idea. All I know is when you have a working system, make some kind of modication/tweak/installation that HS doesn't agree with, you can possibly get this error on some systems. It's rare, but exists, and unfortunately this is the only way I've been able to get past it. It's not too much work, so don't be too intimidated. You'll have your system back in no time.

 

If you'd like some personalized 1-on-1 support, read my signature and contact me that way. I'm more than happy to help, or at the very least take some time out of my day to analyze your issue and give my thoughts.  Thanks for reading my first guide, I'm hoping to publish some more fixes to make High Sierra as painless as possible for every user.

Share this post


Link to post
Share on other sites
Advertisement

Thanks for this great tip buddy  ;)

Thank you! Hoping to populate the forums with some more fixes throughout High Sierra and hopefully into the future. I've spent days at a time working on issues from other users, not necessarily from this forum, but the bottom line is I tend to enjoy helping out anyone I can, and as much as I can.

Share this post


Link to post
Share on other sites

Hi, 

 

Please see this post, as I ran into this problem and your solution wasn't able to recover my partition. Therefore, it may be of your interest to add the findings here to your tutorial:

 

http://www.insanelymac.com/forum/topic/328777-high-sierra-error-loading-kernel-cache-0xe-no-fix-help/?do=findComment&comment=2522632

 

Also, make sure you edit the post to ensure the user is running commands with sudo permissions.

 

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By fusion71au
      Making a High Sierra USB Installer Entirely From Scratch in Windows
      This is a proof of concept tutorial, to show it's possible to create a vanilla High Sierra installer, entirely from scratch, in Windows (even without App Store downloaded "Install macOS High Sierra.app" from a real Mac ).  @PikeRAlpha's link to Apple's Software Catalog provides us with all the URLs necessary to download the needed files directly from Apple instead of some dubious source from the internet...
       

      Pre-Requisites
      8GB or larger USB drive Boot Disk Utility v2.1.2017rev021b from @CVAD TransMac (free 15 day trial) Paragon Hard Disk Manager Free Download Installer Files Directly from Apple
      1)  Browse Apple's Regular Software Catalog and find the URLs to download the following 6 installer files...
      BaseSystem.dmg BaseSystem.chunklist InstallInfo.plist InstallESDDmg.pkg AppleDiagnostics.dmg AppleDiagnostics.chunklist (Hint - search page for "InstallESD" to find its URL and others nearby)

      to a folder named "SharedSupport" on your Windows NTFS drive.  A browser download manager (eg Chrono for Chrome, dTA for FireFox) is handy since InstallESD is >4GB ---> allows you to pause/resume interrupted download...

      2)  Rename InstallESDDmg.pkg to InstallESD.dmg
      3)  Edit InstallInfo.plist with WordPad/text editor to remove the chunklistURL and chunklistid keys for InstallESD, and renaming it from InstallESDDmg.pkg to InstallESD.dmg (example of edited file attached to this post)...
      Note:  You can verify the SHA1 checksum of your InstallESD.dmg and BaseSystem.dmg with the correct ones at this website.
      Boot Disk Utility to format the Installer USB and Restore OS X Base System HFS partition
      1.  Format USB with BDU & latest Clover ---> creates boot files in CLOVER partition + second FAT partition
      2.  Extract 4.hfs from \SharedSupport\BaseSystem.dmg with BDU --> save to it's local folder
      3.  Restore 4.hfs to USB second partition with BDU --->  2nd partition becomes bootable "OS X Base System"
      Paragon Hard Disk Manager to extend HFS Partition to its Full Extent
      Open Paragon Partition Manager Free and resize the second partition of the USB drive to the full size allowed.  Don't forget to apply the changes at the end...
      Transmac to Copy "SharedSupport" folder to OS X Base System
      1.  Open the TransMac program and navigate to the HFS+ Volume/Install macOS High Sierra.app/Contents folder.  Right click anywhere in the empty space on the RHS pane and select "Copy Here"...
      2.  In the next stage, select the "SharedSupport" folder we created above as the "Files and Folders to be copied to the Mac Volume"...
      Clover Settings
      Clover configuration is required now.  The default config.plist (in the Clover FAT32 partition of the USB) maybe sufficient to boot your machine if you’re lucky.  If not, look at the Clover Wiki, Clover Instructions and Clover Configuration Thread for pointers and edit /EFI/Clover/config.plist accordingly with Wordpad or Notepad.
      The location of the important configuration files for Clover are summarized below
      config.plist--->EFI/CLOVER folder DSDT.aml with or without SSDT.aml--->EFI/CLOVER/ACPI/patched (don't need one if your DSDT is auto patched by Clover in config.plist) Kexts eg FakeSMC, NullCPUPowerManagement --->EFI/CLOVER/kexts/<osx version> or /Other. NB BootDiskUtility by default already has FakeSMC.kext installed here.  You may need to add VoodooPS2Controller for your laptop keyboard/trackpad to work. If UEFI booting, you will most likely need one of the OsxAptioFixDrv-64 drivers copied from /EFI/CLOVER/drivers-off/drivers64UEFI to /EFI/CLOVER/drivers64UEFI. If you want to use the installer to run High Sierra in Windows on VMware, you can follow my guide to set up the Virtual Machine and replace Clover's default config with EFI_Clover for VMware (which is compatible to run in VMware).  In the screenshots below, I have attached the USB Installer (in this case PhysicalDrive7) to my macOS Virtual Machine.  Reboot the system to the USB installer to install High Sierra ...
      What happens if we don't have access to TransMac or Paragon Hard Disk Manager?
      Not a problem, as long as we get "OS X Base System" bootable, we can launch terminal from the Utilities Menu to copy the SharedSupport folder over to the Installer app.  In essence, we will build the full installer app = 5GB+ on the target HD eg "Macintosh HD", by copying both the "small" installer app = 15MB (on "OS X Base System") and the SharedSupport folder from the NTFS volume (mounted in this example on /Volumes/DATA)...
      -bash-3.2# cd / -bash-3.2# cp -R Install\ macOS\ High\ Sierra.app /Volumes/Macintosh\ HD/ -bash-3.2# cp -R /Volumes/DATA/SharedSupport /Volumes/Macintosh\ HD/Install\ macOS\ High\ Sierra.app/Contents/  
      ...then start installation with the startosinstall utility...
      -bash-3.2# /Volumes/Macintosh\ HD/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall --volume /Volumes/Macintosh\ HD --converttoapfs NO --applicationpath /Volumes/Macintosh\ HD/Install\ macOS\ High\ Sierra.app  
      The above steps can be automated with the attached "startosinstall.command" script, which will assemble "Install macOS High Sierra.app" on "Macintosh HD" and launch the startosinstall utility targeting the "Macintosh HD" volume.  Copy/download to "Macintosh HD", then run in terminal (after attaching DATA USB with /Shared Support folder)...
      cd "/Volumes/Macintosh HD" chmod +x startosinstall.command ./startosinstall.command Updated Download Links for macOS Mojave 10.14beta
      Browse Apple's Public Beta Software Catalog and find the URLs to download the following 6 installer files...
      BaseSystem.dmg BaseSystem.chunklist InstallInfo.plist InstallESDDmg.pkg AppleDiagnostics.dmg AppleDiagnostics.chunklist  
      startosinstall.command.zip
       
      InstallInfo.plist_edited_10.14beta1.zip
      InstallInfo.plist_edited_10.13.6.zip
    • By MaLd0n
      Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Install Clover UEFI in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace Folder CLOVER INSTALLATION.zip   --Install Sierra and boot into system!   --Install Clover UEFI and replace with my folder  CLOVER POST INSTALLATION.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! I prefer DSDT way, apply all patches in one file, many people prefer many SSDTs or Clover patches!   If you need DSDT edit... Run it RunMe.app   --DSDT My DSDT DSDT.ASUS H61M-A MaLd0n.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -EHCx -LPC -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -PNLF Clear NVRAM, Purge and Kextcache
          --FakeSMC http://www.hwsensors.com/releases --Audio https://github.com/vit9696/AppleALC --USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads --LAN http://www.insanelymac.com/forum/topic/287161-new-driver-for-realtek-rtl8111/   Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
    • By Tom Snow
      Hello everyone, it sure has been a while since I last posted here. I'm trying to upgrade my Hackintosh to High Sierra, and right now it's running Sierra which I installed last year. My hardware is a Gigabyte Z68MA-D2H-B3 mobo with Intel Core i5-2500K. Unfortunately, I can't even run the installer. I have an installer USB stick with Clover 4558 on it, and whenever I try to run the installer from it, I get a KP after an extremely long boot process. There are so many panic messages that flash by so fast, but I think I got everything relevant in these pics.
       
       


    • By bell47
      Hello
       
      I'm French, so excuse me for the approximate language......

      I was on Mountain Lion without problems and I installed a new Sierra system with Clover and rebooted with the key but when I remove the Clover USB key no longer "sees" my hard drive.
      "loading operating system" then black screen.
      Anybody got any ideas?
      Thank you
       
      Gigabyte H61N-USB3 F8
       Intel Core i5
       Mémory    8 Go
       
    • By iammask
      Requirements
      Pendrive 2.0 (>=8GB) "Install macOS Sierra app" (https://itunes.apple.com/de/app/macos-sierra/id1127487414?l=en)(Around 5GB) Working Mac  
      Installing Clover to USB
      Get a USB 2.0 Pendrive (8GB and above)
      Before you can partition the USB, you must determine what the disk identifier is. With the USB plugged in to the computer, use 'diskutil list':

      In Terminal:
      diskutil list In my case, output:
      /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage MacOS 500.4 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s5 4: Microsoft Basic Data DATA 498.8 GB disk0s4 /dev/disk1 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: Pendrive *8.0 GB disk1 As you can see my pendrive is available at /dev/disk1 (check yours).
      Now we are going to create partitions, In Terminal:
      diskutil partitionDisk /dev/disk1 1 GPT HFS+J "install_macos" R Output:
      Started partitioning on disk1 Unmounting disk Creating the partition map Waiting for the disks to reappear Formatting disk1s2 as Mac OS Extended (Journaled) with name install_osx Initialized /dev/rdisk1s2 as a 7 GB case-insensitive HFS Plus volume with a 8192k journal Mounting disk Finished partitioning on disk1 /dev/disk1 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *8.0 GB disk1 1: EFI EFI 209.7 MB disk1s1 2: Apple_HFS install_macos 7.7 GB disk1s2 Now as you can see partitions are created and your pendrive is ready to install clover.
      Download the Clover installer. Current builds are available on sourceforge: http://sourceforge.net/projects/cloverefiboot (chameleon, stolen and rebranded) 
      After Downloading the Clover installer,
      Install it to the Target "install_macos" partition  using "Change Install Location". Select "Customize". Check "Install for UEFI booting only", "Install Clover in the ESP" will automatically selected. Check "BGM" from Themes. Check "AptioMemoryFix.efi", "EmuVariableUefi-64.efi", "OsxFatBinaryDrv-64.efi" from Drivers64UEFI. After making your selections, Click "Install". Finally, one more EFI driver is needed, HFSPlus.efi:
      Download from : https://github.com/JrCs/CloverGrowerPro/raw/master/Files/HFSPlus/X64/HFSPlus.efi. Copy to /EFI/Clover/drivers64UEFI.  
      Kext Setup
      Remove all folders from EFI/CLOVER/kexts/ except 'Other'. Now Download These, FakeSMC.kext: https://github.com/RehabMan/OS-X-FakeSMC-kozlek VoodooPS2Controller.kext: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller USBInjectAll.kext: https://github.com/RehabMan/OS-X-USB-Inject-All Lilu.kext: https://github.com/vit9696/Lilu IntelGraphicsFixup.kext: https://github.com/lvs1974/IntelGraphicsFixup RealtekRTL8100.kext: https://www.insanelymac.com/forum/files/file/259-realtekrtl8100-binary/  
      Setting config.plist
      Download it from the attachments, Unzip and replace EFI/CLOVER/config.plist
       
      Building the MacOS Installer
      In Terminal : 
      sudo "/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia" --volume /Volumes/install_macos --applicationpath "/Applications/Install macOS Sierra.app" --nointeraction sudo diskutil rename "Install macOS Sierra" install_macos Now your Bootable USB is ready to install. Turn off your Laptop.
       
      Installing 
      Make sure you have adequate bios settings
       
      Then Follow:
      Power on laptop with pendrive connected to it. Continuously press "ESC". Select "Boot From USB" (i.e. F9) and select pendrive from the menu. Now it boots into Clover, with left-right arrow, select options. Select "Graphics Injector Menu". Under "Inject Intel" select "FakeID" and replace "0x00000000" to "0x12345678". Now return to main screen and select "install_macos". When grey screen comes, select DiskUtility. Format whole Hard Disk as "Mac Os Extended (Journaled)" with Name as "MacOS" Now quit DiskUtility and click "Install Mac OS Sierra" and select the newly created partition in previous step. Now installer will begin installing files (~15-20mins) and the restart. After restart again boot into clover(Follow Step 1-5) and again select "install_macos". Now Install screen will appear and continue installation. This time installer will install files to your target partition and create Recovery HD partition. Later on restarts. After restart again boot into clover(Follow Step 1-5) and again select "MacOS". If everything goes well, you will finish up the installation process and arrive at the Mac OS Sierra desktop.  
      Install clover to hdd.
      Congratulations!! Your Installation is complete!! 
      Now you need to fix things one by one.
       
      Will Provide fixes when I get time.
      config.plist.zip
×