mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 10:42:26 +00:00
27 lines
643 B
Plaintext
27 lines
643 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, osx]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# diskutil
|
|
|
|
> Utility to manage local disks and volumes.
|
|
> Some subcommands such as `diskutil partitiondisk` have their own usage documentation.
|
|
> More information: <https://keith.github.io/xcode-man-pages/diskutil.8.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}}`
|