tldr/pages/osx/diskutil.md

21 lines
425 B
Markdown
Raw Permalink Normal View History

# 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:
2014-02-17 16:13:27 +00:00
`diskutil repairVolume {{/dev/diskX}}`
- Unmount a volume:
`diskutil unmountDisk {{/dev/diskX}}`
- Eject a CD/DVD (unmount first):
`diskutil eject {{/dev/disk1}}`