Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Name

diskutil

Synopsis

diskutil list

diskutil mount[Disk] device
diskutil { info[rmation] | unmount[Disk] | eject | verifyDisk | 
repairDisk | enableJournal | disableJournal | verifyPermissions 
| repairPermissions } { mount_point | device }
diskutil rename { mount_point | device } vol_name
diskutil eraseVolume format vol_name [bootable] { mount_point | 
device }
diskutil eraseDisk format vol_name [OS9Drivers] [bootable] 
{ mount_point | device }
diskutil eraseOptical [quick] { mount_point | device }
diskutil partitionDisk device num_partitions [OS9Drivers] 
[bootable] part1_format part1_name part1_size [part2_format  part2_name part2_size ]
diskutil checkRAID
diskutil createRAID { mirror | stripe } set_name [bootable] 
{ HFS | HFS+ | UFS | BootableHFS+ } device1 device2 [device3]
diskutil destroyRAID { set_UUID | device }
diskutil repairMirror { set_UUID | device } partition_num from_ device to_device
                  

Controls disk volumes, including mounting, unmounting, ejecting, erasing, journaling, partitioning, fixing permissions, and setting up RAIDs. This is a command-line analog of the Disk Utility application, and contains functionality beyond the somewhat less user-friendly disktool.

Volumes are specified by mount point (directory on which the volume is mounted) or device name (e.g., disk0s1).

Options

checkRAID

Checks the status of RAID sets. Requires privileged access.

createRAID

Creates a mirror (RAID 1) or a stripe (RAID 0) on a set of devices. Requires privileged access.

destroyRAID

Destroys ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata