Mount & Unmount Drives from the Command Line in Mac OS X
You can mount and unmount drives, volumes, and disks from the command line of MacOS and Mac OS X.
For many users, the easiest way to unmount a drive in Mac is to either just drag a volume into the Trash, use the eject keys, disconnect the drive, or use one of the force eject methods. Along the same lines, if you want to remount a drive you can usually just physically unplug the drive and plug it back again. But what if you want to be able to mount, unmount, and remount drives from the command line? That’s exactly what we’ll cover here.
Read more »