User`s guide
34 Chapter 4
3 Unmount the volume from the system. To do this, type this command, replacing <diskXsY>
with the information you found in the list (“0” is the default flag):
/usr/sbin/disktool -p <diskXsY> 0
For example, to unmount the device above, type:
usr/sbin/disktool -p disk1s9 0
Note: If you have a RAID volume, you will only see /dev/diskX. If so, use “disktool -u”
instead of “disktool -p” to unmount it.
4 Initialize the file system. To do this, type:
/sbin/newfs_hfs -w -v <newvolumename> /dev/rdiskXsY
5 If you receive no warnings or error messages, remount the disk with this command:
/usr/sbin/disktool -m <diskXsY> 0
To return to the shell prompt, press the Control key and type c.
Example 1: Divide One 120 GB Disk Drive Into Two 60 GB Partitions
This example illustrates how to use pdisk and newfs to partition a 120 GB disk drive into two
60 GB partitions and initialize the partitions.
Step 1: Start up from a CD
To start up from the Mac OS X Server CD:
1 Press and hold the system identifier button while you press the power button.
2 Continue to hold the system identifier button until the system identifier light flashes and
the CD tray opens.
3 Release the system identifier button and insert the Mac OS X Server CD in the tray.
4 Close the tray. The server starts up from the CD.
Step 2: Log in to the server
Open a SSH session and log in to the server as root.
LL2133.book Page 34 Friday, May 24, 2002 11:17 AM