mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

As of El Capitan, `sudo diskutil repairPermissions /` returns `diskutil: did not recognize verb "repairPermissions"; type "diskutil" for a list` since repairPermissions has been removed. In the interest of keeping this tldr-compatible I've removed it. In the interest of not leaving things out, there could instead be a "this no longer works" notice.
19 lines
364 B
Markdown
19 lines
364 B
Markdown
# 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}}`
|