Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

one1

macrumors 65816
Original poster
Jun 17, 2007
1,168
28
Chattanooga, TN
I need to add and remove kexts from my library / extensions folder. How do i gain permission to do so? Everything that has been suggested that i have tried has been denied. After many searches and failing to gain access I've come to get instructions on at least one way to do it, if not others such as programs or specific command line terminal input. I've edited kexts in the past, but can't remember how to gain permission to delete from that folder.

Running the latest gm build of sierra as of yesterday when I reformatted and set up via over the air recovery then did all my updates.

Macbook pro retina 13" 2.4
 

chrfr

macrumors G5
Jul 11, 2009
13,552
7,077
I need to add and remove kexts from my library / extensions folder. How do i gain permission to do so? Everything that has been suggested that i have tried has been denied. After many searches and failing to gain access I've come to get instructions on at least one way to do it, if not others such as programs or specific command line terminal input. I've edited kexts in the past, but can't remember how to gain permission to delete from that folder.

Running the latest gm build of sierra as of yesterday when I reformatted and set up via over the air recovery then did all my updates.

Macbook pro retina 13" 2.4
There aren't any tricks to adding or removing extensions to /Library/Extensions. Are you trying to do things with /System/Library/Extensions?
 

one1

macrumors 65816
Original poster
Jun 17, 2007
1,168
28
Chattanooga, TN
Correct. I need to gain permission. I am in safe mode.

"kext” can’t be modified or deleted because it’s required by macOS."

I don't have to delete it (though I was going to move to a new folder to remove it) If I could disable it I'd do it, but that isn't an option. I can create a new folder, but not rename or move the original kext (it makes a copy in the new folder (/disabled) however will not remove the original kext.

Any attempt to change folder or file permissions returns "you do not have permission". In the files and folders it does show me as root with write/read permission, but the security is blocking my request.

I did this in snow leopard all the time, but Sierra (and el cap, etc) have new permissions security and I have to remove a kext to operate my MacBook Pro out of safe mode and troubleshoot hardware.

I am logged in as root.
 
Last edited:

chrfr

macrumors G5
Jul 11, 2009
13,552
7,077
Correct. I need to gain permission. I am in safe mode.

"kext” can’t be modified or deleted because it’s required by macOS."

I don't have to delete it (though I was going to move to a new folder to remove it) If I could disable it I'd do it, but that isn't an option. I can create a new folder, but not rename or move the original kext (it makes a copy in the new folder (/disabled) however will not remove the original kext.

Any attempt to change folder or file permissions returns "you do not have permission". In the files and folders it does show me as root with write/read permission, but the security is blocking my request.

I did this in snow leopard all the time, but Sierra (and el cap, etc) have new permissions security and I have to remove a kext to operate my MacBook Pro out of safe mode and troubleshoot hardware.

I am logged in as root.
What extension(s) are you trying to move or modify?
You're probably running into Apple's System Integrity Protection (SIP) which is designed to prevent the modification or deletion of Apple system files.
https://support.apple.com/en-us/HT204899
SIP can be turned off via the recovery environment.
 

one1

macrumors 65816
Original poster
Jun 17, 2007
1,168
28
Chattanooga, TN
Thank you. I'll search for how to turn it off specifically if I can't see how once I'm in there. Once I begin swapping out kexts to (/Disabled) and it boots normally I'll know which one I am looking for. I have a full comparison of my loaded kexts in safe mode V/S normal boot when it freezes. It's a bone stock system so I'm guessing it's a GPU issue since it passed Rember loop tests.

Safe mode is on the right, normal boot on the left. There are several to investigate. Unfortunately I don't know which I should be looking at first so it's going to be done alphabetically I guess.

I can't say i remember having this issue before i had to reset the EIS and get past my lost password, but have since wiped the flash clean in disk utility and did internet recovery with sierra so shouldn't be any leftover conflict











 
Last edited:

chrfr

macrumors G5
Jul 11, 2009
13,552
7,077
Thank you. I'll search for how to turn it off specifically if I can't see how once I'm in there. Once I begin swapping out kexts to (/Disabled) and it boots normally I'll know which one I am looking for. I have a full comparison of my loaded kexts in safe mode V/S normal boot when it freezes. It's a bone stock system so I'm guessing it's a GPU issue since it passed Rember loop tests.
What exactly is the problem you're trying to resolve? Disabling extensions is really not a standard troubleshooting workflow in macOS/OS X.
 

one1

macrumors 65816
Original poster
Jun 17, 2007
1,168
28
Chattanooga, TN
It is this time. As described above it passed all tests so.....

UPDATE: Deleted the Apple HDA 5000 kext and it fired up in normal mode. Obviously I do not have graphics acceleration so it's choppy. Anything Else I can use for this as a kext? IDK why it's being like that to the 5000 kext. In all likelyhood my guess is it may be a plug in inside the kext, but I don't have any experience modifying kext and would Probably make this worse. My guess is that the kext is calling up something else that is causing an issue, but for now this is my best fix.

I don't know why deleting that kext made it work, but It doesn't work any other way unless I'm in safe mode. Bone stock MacBook Pro and bone stock Sierra install.
 
Last edited:

chrfr

macrumors G5
Jul 11, 2009
13,552
7,077
It is this time. As described above it passed all tests so.....

UPDATE: Deleted the Apple HDA 5000 kext and it fired up in normal mode. Obviously I do not have graphics acceleration so it's choppy. Anything Else I can use for this as a kext? IDK why it's being like that to the 5000 kext. In all likelyhood my guess is it may be a plug in inside the kext, but I don't have any experience modifying kext and would Probably make this worse. My guess is that the kext is calling up something else that is causing an issue, but for now this is my best fix.

I don't know why deleting that kext made it work, but It doesn't work any other way unless I'm in safe mode. Bone stock MacBook Pro and bone stock Sierra install.
If you can't use the computer with graphics acceleration working, you'll need to have it repaired. The problem isn't the extension, it's the hardware.
 

one1

macrumors 65816
Original poster
Jun 17, 2007
1,168
28
Chattanooga, TN
That was the point of locating it via kext. I'll do a targeted reflow on it and see if it clears up. If it's just the Gpu it should fix it..... almost always heat issues causing contact loss. Hopefully it is and that will save it. Still unsure if the problem is at the point I have found or not, it's broad spectrum targeting at this point.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.