2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-05 12:00:16 +00:00
cheat.sheets/sheets/diskutil

15 lines
353 B
Plaintext
Raw Normal View History

2017-06-04 20:46:48 +00:00
# diskutil
# Utility to manage local disks and volumes (Mac OS X)
2017-06-04 14:35:24 +00:00
2017-06-04 20:46:48 +00:00
# List all currently available disks, partitions and mounted volumes:
diskutil list
2017-06-04 14:35:24 +00:00
2017-06-04 20:46:48 +00:00
# Repair the file system data structures of a volume:
diskutil repairVolume /dev/diskX
2017-06-04 14:35:24 +00:00
2017-06-04 20:46:48 +00:00
# Unmount a volume:
diskutil unmountDisk /dev/diskX
2017-06-04 14:35:24 +00:00
2017-06-04 20:46:48 +00:00
# Eject a CD/DVD (unmount first):
diskutil eject /dev/disk1