Command Details

$ diskutil eject /dev/diskX

Eject a disk.