tldr/pages.zh/osx/diskutil.md

21 lines
429 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# diskutil
> 用于管理本地磁盘和卷的实用程序。
> 更多信息:<https://ss64.com/osx/diskutil.html>.
- 列出所有当前可用的磁盘、分区和已装入的卷:
`diskutil list`
- 修复卷的文件系统数据结构:
`diskutil repairVolume {{目标卷文件}}`
- 卸载卷:
`diskutil unmountDisk {{目标卷文件}}`
- 弹出 CD/DVD先卸载
`diskutil eject {{/dev/ 光驱文件名}}`