Hello Guest,

Welcome to NoobsPlanet, register today for free lifetime. It will take you less than minute.

How And When To Rebuild Kernel Caches In Hackintosh?


Well-known member
Staff member
Rebuilding kext and kernel caches are helpful if you're changing kexts on the local system. It's not necessary if you're only injecting via Clover i.e. if placed kext in Clover/Kexts/ ... folder. When the OS boots - it saves all currently used kexts into a cache for faster booting next time - and if you move things around in /Library/Extensions/(L/E) or /System/Library/Extensions/(S/L/E/), you won't see those changes reflected until the caches are rebuilt. Below is how you can rebuild Kernel caches :

For Hackintosh 10.10 or prior
Open Terminal :
sudo touch /System/Library/Extensions/ && sudo kextcache  -u /

For Hackintosh 10.11 and higher
sudo kextcache -i /


Now, for those who are not familiar with Terminal, they just copy and paste the above command and ignores the output.
The output of the above command is very important. You should look read lines by lines carefully. If you see messages like "Kext with invalid signature ... allowed" message then it's just a warning and okay with it. If you see "Kext rejected due to improper filesystem " message then your kext has an improper filesystem, then follow the following command and rebuild kernel cache again :
sudo chmod -R 755 /System/Library/Extensions/ && sudo chown -R root:wheel /System/Library/Extensions/ && sudo chmod -R 755 /Library/Extensions/ && sudo chown -R root:wheel /Library/Extensions/ && sudo touch /System/Library/Extensions/ && sudo touch /Library/Extensions/ && sudo kextcache -u /

Now, another problem some users may face is:
symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/") failed 17 (File exists) <createPrelinkedKernel 2795>
In this case, you can simply delete the folders through Terminal and rebuild kernel caches like above mentioned again :
sudo rm -rf /System/Library/PrelinkedKernels && sudo rm -rf /System/Library/Caches/

If you've any issue then please let me know below:
Thank You!!


What to do with "error allocating kernel cache 0x7" after clover attempts to boot Sierra?