как удалить кексты в mac os x
Установка и удаление
кекстов в macOS
§ Введение
Слово «Кекст» — транскрипция английского сокращения Kext от Kernel extension, т.е. расширение ядра. В виде кекстов реализованы все драйверы для macOS. Большинство самих же кекстов реализовано в виде специальных установочных пакетов, при запуске которых потребуется лишь ввести пароль, а всё остальное сделают за вас скрипты. Почти так же, как и с привычной установкой драйверов на ОС Windows.
Установка кекстов в macOS состоит из трёх этапов:
§ Установка кекстов
Kext Utility
Есть два способа установки кекстов — ручной и автоматический. Я рекомендую автоматический, поскольку он гораздо проще. В этом мне помогает отличная программа Kext Utility. Она делает за меня все три описанных выше этапа установки кекстов.
Есть несколько способов работы с Kext Utility:
Установка в папку Clover
Не всегда требуется устанавливать кексты в системную папку macOS: на хакинтоше есть еще одно место с кекстами — в папке Clover. Обычно там располагаются кексты, необходимые для работы хакинтоша. Выбор места для установки следует делать исходя из документации к кексту. Большое количество кекстов, загружаемых через Clover, может замедлить загрузку системы.
В папке Clover/Kexts/Other располагаются кексты для всех версий macOS. Рекомендуется копировать кексты именно в эту папку.
§ Удаление кекстов
Удаление из системной папки
Помимо основной папки с кекстами в macOS, которая располагается в папке System/, есть еще одно место, где хранятся кексты — /Library/Extensions. Но оно используется гораздо реже и кекстов там немного.
Удаление из папки Clover
В случае, если целевой кекст располагается в папке Clover, просто удалите его оттуда и перезагрузите компьютер.
How to delete kexts in Catalina?
I have a 2014 MacBook Pro experiencing this issue. Catalina does not allow kexts to be deleted via this method. Unless I am able to delete or disable this kext my laptop will shut down randomly. Anyone know how to remove kexts in Catalina?
4 Answers 4
1. Check for System Integrity Protection (SIP)
Open Terminal and type
continue to step 2. Else, skip to step 3.
2. Defeat SIP by Rebooting into macOS Recovery mode
3. Unload, then delete kext
4. Re-enable SIP (if turned off)
Follow the steps for 2. except type csrutil enable on step 2.3.
For Mac OS Big Sur
Reboot in rescue mode (reboot while «Cmd + R»)
csrutil authenticated-root disable
delete (or rename, or move elsewhere) the AppleThunderboltNHI.kext directory (I’ve moved all thunderbolt kext directories since I have no needs about this interface, but I think it works only by disabling AppleThunderboltNHI)
cd /Volumes/Macos (Enter WHATEVER YOUR MACOS DRIVE NAME IS, my macOS drive name is Macos)/System/Library/Extensions
Open Terminal and enter the following command:
If that fails to work, you can also just force-delete the kext using
Use the following Terminal command to remove the kext file:
Thanks to @Udhy and @user3439894 for the tips that led me to the answer. I also found out how to mount and change drive permissions here.
Записки Хакинтошника. Шаг четвертый
Вместо эпиграфа:
Говорим драйвер — подразумеваем кекст
Честно говоря, сегодня будет не совсем полноценный, так сказать, шаг. Но от этого он будет не менее полезным. И задумывался он как ответ на некоторые вопросы, появляющиеся в комментариях. Я постараюсь дать несколько полезных советов и развеять некоторые страхи. Или не развеять. В общем посмотрим, что получится 🙂
Предыдущие 3 части можно найти поиском или по тэгу хакинтош.
Развеивание страхов
Руководствуясь своим каким-никаким опытом, я могу предположить, что наибольшее нервное напряжение возникает в случае какого-либо некорректного действия пользователя, в результате которого вроде как нормально работающая система перестает загружаться. Что же делать в этом случае?
А вот теперь самое главное:
Если система сломалось, а до этого работала — не бойтесь отформатировать раздел и заново установить более-менее «рабочую» конфигурацию Leopard’a. Обычно все проблемы возникают, и их можно решить, в самом начале, до момента постоянного пользования Хакинтошем.
Это нормальная практика, ничего тут такого удивительного нет. Большинство людей, с которыми я общался, в самом начале переустанавливали систему не менее 15-30 раз. Поэтому запаситесь терпением.
Удаление видео-драйверов
Этот пункт я вынес отдельно потому что у меня для вас есть небольшой сюрприз. В описании уже устаревшего Kalyway (10.5.2) есть отдельный абзац посвященный этой проблеме:
Что в переводе значит следующее:
sudo chmod +x /movevideodrivers
Все, после этого можно будет экспериментировать с видео. И сейчас я расскажу как.
Pacifist — наше всё
Программа платная (shareware) и стоит 20$, но в бесплатном режиме придется всего лишь подождать определенное время перед возможностью работать (секунд 20). А функционал вроде не урезанный.
Так вот, после того, как мы запустим утилиту и выберем «Open Apple install disk» Pacifist просканирует его и покажет весь список пакетов в виде дерева каталогов. Структура дерева будет примерно соответствовать аналогичному меню при выборе компонентов установки. По этой структуре (или поиском в приложении) можно найти интересующий нас драйвер, и нажав на кнопку Install установить его в систему. При этом придется ввести свой пароль.
После этого перезагружаемся — если опять черный/голубой экран — используем /movevideodrivers и заново пытаемся установить подходящий драйвер.
Установка kext’ов
Для начала отмечу, что kext’ы (kernel extension) — это расширение ядра системы. В Windows аналогичным понятием являются драйверы. Бывает, что на том же InsanelyMac в качестве дополнению к посту является рабочий кекст для запуска wifi, видео или сетевого адаптера. Установить его можно вручную (но это сопряжено с некоторой головной болью), а можно воспользоваться утилитой Kext Helper B7 (обычно она идет в комплекте с любой сборкой).
How to Add and Remove Kexts from macOS
Kexts, or kernel extensions, expand the basic functionality of macOS’s Darwin kernel. They’re analogous to drivers under Windows, and they let the kernel communicate with your computer’s hardware. Most of the time, these files require no maintenance. But if you’re having problems, you may need to fiddle with a kext or two. In this article, you’ll learn how to add and remove Kexts on macOS.
Do Macs on Big Sur and Later Use Kexts?
Apple no longer recommends using kexts with your macOS device. To make thing worse, macOS Big Sur doesn’t even support some kexts; you can find a list of those here.
Where Are Kexts Found?
You can find kexts in two places on your Mac. Most live in the “System/Library/Extensions” directory, which is the primary home for kexts. Some are also found in the “/Library/Extensions” folder as well, but that’s less common.
How to Remove Kexts
1. Determine which kext you need to remove. Be absolutely certain you have the right one. Removing a system-critical kext can cause major problems, and kext names are often cryptic.
2. Open Terminal and enter the following command:
Make sure to change “kext.kext” to the name of your kext file. For example, if the kext you want to remove is named “AppleMobileDevice.kext,” the command would be:
3. After typing in your kext, press Enter, then type your administrator password and press Enter again.
1. Use the following Terminal command to remove the kext file:
Make sure to change “kext.kext” to the name of your kext file. For example, if the kext you want to remove is named AppleIntelE1000e.kext, the command would be:
2. Enter your admin password and press Enter.
3. Restart your computer.
How to Install Kexts Automatically
The steps below to remove kexts will only work if you are using a Mac operating system prior to Big Sur and utilize the KextBeast utility that was initially created for use with Hackintoshes.
1. Download KextBeast. If you don’t have a free account with tonymacx86.com yet, you’ll need to create one to download the file.
2. Move the kext file you want to install to your Desktop. The program will automatically operate on any kext files in the “
/Desktop” directory, so make sure you have the right one.
3. Open KextBeast and click “Continue.”
4. Click “Continue” again.
5. Choose your system’s boot drive as the installation destination and click “Continue.”
6. Tick the box next to “/System/Library/Extensions” or “/Library/Extensions,” depending on where your kext needs to be installed. If you don’t know which one to pick, choose “/System/Library/Extensions.”
9. Enter your administrator password and click “Install Software.”
10. Wait for the installation to finish and click “Close.”
11. Restart your computer.
How to Install Kexts Manually
If you use a Mac running on Big Sur or later, you’ll probably want to look at kernel extension alternatives. Apple recommends DriverKit and Network Extension, among other things.
Still, if you use an operating system earlier than Big Sur, kexts can be installed manually. It’s a more cumbersome process, however, and your Mac really doesn’t like you installing kexts like this.
1. Drag and drop your kext file into “/System/Library/Extensions”.
2. Click “Authenticate.”
3. Enter your admin password.
4. Open Terminal and use the command sudo kextload kext.kext to load your newly copied kext file. Make sure to replace “kext.kext” with the name of your kext file.
5. Enter your administrator password.
6. Restart your computer.
Frequently Asked Questions
1. How do I access my Big Sur system extensions?
2. A system extension on my Mac is blocked. What should I do?
In the bottom right of your window, you should see an “Allow” button next to the message: “System software from developer [Developer’s Name] was blocked from loading.”
Click on the padlock in the bottom left and enter your password, then tap on the “Allow” button.
3. Are system extensions and kernel extensions the same?
System extensions and kernel extensions were designed with the same end goal but work a little differently. Both aim to make background tasks on your Mac run more smoothly.
However, system extensions don’t work within the kernel (working instead like individual apps). Therefore, they don’t pose as much of a threat to your Mac if an issue arises.
Wrapping Up
You shouldn’t need to mess with kexts too often. And if your device runs on Big Sur or later, you’ll almost never need to install one.
If you do need to remove a kext at some point, you can use the Terminal to delete it without much trouble. And if you use an older Mac and need to install a kext, use KextBeast to simplify the process.
When it comes to macOS maintenance, something else you might occasionally need help with is deleting files that won’t delete the usual way.
Never Miss Out
Receive updates of our latest tutorials.
Danny has been a professional writer for over five years. Now based in Copenhagen, Denmark, he plied his trade working for various companies in the UK — where he was born — before taking the leap into freelancing. He specializes in iOS and Mac.
One comment
I have some kexts left over after unistalling McAfee. I have Big Sur. Is there any danger in deleting them?
Leave a Comment Cancel reply
Popular Posts
How to Fix Mac Wi-Fi Problems and Dropped Connections
5 Simple (Yet Cool) Drawing Apps for Mac
Camera Not Working or Available on Mac? Here’s How to Fix It
How to Repair Hard Disks with fsck on macOS
How to Launch Terminal in the Current Folder Location on Mac
How to Install macOS on a USB Drive
Playing Old DOS Games on macOS with DOSBox
How to Fix a Frozen Mac During an Update
How to Use Your iPhone as a Mouse on a Mac
How to Use a Custom Email Domain with iCloud Mail
Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.
skrasmus
I have been having my hackintosh for a long time now, and yesterday I updated the apple software. After the update, my sound didn’t work, so I opened Multibeast and decided to install audio kexts (not sure if Im saying it right). It didn’t work so I decided to install all the kext files from the audio folder. This resulted in a panic when I booted my system today, and now Im sitting in terminal, trying to figure how to delete my VoodooHDA.kext file (because I think it is the problem). Does anyone know how to find my kext file in terminal and then delete it?
jamietech
miramar
kext files are actually folders and they are usually installed in /System/Library/Extensions
Or the method that I prefer is just to move them out of the /S/L/E folder to a /backup folder (or whatever you decide to name it)
mv /System/Library/Extensions/VoodooHDA.kext /backup
The extensions cache should be rebuilt automatically if you do either of the above.
monty007
kext files are actually folders and they are usually installed in /System/Library/Extensions
Or the method that I prefer is just to move them out of the /S/L/E folder to a /backup folder (or whatever you decide to name it)
mv /System/Library/Extensions/VoodooHDA.kext /backup
The extensions cache should be rebuilt automatically if you do either of the above.
Gosh! I wish I had found this thread yesterday. Spent a LOT of time rebooting and restoring from my backups. Thanks for the great tip!
skrasmus
Thanks for the advice, I did what you said, but when I try to boot now it hangs on the apple logo (spining wheel). Do you have any idea what to do?
Or is there somehow I can get into my Lion partition from another partition?
If you have a disk or partition of Windows that you boot from and you need to access your files on your Mac partition, you can do the following:
For this purpose you’ll need to use the MacDrive application. This application is installed on Windows and can display Macintosh Hard Drives inside «My Computer», as if they are normal Windows partitions; you can read, write and files if you so desire.
Install the program, reboot and access your OS X drives from the Hackintosh dual boot, or from USB external Time-Machine.
This’ll be handy when you’re getting kernel panics for some reason and need to access your files.