Jump to content

rebuild prelinkedkernel using terminal code


2 posts in this topic

Recommended Posts

here the code with which I could rebuild the catalina prelinkedkernel
by using terminal code on an external hard drive or another macOS partition.

 

write the name of the partition without spaces, see example

copy the code and paste the contents into terminal and confirm with Enter

 

Code:

sudo rm -f /Volumes/Catalina_1016/System/Library/PrelinkedKernels/prelinkedkernel

sudo rm -f /Volumes/Catalina_1016/System/Library/Cashes/com.apple.kext.caches/Startup/kernelcache

sudo rm -f /Volumes/Catalina_1016/System/Library/Cashes/com.apple.kext.caches/Startup/loadedkextmt.plist

sudo touch /Volumes/Catalina_1016/System/Library/Extensions

sudo kextcache -q -update-volume /

sudo kextcache -system-caches

 

  • Like 1
  • 2 months later...

If you have access to two computers or OS's (eg boot Big Sur to boo edit Catalina or reverse) Open up your problem boot Mac OS and Simply delete old kexts in L/E and then then run kext wizard to bless. Reboot and all your prelinked errors should be gone when booting back in. Viola no boot errors.

×
×
  • Create New...