diskutil from terminal

How do you start & use disk utility in terminal ?


my termial displays -bash - 3.2 #


I entered diskutil but get no response

iMac, OS X Mountain Lion (10.8.4)

Posted on Aug 19, 2013 8:33 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 19, 2013 9:08 AM

If you simply type diskutil in Terminal, it will show you this:


Disk Utility Tool

Utility to manage local disks and volumes

Most options require root access to the device


Usage: diskutil [quiet] <verb> <options>, where <verb> is as follows:


list (List the partitions of a disk)

info[rmation] (Get information on a specific disk or partition)

listFilesystems (List file systems available for formatting)

activity (Continuous log of system-wide disk arbitration)


u[n]mount (Unmount a single volume)

unmountDisk (Unmount an entire disk (all volumes))

eject (Eject a disk)

mount (Mount a single volume)

mountDisk (Mount an entire disk (all mountable volumes))


enableJournal (Enable HFS+ journaling on a mounted HFS+ volume)

disableJournal (Disable HFS+ journaling on a mounted HFS+ volume)

moveJournal (Move the HFS+ journal onto another volume)

enableOwnership (Treat as exact User/Group IDs for a mounted volume)

disableOwnership (Ignore on-disk User/Group IDs for a mounted volume)


rename[Volume] (Rename a volume)


verifyVolume (Verify the file system data structures of a volume)

repairVolume (Repair the file system data structures of a volume)


verifyDisk (Verify the components of a partition map of a disk)

repairDisk (Repair the components of a partition map of a disk)


verifyPermissions (Verify the permissions of a Mac OS X volume)

repairPermissions (Repair the permissions of a Mac OS X volume)


eraseDisk (Erase an existing disk, removing all volumes)

eraseVolume (Erase an existing volume)

reformat (Erase an existing volume with same name and type)

eraseOptical (Erase optical media (CD/RW, DVD/RW, etc.))

zeroDisk (Erase a disk, writing zeros to the media)

randomDisk (Erase a disk, writing random data to the media)

secureErase (Securely erase a disk or freespace on a volume)


partitionDisk ((re)Partition a disk, removing all volumes)

resizeVolume (Resize a volume, increasing or decreasing its size)

splitPartition (Split an existing partition into two or more)

mergePartitions (Combine two or more existing partitions into one)


appleRAID <verb> (Perform additional verbs related to AppleRAID)

coreStorage <verb> (Perform additional verbs related to CoreStorage)


diskutil <verb> with no options will provide help on that verb


For a full manual, in Terminal, type:


man diskutil


Press Q at any time to exit the manual.

4 replies
Question marked as Top-ranking reply

Aug 19, 2013 9:08 AM in response to Samurai2k

If you simply type diskutil in Terminal, it will show you this:


Disk Utility Tool

Utility to manage local disks and volumes

Most options require root access to the device


Usage: diskutil [quiet] <verb> <options>, where <verb> is as follows:


list (List the partitions of a disk)

info[rmation] (Get information on a specific disk or partition)

listFilesystems (List file systems available for formatting)

activity (Continuous log of system-wide disk arbitration)


u[n]mount (Unmount a single volume)

unmountDisk (Unmount an entire disk (all volumes))

eject (Eject a disk)

mount (Mount a single volume)

mountDisk (Mount an entire disk (all mountable volumes))


enableJournal (Enable HFS+ journaling on a mounted HFS+ volume)

disableJournal (Disable HFS+ journaling on a mounted HFS+ volume)

moveJournal (Move the HFS+ journal onto another volume)

enableOwnership (Treat as exact User/Group IDs for a mounted volume)

disableOwnership (Ignore on-disk User/Group IDs for a mounted volume)


rename[Volume] (Rename a volume)


verifyVolume (Verify the file system data structures of a volume)

repairVolume (Repair the file system data structures of a volume)


verifyDisk (Verify the components of a partition map of a disk)

repairDisk (Repair the components of a partition map of a disk)


verifyPermissions (Verify the permissions of a Mac OS X volume)

repairPermissions (Repair the permissions of a Mac OS X volume)


eraseDisk (Erase an existing disk, removing all volumes)

eraseVolume (Erase an existing volume)

reformat (Erase an existing volume with same name and type)

eraseOptical (Erase optical media (CD/RW, DVD/RW, etc.))

zeroDisk (Erase a disk, writing zeros to the media)

randomDisk (Erase a disk, writing random data to the media)

secureErase (Securely erase a disk or freespace on a volume)


partitionDisk ((re)Partition a disk, removing all volumes)

resizeVolume (Resize a volume, increasing or decreasing its size)

splitPartition (Split an existing partition into two or more)

mergePartitions (Combine two or more existing partitions into one)


appleRAID <verb> (Perform additional verbs related to AppleRAID)

coreStorage <verb> (Perform additional verbs related to CoreStorage)


diskutil <verb> with no options will provide help on that verb


For a full manual, in Terminal, type:


man diskutil


Press Q at any time to exit the manual.

Aug 19, 2013 3:52 PM in response to Samurai2k

Type the word “diskutil” in the Terminal. Instead of pressing return, either control-click or right-button click on the word and choose Open man Page from the contextual menu. Now, if you do not want to use the graphical Disk Utility, you will have a standalone manual page displayed that will assist you in using diskutil from the Terminal.


If you want to customize the visual appearance of your displayed man page, you can select Terminal preferences and find the profile named Man Page.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

diskutil from terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.