Skip to content

Instantly share code, notes, and snippets.

@justinmoh
Created January 7, 2016 03:39
Show Gist options
  • Select an option

  • Save justinmoh/105a0506d696beec0d37 to your computer and use it in GitHub Desktop.

Select an option

Save justinmoh/105a0506d696beec0d37 to your computer and use it in GitHub Desktop.
A script to unmount your **unwanted** drives / partitions. Use conjunction with Automator, and add it into User's Login Items to allow automatic unmount on system startup. You can easily mount them back with Disk Utility.
#!/usr/bin/env bash
diskutil umount "Install OS X Yosemite"
diskutil umount "System Clone"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment