How to Extract the Windows Driver CD From Boot Camp Assistant

Burn the DMG image file located in the “Resources” folder which is inside the Boot Camp Package. The Boot Camp package is in the utilities folder and is what you click on to run Boot Camp Assistant.

  1. Right-click over the Boot Camp Assistant app in the Utilities folder.
  2. Select “Show Package Contents”
  3. Open the Contents folder and then the Resources folder
  4. Burn the DMG image file in that folder. The DMG image file will probably be named DiskImage.dmg

NOTE: These procedures are for Boot Camp beta running in Mac OS X Tiger 10.4. In Mac OS X 10.5 Leopard you can just use the Leopard install CD/DVD as the Windows driver CD.

iMac XP

OS X – How to Search For a Substring Inside of GZIP and BZ2 Files

This tip is really a generic *Nix command so it should not only work in OS X but also in other flavors of UNIX such as Linux.

In OS X a lot of the log files are auto-archived into compressed GZIP files in Tiger (Mac OS X 10.4) and BZ2 files in Leopard (Mac OS X 10.5). If you need to search for an occurrence of a word or other string of text in a compressed GZIP file, you can use the following terminal command:

zgrep someString theLogFileName.log.gz

As an example, say you want to search for the word “error” in a compressed system log in Tiger. To do this you would launch the Terminal application and run the command:

zgrep error /var/log/system.log.0.gz

Alternatively you can search all compressed system log files in a single command by using an asterisk (*) as a “wild card” character:

zgrep error /var/log/system.log*

Leopard uses the BZ2 compression scheme for most of its log files and you can similarly search those files by using the bzgrep command. For example, say you wanted to search all the application firewall logs for instances of the word “connection”. To do this you would run the following command in the Terminal application:

bzgrep connection /var/log/appfirewall.log*

If you need to search for a string that consists of more than one word separated by spaces, you would need to surround the search string in quotation marks:

bzgrep "connection attempt" /var/log/appfirewall.log*

Sherlock

Xserve MegaRAID – How to Create a RAID Volume

To set up a MegaRAID with Raid 5 on an Xserve follow these steps:

1. Boot the server from OSX Server CD

2. Open the Terminal application

3. Type in the command

megaraid -create auto

4. Close the Terminal application

5. Open the Disk Utility application

6. Create a new partition on the new RAID drive with the Disk Utility application

7. Reinstall the operating system with the Mac OS X server CD or DVD

8. Done

Xserve MegaRAID – How to Stop a Consistency Check

If on reboot the server does a consistency check of the RAID, this process can take a very long time. It may take upwards of 8 or more hours. There isn’t really any indication an Xserve is doing a consistency check on reboot. What happens is the Xserve boots to a gray screen or if you try to hold down the option key the screen will just sit there like it is searching for bootable partitions. Every once in a while you will see the drive activity lights blink but other than that there is no real indication the consistency check is running.

If you want to abort the consistency check and prevent it from automatically running on the next reboot of the server you can boot from a Tiger/Leopard installation CD/DVD and then launch the terminal app from that. Then you need to manually start and then stop a consistency check. After you stop the consistency check, this resets whatever flag the Xserve reads which tells it to automatically run the consistency check on reboot. So now when you reboot the Xserve it should not try to run the consistency check and instead proceed with booting the server normally. Here are the commands to manually start and stop the consistency check:

megaraid -chkcon ld -start
megaraid -chkcon ld -stop

In the commands above, replace “ld” with the logical drive number of the RAID you want to check. You can get the logical drive number by running the command:

megaraid -showconfig