HowTo's

Howto Section:


How to: Load Kext

  1. Copy files to /System/Library/Extensions
  2. Then open the terminal, type
sudo -s
sudo chown -R root:wheel /System/Library/Extensions/[NAME].kext
sudo chmod -R 755 /System/Library/Extensions/[NAME].kext
rm -r /System/Library/Extensions/Caches
reboot

use -f at boot to force the rebuilding of kext files.

Or do this definitely by typing the following line in Terminal :

kextcache -a i386 -K /mach_kernel -m /System/Library/Extensions.mkext /System/Library/Extensions

Loading kext files on the fly:

  1. Open the terminal, type
sudo -s
kextload -v [NAME].kext

How to: Enable Root Access

  1. Open Directory Utility located in Application » Utilities. //You may have to unlock Directory Utility to make changes.
  2. Once it's unlocked, go to Edit » Enable Root User, and then type in a password for your root user.

The Root account is now activated. To use root access in terminal (we remind you to use caution when logged in as root):

  1. Open Terminal
  2. type
su root
  1. It will then ask you for your password. It is the same as the one you setup previously.
  2. You are now logged in as root

How to: Use Bootloader Flags

Whenever your system doesn't want to boot it's always a good start to use some bootflags to find out whats wrong.
Here are a couple bootflags you can use:

-x (safe mode)
-v (verbose mode)
-f (force re-load kext files)
-s (single user mode)
system=X86PC

How to: Inject Kexts into Leopard DVD

AppleNForceATA.kexts are used in this example, but you are able to put basically whatever kexts you want

For Tiger OSX 10.4.x

1. hdiutil attach /"Your ISO File" -readwrite
2. mkdir ~/inject
3. mkextunpack -d ~/inject /Volumes/YourMountedISO/System/Library/Extensions.mkext
4. rm -rf ~/inject/AppleNForceATA.kext
5. cp -rp /path/to/new/AppleNForceATA.kext ~/inject
6. chown -R root:wheel ~/inject
7. chmod -R 755 ~/inject
8. kextcache -m ~/Extensions.mkext ~/inject
9. rm -rf /Volumes/YourMountedISO/System/Library/Extensions.mkext
10. cp -rp ~/Extensions.mkext /Volumes/YourMountedISO/System/Library

Eject, then reboot.

For Leopard OSX 10.5.x

1. hdiutil attach /"Your ISO File" -readwrite
2. rm -rf /"Your ISO File"/System/Library/Extensions/IOATAFamily.kext/Contents/PlugIns/AppleNForceATA.kext
3. cp -rp /path/to/new/AppleNForceATA.kext /"Your ISO File"/System/Library/Extensions/IOATAFamily.kext/Contents/PlugIns
4. chown -R root:wheel /"Your ISO File"/System/Library/Extensions/IOATAFamily.kext/Contents/PlugIns/AppleNForceATA.kext
5. chmod -R 755 /"Your ISO File"/System/Library/Extensions/IOATAFamily.kext/Contents/PlugIns/AppleNForceATA.kext

Eject, then boot

How to: Prevent a partition to mount at boot (by Voyn1x)

This tutorial is great for keeping your desktop tidy by unmounting drives you don't need regular access to. For example this could be your Windows drive, Tiger partition etc.

First get the UUID of a volume you wish to stop mounting - this can be seen in Disk Utility (click the Info button and find the Universal Unique Identifier).

