User`s guide
38 Chapter 4
Example 2: Divide a Secondary Hard Disk Into Two Partitions
In this example, you have a primary hard disk called disk 0 and a second 120 GB hard disk
called disk 1 that you want to divide into two 60 GB partitions.
Step 1: Start up from the hard disk
Start the server from the internal hard disk.
Step 2: Log in to the server
Open a SSH session and log in to the server as root.
Step 3: Use pdisk to find volumes
List all the device maps for the volumes. Type:
pdisk
L
The session, with example output, looks like this:
pdisk
Top level command (? for help): L
/dev/rdisk3 map block size =512
Step 4: Unmount the secondary hard disk
Use disktool to unmount (or eject) all the partitions of disk 1. To do this, type:
[localhost:~] root# disktool -u disk1 0
#: type name length base (size)
1: Apple_partition_map Apple Apple63 @ 1
2: Apple_Driver43*Macintosh 56 @ 64
3: Apple_Driver43*Macintosh 56 @ 120
4: Apple_Driver_ATA*Macintosh 56 @ 176
5: Apple_Driver_ATA*Macintosh 56 @ 232
6: Apple_FWDriver Macintosh 512 @ 288
7: Apple_Driver_IOKit Macintosh 512 @ 800
8: Apple_Patches Patch Partition 512 @ 1312
9: Apple_HFS part1 241252896 @ 1824 (115.0G)
LL2133.book Page 38 Friday, May 24, 2002 11:17 AM