codesnippetshell

List drives

diskutil list #external to only list external drives

List only external drives

diskutil list external

Mount drives

diskutil mount </dev/n>

Eject drives

diskutil eject </dev/n>