Now that you have a UUID for the volume to hide during the mount process, from an admin account create your /etc/fstab file (in Leopard this file doesn't exist by default):

From Leopard on you need to use vifs to create and edit /etc/fstab, or at least you should*.

sudo vifs

Add a line with the UUID for your volume and the mounting point information, for example:

# Identifier,  mount point,  fs type,  options
UUID=F0E430C1-5558-3BB3-9FA9-6904B663FEEA  none  hfs  rw,noauto

The Identifier is used to identify the volume.

The mount point is the directory used when the volume is mounted; set none to use the pre-defined OS X directory, i.e. ./Volumes/

The fs type describes the type of the filesystem; use hfs for a Mac volume, use ntfs if it's a NTFS formatted PC volume. The field options describes the mount options associated with the filesystem. 'noauto' will force the volume not to be mounted automatically; and last, use 'rw' or 'ro' for a read-write or read-only disk.

One thing to note is that FAT32 formatted volumes are not assigned a UUID. You'll have to use LABEL instead of UUID and change the fs type to 'msdos'.

eg.

FAT32

LABEL=<drive name> none msdos rw,noauto 0 0

NTFS

LABEL=<drive name> none ntfs rw,noauto 0 0

Save the file and reboot (for internal drives) or unmount, disconnect and reconnect the volume (for external drives). Now the system should not mount the partition identified in fstab. You can still manually mount the volume in Disk Utility, or via the command line (and for a volume containing a boot system, rebooting from it).

Also, you might find that /etc/fstab is ignored and your partition still mounts. Two things you can try:*

sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true

Instead of using "none" for the mountpoint use the normal location i.e. /Volumes/WindowsXP along with the ro,noauto options.

How to: Make Zeph's AMD Software Update run via the Apple menu

Navigate to /System/Library/CoreServices/

Find Software Update in the list. Backup the application to an external drive and eject the drive - I only did this because I wasn't sure how to break the symbolic link (a restart may work though I didn't try).

Replace with Zeph's Software Update.

Click Software Update in the Apple menu!!

How to: Setup SB600 Windows XP AHCI driver (by Martin953)

