Skip to content

Instantly share code, notes, and snippets.

@stvhwrd
Last active May 24, 2018 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stvhwrd/f21f4ec2e54db42f84e7 to your computer and use it in GitHub Desktop.
Save stvhwrd/f21f4ec2e54db42f84e7 to your computer and use it in GitHub Desktop.
Sleep all disks on Mac after 1 minute of inactivity

If you've added a second hard drive to your Macbook and are finding that it spins up too often/long (i.e. noisy, eats battery)

Instruct the OS to put all disks to sleep after 1 minute of inactivity:

sudo pmset -a disksleep 1

tested on Apple MacBook Pro (Late 2011) - OS X 10.10.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment