Jump to content

Remove kext on HD using USB stick installer terminal?


  • Please log in to reply
11 replies to this topic

#1
meanwhile

meanwhile

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 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?

 



#2
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,084 posts
  • Gender:Male
  • Location:Brazil

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.



#3
meanwhile

meanwhile

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

Thanks commands are working but a little correction on cd Volumes. It must be "/Volumes" :D

Aside from that everyting works fine but the problem is I cant delete it because its read only. Do you know how to remove the file restriction? Thanks



#4
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,084 posts
  • Gender:Male
  • Location:Brazil

That's odd, running Terminal from the installer I can delete anything I want on my system drive. I don't know why it doesn't work for you.



#5
meanwhile

meanwhile

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

That's odd, running Terminal from the installer I can delete anything I want on my system drive. I don't know why it doesn't work for you.

Yes. I wonder how can i remove it

2013_09_25_15_09_20.jpg
 



#6
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,298 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

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



#7
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,084 posts
  • Gender:Male
  • Location:Brazil

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



#8
meanwhile

meanwhile

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

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?



#9
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,298 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

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.



#10
3.14r2

3.14r2

    The Round One

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,333 posts
  • Location:Molvania

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

IMO

rm -rf /Volumes/mountainlion/System/Library/Extensions/IOACPIFamily.kext


#11
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,084 posts
  • Gender:Male
  • Location:Brazil

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.



#12
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,298 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars


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.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy