User`s guide
Using Command-Line Tools 41
Step 10: Exit
Type q to exit the pdisk tool. Then use the cd command to change to the /dev directory and
the ls command to list the partitions on the disk. The session looks like this:
Top level command (? for help): q
The end
[localhost:~] root# cd /dev
[localhost:/dev} root# ls disk2*
disk2 disk2s1 disk2s2
Step 11: Initialize the new partitions
Use newfs_hfs to initialize the partition. You will now have new dev entries related to the
partition maps available in /dev/disk*. The session looks like this:
[localhost:/dev} root# newfs_hfs -w -v HFSVolume1 /dev/disk2s1
newfs_hfs: /dev/disk2s1 is mounted on /Volumes/volume5
[localhost:/dev} root# newfs_hfs -w -v HFSVolume2 /dev/disk2s2
Initialized /dev/disk2s2 as a 58 GB HFS Plus volume
[localhost:/dev} root# reboot
Connection to 192.167.100.100 closed by remote host.
Connection to 192.167.100.100 closed.
LL2133.book Page 41 Friday, May 24, 2002 11:17 AM