InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 01-08-2009, 09:29 PM
dj-dc dj-dc is offline
Cheetah
 
Join Date: Jan 2009
Posts: 10
how to install kext from usb stick in terminal ?

can anyone write it down for me what i need to do to install a kext from a usb stick in terminal when i boot from the instal cd ?
Reply With Quote
  #2  
Old 01-08-2009, 10:50 PM
milanca's Avatar
milanca milanca is offline
 
Join Date: Jan 2008
Location: Serbia and Montenegro
Posts: 326
Hi and welcome to InfiniteMac forum.

To install kext, driver for example your chipset controller or graphic card, you need some basic console commands. This is a basic, usual routine to install some kext.
Suppose that kext is in the root of your usb drive. If not, just point to the folder containing the kext by adding /~FolderName/ before ~DriverName.kext

Become 'su' first
Code:
sudo -s
You can list your Partitions/Volumes with
Code:
ls /Volumes
Copy kext:
Code:
cp -r /Volumes/USBPartitionName/~DriverName.kext /Volumes/~LeopardPartitionName/System/Library/Extensions
*Do the same for every kext you want to install.

Change permissions and ownership to new installed kext(s).
Code:
chmod -R 755 /Volumes/~LeopardPartitionName/System/Library/Extensions/Kextname.kext
chown -R root:wheel /Volumes/~LeopardPartitionName/System/Library/Extensions/Kextname.kext
*Do the same for every kext you installed.

Remove cache and rebuild:
Code:
rm -rf /Volumes/~LeopardPartitionName/System/Library/Extensions.mkext
kextcache -k /Volumes/~LeopardPartitionName/System/Library/Extensions
Reboot.


Last edited by milanca; 01-08-2009 at 10:56 PM.
Reply With Quote
  #3  
Old 01-08-2009, 11:45 PM
lanceomni's Avatar
lanceomni lanceomni is offline
 
Join Date: Nov 2008
Location: Florida, US
Posts: 521
If your in Single User Mode by booting with -s you can mount your USB thumb drive like this.

Boot into Single User Mode without the USB thumb drive plugged in.

1. Allow for the modification of files by typing:
Code:
/sbin/mount -uw /
2. Make a directory in Volumes to mount to. We will call it "usbstick" by typing:
Code:
mkdir /Volumes/usbstick
3. Before we plug it in we need to make reference to what other drives we see in /dev by typing (You might want to write them down):
Code:
ls /dev/disk*
4. Now plug in the usb thumb drive, wait a second then look for a new addition by typing:
Code:
ls /dev/disk*
5. Now lets mount it. Lets say you there are two new additions disk4 & disk4s1. Type the following (replace msdos with hfs depending on how the usb thumb drive is formatted. If you use it on a PC too then its msdos):
Code:
mount -t msdos /dev/disk4s1 /Volumes/usbstick
Then you can access your usb thumb drive at /Volumes/usbstick

If you are getting a basic understanding of the commands that Milanca posted then you should be able to supliment them with your USB thumb drive's location.

MOBO: Z77MX-QUO-AOS CPU: Core i7 3770K GPU: MSI N760 TF 2GD5/OC Case: Modded MacPro2,1
Memory: 32GB Corsair Vengeance (CMY32GX3M4A1600C9) Wifi: Airport Extreme bcm94321MCA BIOS: HermitCrab Labs H3A.816M
Monitor: AOC Q2963Pm 29" WFHD 2560x1080 21:9
Interests: KDE on Apple Darwin, Keeping it real with the command line, Helping those that help themselves
Reply With Quote
  #4  
Old 01-09-2009, 03:41 PM
dj-dc dj-dc is offline
Cheetah
 
Join Date: Jan 2009
Posts: 10
Hey thanks alot for your help guys , these info's really help me out, i was having a hard time finding some console commands for terminal with google.

Do any of you know a site where you can learn more of these commands ?
i've come across some pages on google with lots of commands but with the little knowledge of terminal i have it's hard to use then without knowing what they mean
Reply With Quote
  #5  
Old 01-09-2009, 05:05 PM
lanceomni's Avatar
lanceomni lanceomni is offline
 
Join Date: Nov 2008
Location: Florida, US
Posts: 521
http://www.ss64.com/osx/
http://www.westwind.com/reference/OS-X/commandline/

These two are pretty useful.

osxdaily.com also had a few articles that were useful



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.


MOBO: Z77MX-QUO-AOS CPU: Core i7 3770K GPU: MSI N760 TF 2GD5/OC Case: Modded MacPro2,1
Memory: 32GB Corsair Vengeance (CMY32GX3M4A1600C9) Wifi: Airport Extreme bcm94321MCA BIOS: HermitCrab Labs H3A.816M
Monitor: AOC Q2963Pm 29" WFHD 2560x1080 21:9
Interests: KDE on Apple Darwin, Keeping it real with the command line, Helping those that help themselves
Reply With Quote
Reply