Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › Leopard 10.5 › how to install kext from usb stick in terminal
69,064 reads · 2009-01-08 – 2009-01-09
Guide Leopard 10.5 Retail DVD / USB

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 ?

Primary Author
@dj-dc Published 2009-01-08
Collection
Leopard 10.5
Archival Footprint
69,064 historical reads · 3 curated field notes (from 5 dispatches) · 2009-01-08 – 2009-01-09
Credited Voices (3)
@dj-dc (2)@lanceomni (2)@milanca

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 ?

Author Updates & Technical Revisions

Follow-up dispatches by @dj-dc

Author Update #1 @dj-dc 2009-01-09

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

Synthesized Community Field Notes

3 technical responses curated from 5 original dispatches

Field Note #1 @milanca 2009-01-08

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

sudo -s

You can list your Partitions/Volumes with

ls /Volumes

Copy kext:

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).

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:

rm -rf /Volumes/~LeopardPartitionName/System/Library/Extensions.mkext
kextcache -k /Volumes/~LeopardPartitionName/System/Library/Extensions

Reboot.

Field Note #2 @lanceomni 2009-01-08

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:

/sbin/mount -uw /

2. Make a directory in Volumes to mount to. We will call it "usbstick" by typing:

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):

ls /dev/disk*

4. Now plug in the usb thumb drive, wait a second then look for a new addition by typing:

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):

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.

Field Note #3 @lanceomni 2009-01-09

ss 64.com/osx/
west wind.com/reference/OS-X/commandline/

These two are pretty useful.

osxdaily.com also had a few articles that were useful

Sources & Contributor Provenance (3 credited usernames · Thread #1890)
UsernameDossier ContributionDispatchesActive Window
@dj-dcPrimary Author22009-01-08 → 2009-01-09
@lanceomniContributor22009-01-08 → 2009-01-09
@milancaContributor12009-01-08