Jump to content
jackluke

APFS Recovery WORKING "fix" on any computer

5 posts in this topic

Recommended Posts

Premise: the following explanation is only to exploit the little APFS Recovery (less than 600 MB) embedded inside the APFS File System, so avoiding an external USB Installer, you can't reinstall macOS from here but use just the Utilities (Terminal, DiskUtility) in case of emergency, however as known from a Recovery Terminal can do a lot of things, especially troubleshooting an unbootable macOS.

 

To those who have installed Mojave on APFS file system with a GUID/GPT Scheme (I suppose it will work even on MBR scheme), I have managed to "fix" the "APFS Recovery Volume" to make it bootable from any computer (capable of HighSierra and Mojave) with USB input devices (trackpad, keyboard, USB mouse and so on) responsive, working wifi and everything else, just follow next steps, totally safe and harmless for any Mojave installation, after booting normally from your Mojave APFS Volume, launch Terminal and type:

diskutil apfs list
{locate your "APFS Recovery Volume" on diskXs3 [for an internal "APFS Container" is typically mounted on disk1s3]}

On APFS scheme the "APFS Recovery Volume" is tipically on the 3rd (hidden) partition.

diskutil mount diskXs3
open /Volumes/Recovery


landing on Finder, double click on the "random-numbers-letters" folder (it's the gpt UUID folder where Recovery stores itself), once inside rename these files:

prelinkedkernel into prelinkedkernelbackup
immutablekernel
 into immutablekernelbackup
PlatformSupport.plist
 into PlatformSupportbackup

Don't close this opened Finder window yet, once you renamed those 3 files, now you have to open a new Finder window, then from this new Finder window go into your Mojave path: /System/Library/PrelinkedKernels/

while inside this path copy the file prelinkedkernel into the previous Finder window exactly where you renamed those 3 files

 

lastly rename this fresh copied file from prelinkedkernel to immutablekernel

Now you have a working APFS Recovery Volume.
 

 

Note for those who use Clover bootloader in the config.plist you have to don't "Hide" the APFS Preboot and Recovery hidden partition, otherwise you can't use the APFS Recovery.

 

 

 

Edited by jackluke

Share this post


Link to post
Share on other sites
Advertisement

I have two identical laptops one I did the mod and the other have not.  I don't see any difference, and the difference is reinstall of Mojave from recovery correct?   I can start the installer from recovery on both laptops but have not gone any further than that.  So the one laptop I have not changed with this guide will fail to continue to reinstall or fail at some point of the install?

Edited by oSxFr33k

Share this post


Link to post
Share on other sites
On 10/15/2018 at 4:50 PM, oSxFr33k said:

I have two identical laptops one I did the mod and the other have not.  I don't see any difference, and the difference is reinstall of Mojave from recovery correct?   I can start the installer from recovery on both laptops but have not gone any further than that.  So the one laptop I have not changed with this guide will fail to continue to reinstall or fail at some point of the install?

 

I have specified on the Premise that the APFS Recovery is only for use the macOS Utilities in case of emergency, you can't re-install from that of course, because the re-installation from any macOS Recovery needs to download the full Installer through Internet from servers, and on a non-mac hardware is not advisable to re-install from there.

 

When you install Mojave in APFS, you will have almost always these partitions numbers (the diskXsY may change according to your internal disk partitioning):

 

EFI disk0s1
APFS Container disk0s2
APFS Container Scheme disk1
APFS Volume disk1s1 (used for HighSierra or Mojave)
APFS Preboot disk1s2 (used for FileVault 2 encryption)
APFS Recovery disk1s3 (used for Recovery and CMD+R)
APFS VM disk1s4 (used for sleep image)

 

Edited by jackluke

Share this post


Link to post
Share on other sites

I always had a working partition which was really helpful.But after changing HFS to APFS, I marked a issue.You can't repair (fast-aid) your OSX partition any more as it needs to unmount the complete APFS container instead of your OS X partition only. you can't unmount the APFS container as the recovery partition stays inside the same container. 

 

So no more disk repair or reinstall OS( I tried for both and they are not working anymore) . I am planning to move the recovery partition to outside APFS container without causing problem to findmymac feature. 

 

Please if you have already tested working fast-aid and os reinstallation successfully then let me know

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 sl0wtarget
      Whether my updated but old installer, a fresh installer or from the hard drive, this is as far as it gets and I simply can't figure it out. That last line is the end of the boot sequence all the time.
       
      I might have to swap the Z370 back in (only swapped it because I can't get into the BIOS, it only presents a black screen otherwise it was working fine)
       
      Thanks a ton in advance.
       
      EDIT: Reinstalled the Z370 and it boots again. I wish I had a lot more time to figure it out.
       
       

    • By hungdv
      Hello guys,
      I was try to install MacOS Mojave on my new machine but no luck. Can anyone show me which guide to fit my system, please?please?please?
      + Mobo: GIGABYTE Z390 AORUS ELITE LGA1151v2
      + CPU: Intel Core i5-9600K 3.7GHz
      + iGPU: Sapphire RX 580 Pulse 8GB
      + Drives: SSD Samsung 970 Pro PCIe NVMe V-NAND M.2 2280 512GB
      + Ram: Crucial Ballistix Sport LT 2x8GB Bus 2666 DDR4
      + PSU: Corsair RM650 80 Plus GOLD
      + Case: Corsair 220T White RGB Airflow Tempered Glass
      + Cooler: Cooler Master HYPER 212 BLACK EDTION
      + Dual Band Network Card Broadcom Bcm94360 867Mbps.
    • By Rajan Pandit
      Hai, I have,
      i5 2500k
      GA-z68 AP D3 Rev.1
      Corsair 8 GM Ram
      Gigabyte Radeon RX 560 OC 4G Graphic Card
      500 GB Samsung SSD EVOf
       
      with this configuration I tried to install Mojave but After Apple Logo there was a black screen
      then nothing... please help
      I have create USB with terminal and Install Clover_v2.4k_r4961-Legacy.pkg to activate boot
      then I have recessary kext to EFI/KEXT/OTHER 
      but I am struck at Black Screen after apple logo
    • By Rajan Pandit
      Hai, I have,
      i5 2500k
      GA-z68 AP D3 Rev.1
      Corsair 8 GM Ram
      Gigabyte Radeon RX 560 OC 4G Graphic Card
      500 GB Samsung SSD EVO
      .. I want to install Mojave on this configuration...
      please help. what I need to do... 
      I have downloaded the Installer from APP Store...
      please help
    • By ScoobDoob69
      Hi, everyone so I am currently dual-booting Windows 10 and Linux Mint. I would like to add Mojave and triple boot (without formatting/losing all data from windows and linux).
       
      My Current Specs:
      CPU: Intel Core i7-2600 (not k) Sandy Bridge
      GPU: Aorus Radeon RX570 4GB
      Motherboard: Intel SWQ6710H
      HDD: 4TB Western Digital Blue WD40EZRZ
      Ram: 20GB DDR3 Total (2x 8GB + 2x 2GB)
       
      1. Is it possible to install Mojave on my HDD without wiping Windows 10 or Linux Mint?
      2. What guide is most ideal for my situation? 
       
      If you need any additional information or details, I am more than happy to provide that. I tried multiple guides months ago and could not get the installation to work. 
       
       
×