Jump to content

Remove kext on HD using USB stick installer terminal?


meanwhile
 Share

12 posts in this topic

Recommended Posts

Can anyone tell me how to remove a kext file from usb stick terminal? I installed a kext thats causing the kernel panic and i cant properly boot to my HD and to HD using usb stick.

I tried the single user -s but didnt work

i tried -s cpus=1 GraphicsEnabler=No

-v -f GraphicsEnabler=No cpus=1

-x cpus=1

 

All of them didnt work. This is the error it gives

2013_09_25_04_37_50.jpg
 

Any ideas?

 

Link to comment
Share on other sites

cd Volumes/nameofsystemdrive

 

rm -rf /System/Library/Extensions/nameofkext.kext

 

Then you have to boot with -f, otherwise it will just load from the cache.

Won't work.  /System/Library/Extensions will always refer to the kexts at the root.  When booting from the USB stick, root is the USB stick itself.

 

What was meant:

cd /Volumes/nameofsystemvolume

rm -rf ./System/Library/Extensions/nameofkext.kext

  • Like 1
Link to comment
Share on other sites

Won't work.  /System/Library/Extensions will always refer to the kexts at the root.  When booting from the USB stick, root is the USB stick itself.

 

What was meant:

cd /Volumes/nameofsystemvolume

rm -rf ./System/Library/Extensions/nameofkext.kext

 

So ah.. how exactly to remove kext from usb if the following code wont work?

Link to comment
Share on other sites

Yes that's exactly what I said.. I think.. what's the difference?

It is not exactly what you said.  Look more closely.  There is a big difference between './something' and '/something'.

So ah.. how exactly to remove kext from usb if the following code wont work?

I provided the answer.

Link to comment
Share on other sites

That's what I said, except I didn't place it all on one line. So that won't work either.

 

RehabMan: Can you explain why, in this particular case, does it work with the dot first?

I mean, I know to place the dot when running an executable from terminal (ie ./mame64 pacman -window) but I've never seen this when executing commands?

Not pulling your leg, I'm simply curious about the reason why.

Link to comment
Share on other sites

That's what I said, except I didn't place it all on one line. So that won't work either.

 

RehabMan: Can you explain why, in this particular case, does it work with the dot first?

I mean, I know to place the dot when running an executable from terminal (ie ./mame64 pacman -window) but I've never seen this when executing commands?

Not pulling your leg, I'm simply curious about the reason why.

The '.' refers to the 'current working directory' (cwd)  The cwd is changed by the 'cd' command.  By starting with '/' you're ignoring the cwd and giving it an absolute path starting at root.

 

All of these sequences would be equivalent:

#1a
cd /Volumes/nameofsystemvolume
rm -rf System/Library/Extensions/nameofkext.kext
#1b
cd /Volumes/nameofsystemvolume
rm -rf ./System/Library/Extensions/nameofkext.kext
#2a
cd /Volumes/nameofsystemvolume/System/Library/Extensions
rm -rf nameofkext.kext
#2b
cd /Volumes/nameofsystemvolume/System/Library/Extensions
rm -rf ./nameofkext.kext
#3
rm -rf /Volumes/nameofsystemvolume/System/Library/Extensions/nameofkext.kext

All this is "Unix shell 101" kind of stuff.  If you plan to do things in Terminal, it is a good idea to read/walk through a few tutorials on it.

Link to comment
Share on other sites

 Share

×
×
  • Create New...