O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

diskutil

Synopsis

diskutil list [device]
diskutil mount[Disk] device
diskutil { info[rmation] | unmount[Disk] | eject | reformat | verifyDisk |
 repairDisk |
enableJournal | disableJournal | verifyPermissions | repairPermissions |
 eraseOptical [quick] | secureErase | zeroDisk | randomDisk [integer] } { mount_
point | device } diskutil repairOS9Permissions
diskutil rename { mount_point | device } vol_name
diskutil eraseVolume format vol_name { mount_point | device }
diskutil eraseDisk format vol_name [OS9Drivers] { mount_point | device }
diskutil secureErase [freespace] [format] { mount_point | device }
diskutil partitionDisk device num_partitions [OS9Drivers | MBRFormat] part1_
format part1_name part1_size [part2_format part2_name part2_size ...]
diskutil checkRAID
diskutil createRAID { mirror | stripe } set_name format device1 device2 [device3...]
diskutil enableRAID mirror device
diskutil destroyRAID { set_UUID | device }
diskutil addToRAID { member | spare } set_name device1
diskutil removeFromRAID set_name device1
diskutil updateRAID key value device1
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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required