Start/stop external hard drive? [duplicate]

Solution 1:

You could use pmset disksleep TIME to set a timeout for the disk to go into standby mode. This way, you wouldn't have to mount/unmount the disk every time you want to access it. TIME is the time in minutes.

If you set the time to 0, the timeout is disabled, so if you want to keep it spinning you can set it to that.