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
|