Mac OS X Unleashed

Mac OS X Unleashed

By John Ray and William C. Ray

Preparing Your Drive for Mac OS X

If you've made the decision to move forward with the installation of Mac OS X, you'll need to prepare your hard drive for installation. Mac OS X is very flexible in the possible system configurations allowed, and supports multiple partitions and both UFS and HFS+ out of the box.

Simple Upgrade from Mac OS 9.x

Determining the best configuration depends entirely on your needs. The simplest path to Mac OS X, while maintaining your current system software setup, is to upgrade to Mac OS 9.x9.x, and then perform the OS X installation. Apple recommends this approach only if you have existing data and cannot start from scratch.

If you are using Mac OS 8.5 or earlier, you will need to purchase the full Mac OS 9 CD and perform the upgrade like you normally would. Mac OS 9.x is a free update to 9.0 and is available for download from Apple's Web site (http://www.apple.com/).

Any system that has been upgraded to Mac OS 9.x is ready to run the OS X installation, with a few minor exceptions. Due to differences in the drive controllers, the following machines might require special preparations:

If you are using one of these machines, you might find that Mac OS X does not allow you to select your boot drive during the installation procedure. If this is the case, and you have the prerequisite 1.5GB of available space, the problem lies with your disk partition layout, not the install program.

When installing on one of the listed computers, Mac OS X must reside within the first 8GB of the drive. There are two likely scenarios that would prevent the installation from continuing:

Unfortunately, the Macintosh does not support partitioning without destroying the data on your drives. If your computer is one of the affected models and your drive requires partitioning, the only option is to back up your computer, repartition, and then continue with the installation. We'll look at the process of partitioning in the "Partitioning Your Drive" section later in this chapter. Assuming that issues with drive partitioning do not affect your machine, you can proceed directly to the Mac OS X installation guide.

Performing a Clean Installation

Although upgrading an existing 9.x installation is acceptable, it might not lead to the best possible system performance. Many users have found that Mac OS X's Classic environment is incompatible with various system extensions that they were using at the time of the upgrade. The process of finding the incompatible extensions while running Mac OS X is time-consuming and nonintuitive. Personally, I recommend starting from scratch with Mac OS X. Apple has done an admirable job of allowing OS X to install on top of the older OS; however, if a problem does occur, it might not be easy to track down.

Another consideration is drive partitioning. If you've decided to go with a clean install, you might want to think about partitioning your existing drive into separate volumes for Mac OS 9 and Mac OS X.

Partitioning Your Drive

Partitioning creates one or more logical volumes contained within the single hard disk. This process is often used to separate system-critical files from user files. Standard Unix implementations usually have multiple partitions for the operating system, user directories, applications, and application support files. Mac OS X breaks this tradition by using a single primary partition for all data.

For the time being, it's easier to follow the OS X all-in-one model than it is to fight it. Multiple partitions are visible under Mac OS X, but to use them with the base operating system as anything other than additional file storage, you'll need to work directly with the command line. Because Apple is pushing its auto-update application, making changes to the base configuration of the operating system by hand is not advisable.

So, if Apple isn't making drive partitioning a necessity, why bother doing it at all? There are a few reasons why a partitioned drive might be beneficial to your system:

Creating the Partitions

The first step in partitioning your drives is to choose the type of file system that will be installed on the partition.

As mentioned earlier, two types of file systems are supported within Mac OS X:

The recommended file system for Mac OS X installations is HFS+. HFS+ has been the Macintosh file system since the late 1990s, and is compatible with your existing Mac drives. UFS, on the other hand, exists for compatibility in Unix environments. If you're using OS X on its own, or with other Macs, choose HFS+.

There is one very important difference between HFS+ and UFS that might cause nervous breakdowns for those used to working within a Unix environment: The Macintosh file system has been, and continues to be, case insensitive.

