Specifications

90 Chapter 7 Working with Disks and Volumes
To list the disks known and available on the computer:
$ diskutil list
If your system is an Xserve computer, you can use this command to determine which
drive is in which bay.
To erase and repartition a disk:
$ diskutil partitionDisk
disk
numberOfPartitions
<
part1Format
part1Name
part1Size
> <
part2Format
part2Name
part2Size
> …
Because HFS+ is case preserving but not case sensitive, there might be times when you
would want to set the file system to be case sensitive. Use the diskutil tool to format
a drive for case-sensitive HFS+.
To mount a volume:
$ diskutil mountDisk
diskvol
Parameter Description
disk
Device name (such as disk0).
numberOfPartitions
Number of partitions.
part1Format
The format of the volume. The valid formats or filesystem names
available in Disk Utility are:
 Journaled HFS+”—corresponds to Mac OS Extended (Journaled)
and is the default and recommended startup volume format.
 HFS+—corresponds to Mac OS Extended.
 “Case-sensitive Journaled HFS+”—corresponds to Mac OS
Extended (Case-sensitive, Journaled).
This format is available for the erase and install” option for local
installations, is not available for remotely controlled installations,
and might have issues with third-party applications.
 “Case-sensitive HFS+”—corresponds to Mac OS Extended (Case-
sensitive).
 “MS-DOS FAT32”—corresponds to MS-DOS (FAT).
 Swap—corresponds to Free Space.
 ZFS—corresponds to Zettabyte File System (ZFS).
Other valid formats are HFS, “MS-DOS FAT16”, MS-DOS, “MS-DOS
FAT12”, Linux, and UFS. UFS is not a supported boot volume format.
The available formats for erasing, partitioning, and creating RAID
sets are specified in a plist file for each filesystem (/System/Library/
Filesystems/fs_name.fs/Contents/Info.plist, where fs_name is an
acronym in lower case representing the filesystem).
part1Name
The name of the partition.
part1Size
The size of the partition in bytes (such as 98187445B),
kilobytes (such as 810240K), megabytes (such as 4024M),
gigabytes (such as 4G), or terabytes (such as 1T).
Parameter Description
diskvol
Device name