For those of as with AMD SB600 south bridge OSx86 is easier to setup, when SATA controller is in AHCI mode (the installer sees all SATA HDD's and you can partition and choose any as install location)
But if you wanna dual boot with Windows XP (like I am) and have previously installed XP with SATA controller in IDE mode - it's like pain in the @$$ - you have to enter BIOS setup each time you want to switch OSes and change SATA controller mode from AHCI to IDE or vise versa.
So I dig and have found a nice and easy solution:

1.Boot XP in IDE mode.
2.Copy "ahci8086.sys" file from attached driver package to "C:\Windows\System32\Drivers".
3.Right-click on "AHCI-InstallXP32.reg" file and choose Merge
4.Reboot, enter BIOS setup and enable AHCI mode, save and reboot. Boot Windows and have fun.

Original information obtained from german forum: "http://62.109.81.232/cgi-bin/sbb/sbb.cgi?&a=show&forum=2&show=2290"

How to: 780G Chipset (SB700) fully working support (by nicholasblock)

This will work on 780G chipsets with the SB700 Southbridge

This took me along time to get up and running and figure out. First and foremost I would like to thank SenVa for the actuall SB700.kexts He posted the correct files i just had to figure how to intergrate them to an osx86 install cd. I would like to point out that i'm a complete noob but very interested in mac on pc and i've never written a guide on anything before so i hope u can understand me if not pm me and ill be glad to help. K enough of that lets get on with it!!!
Also I would like to point out that all dvd and hard drives show up after install all works fast and install is like 25 minutes!!

What u will need
1. SB700 .kext (provided in post)
2. A copy of transmac or another program to put the files on iso
3. Kalyway 10.5.2 (i've not tried any other flavor yet so try at your own risk!!!)

What to do

1. open transmac and on the top half of transmac open the file SB700 .kext you should see two files extensions.mkext and a folder Extensions
2. on the bottom portion of transmac open your kalyway iso.
3. go to HFS+ volume/system/library/ on kalyway
4. now drag extensions.mkext from the top half to the bottom half and replace the one on kalyway
5. on the top half go into Extensions folder there u will see two files drag them into the extensions folder on the kalyway replace any files that ask to be replaced
6. and there u have it you now have a kalyway install dvd with SB700 support!!!!!

But your not off the hook just yet this MUST be installed in native ide mode so go into bios and make that change also i made a few other changes that seemed to help not sure if u have to though but this is what i did turn virtualization on and also ACPI to S3 and for some reason kalyway didnt like my ps/2 mouse/keyboard so i had to use the usb one but now to the install only other thing you need to do is boot with -f flag you only need to do this once
and there you have it a working SB700 .kext if u have any questions pm me or post it sorry about how this was written this is my first guide if thats what you wanna call it!!
Enjoy!!!!!!!!!

I was'nt able to up my files here for a reason i dont know but heres a link

www.esnips.com/web/nicholasblocksStuff

How to: Update existing install to OSX Server (by Voyn1x)

WARNING. Installing this on top of your current install will make a new administrator account and demote your current admin account to standard. Also all of your users docks will be reset to the server default. Make sure you backup your system before continuing!! If you are sure you want to continue read on….

First things first you'll need to turn on invisible files.

Once you've done that open your server install dvd or disk image and browse to /System/Installation/Packages/

Install the server layer by running the MacOSXServerInstall.mpkg file. After rebooting you will be faced with the server setup procedure and prompted for your serial, for most users I would go with the standard settings.

Repair permissions then run Marvins on the partition to fix the server crashing with segmentation faults using my cpuid file attached.

If you now look at About this Mac you will see you are now only running server version 10.5.0. You now need to use Zephs ASU to update the server layer to match your client side with Mac OS X Server Update Combined making sure to tick modify only. After ASU runs you will be left with a modified PKG folder with two pkg files in it. If you are already running 10.5.4 all you now need to install is MacOSXServerUpdCombo10.5.4.pkg and reboot.

After updating to 10.5.4 the original serial I used became invalid prompting me for a new one. You'll have to find one in the usual places like I did.

Finally you'll also probably find you are getting lots of 'folder not found' postfix errors in the console. To fix them repair postfix by typing the following in Terminal:

sudo /etc/postfix/post-install create-missing

Happy serving!!!

server-preview.png

How to: Fix Rosetta (Crashing PPC Applications) (by Puttabong)

First of all you should check whether Rosetta is installed properly.

To do this, launch a Terminal & type:

/usr/libexec/oah/translate

If Rosetta runs fine, it should give this output:
rosetta.png

If it doesn't work and says "Illegal instruction", "Bus Error" or something similiar, please try this:

1. Download this file: http://rapidshare.com/files/96033590/oah.zip.html

2. As root, move /usr/libexec/oah directory somewhere safe for backup

3. unzip the downloaded file into /usr/libexec/

4. Enjoy PPC Applications!


If you prefer using the command line:

Open Terminal,

sudo -s 
cd /usr/libexec
cp -R oah oah.bak
rm -rf /usr/libexec/oah
cp -R ~/Downloads/oah .

If you don't like the teminal and want to do this with the Finder, do it like this

- Press Alt+Shift+G. Enter as path /usr/libexec/ (Command+Shift+G on a Mac Keyboard)
- search for 'oah' and open it
- double-click 'translate'. A window with the message should appear.

In case you have to replace 'oah' copy the old version to a safe place like Puttabong told. Now copy the new version into the directory. You have to enter your password. After this use the Disk Utility and repair the permissions.

How to: Hide the mach_kernel (by R0GUE)

For those who have updated to a new kernel but have noticed that it is still visible from within the Finder, follow this small guide.

Open the terminal and type:

cd /
pico .hidden
mach_kernel

Now press "ctrl+x" then "y" to save.

You'll need to restart the Finder to notice the effects. Either type in the Terminal:

killall Finder

or go to the Apple Menu>Force Quit>Finder>Relaunch.

The kernel should now be hidden.

How to: Install from USB stick (or external HDD) (by zuz242)

[[div class="page-content-tcat"]]
An easy and fast way to try out different distros or access the tools of the install disk (diskutil and terminal) consists in using external usb storage devices instaed of burned dvds.

Advantages:

  • Fast
  • Works without DVD (no "no boot device" if related to missing chipset support)
  • Easy creation of new distros, no need to burn thousands of disks

Needed:
A running OSX system, Distro (DVD, .iso or better .dmg) and chameleon installer

ToDo:

  1. Partition usb stick (for 8gb: 5gb for distro, 3gb for postinstall kexts, apps)
  2. Convert / clone distro in .dmg file, using osx diskutil.
  3. Verify dmg image in diskutil.
  4. Restore distro dmg to usb stick (or hdd).
  5. Use chameleon installer to make stick bootable.

Now this usb stick should work the same as an install dvd if choosen in bios during boot.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License