1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 09:38:01 +01:00
tldr/pages/osx/diskutil.md
2016-01-08 09:38:59 +01:00

368 B

diskutil

Utility to manage local disks and volumes.

  • List all currently available disks, partitions and mounted volumes:

diskutil list

  • Repair the file system data structures of a volume:

diskutil repairVolume {{/dev/diskX}}

  • Unmount a volume:

diskutil unmountDisk {{/dev/diskX}}

  • Eject a CD/DVD (unmount first):

diskutil eject {{/dev/disk1}}