System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

diskutil

Utility to manage local disks and volumes. More information: https://ss64.com/osx/diskutil.html.
  • List all currently available disks, partitions and mounted volumes:
    diskutil list
  • Repair the filesystem data structures of a volume:
    diskutil repairVolume {{/dev/disk_device}}
  • Unmount a volume:
    diskutil unmountDisk {{/dev/disk_device}}
  • Eject a CD/DVD (unmount first):
    diskutil eject {{/dev/disk_device1}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.