This means that a file named John.doc is identical to one named john.doc. Case insensitivity is one of the ease-of-use features of the Macintosh that does not translate well into the Unix environment. Programmers who have written scripts that use differences in case to differentiate between files will have to rework the applications to function in a case-insensitive environment.

The case issue can cause problems if a Mac OS X installation is required to provide complete compatibility with existing Unix software. If you're using OS X as a migration platform from Linux or another Unix system, you might want to consider using UFS rather than having to review all the code that is currently in place.

Assuming that you're going with the HFS+ file system, you'll need to choose the size and number of partitions to be created. In the original HFS implementation, file allocation block size was determined by dividing the total drive storage by 65,536. As drive space grew, storage efficiency plummeted. The HFS+ file system uses 4KB blocks no matter what the size of the containing partition. Because of this, partitioning is no longer necessary to maintain drive efficiency. Other than the reasons already discussed, your partition sizes are up to you.

Running Drive Setup

When you're ready to partition your drive, boot your Macintosh from the 9.x CD that is included in your Mac OS X package. To boot from the CD, start the computer with the CD-ROM in the drive while holding down the C key. It is important that you use the Apple-supplied 9.x CD rather than an earlier version of the operating system. Version 1.8.1 of the HD Setup tool creates UFS partitions that are incompatible with Mac OS X.

On booting your Macintosh from Mac OS 9.x, start the Drive Setup application located in the Utilities folder. The program should show a list of the available hard drives, as shown in Figure 2.6. On a system with a single drive, there will be two entries: one for the CD that booted the system and one for the hard drive.

02fig06.gif

Figure 2.6 Choose the hard drive that you want to set up.

To begin the process of partitioning, choose the disk in the list that matches the drive you want to use for your Mac OS X installation. EIDE drives are listed under the type ATA, whereas SCSI disks are of the type SCSI. After making your selection, click the Initialize button.

Choosing a Partition Scheme

Drive Setup will warn you, as demonstrated by the dialog box in Figure 2.7, that all the data on your drive is about to be deleted.It will also give you the option to create a custom setup. This is where you can choose the partition scheme you'd like, or choose between the HFS+ and UFS file systems.

02fig07.jpg

Figure 2.7 Click Custom Setup to create a new partition scheme.

The Custom Setup dialog box makes it easy to create multiple partitions on a drive. The left portion of the window shows a visual representation of the hard drive and the subvolumes (partitions) that have been created. A black border surrounds each partition. This border can be dragged to change the amount of space allocated to that partition.

To the right of the highlighted partition is displayed the name, type, and size (in megabytes) of the selected item. You can change these values to change the type and size of the partition. To create a partition scheme, choose the number of partitions that you want to use from the Partitioning Scheme pop-up menu located at the top of the dialog box. Figure 2.8 shows a dual partition schema with two Mac OS Extended (HFS+) partitions.

02fig08.jpg

Figure 2.8 Create your partition scheme.

If you want to delete partitions, select them and press the Delete key on your keyboard, or choose a new schema from the pop-up menu and start again. By default, the partitions that you create will use the Mac OS Extended file system. Unless you plan to use UFS, no changes should need to be made to the partition type.

After choosing the partition layout, click the OK button to go back to the warning screen that cautions about all data being destroyed. If you're sure that there's nothing you want on the disk, click Initialize.

Drive Setup will take approximately 10 seconds per partition to initialize your new drive structure. After initialization is completed, the drives will be mounted on your Mac OS 9.x desktop.

You should take this opportunity to name the two drives. The first partition (named "untitled") will typically be the Mac OS X partition. Again, if you're using one of the older iMacs/G3s, the first partition might have to be the Mac OS X partition. The subsequent partitions will be named untitled2, untitled3, and so on. Assuming that you've created a two-partition configuration, the second partition can be named Mac OS 9.x. Although this isn't necessary for Mac OS X to be installed correctly, it will help you identify the appropriate drives to choose during your Mac OS X installation.

You're now ready to install Mac OS 9.x.

Share ThisShare This

Informit Network