User`s guide
Using Command-Line Tools 33
Partition Disk Drives
pdisk
You can use this command-line tool to remove and replace existing hard disk partitions but
not to create new partitions. Make sure that the revised partitions use the same range of disk
blocks as the original partitions. This guide provides information for performing some
specialized tasks. To find out more, read the man pages for the tool.
To use this tool:
1 Log in to the server as the root administrator.
2 At the prompt, type:
pdisk
and at the next prompt type:
?
to see a list of top level commands you can use to perform different tasks using the pdisk
tool.
Note: If you use the df or disktool commands before you use pdisk to partition disks, you
may not be able to save your changes.
Initialize a File System
newfs
newfs_hfs
Use the newfs command-line tool to initialize a file system after you repartition hard disks
with the pdisk tool. There are many options for this tool. The steps given below produce a
wrapped HFS+ volume with default parameters. To find out more about this tool and other
parameters, read the man pages for the tool.
1 Log in to the server as the root administrator.
2 List the volumes you currently have, as you will need the /dev/diskXsY information for each
volume. To do this, type:
df -lk
to see something like this:
Filesystem 1K-blocks Used Avail Capacity Mounted On
/dev/disk1s9 8448000 2397216 6050784 28% /
LL2133.book Page 33 Friday, May 24, 2002 11:17 AM