Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed a second HDD in my MacBook Pro, by replacing the CD drive. I can "Eject" the drive and then it stops spinning and thus using extra power. However, if I put the computer to sleep and wake it up again the drive does no show up (can't "eject" again) but it is spinning.

How can I re-insert / re-mount the internal drive after ejecting? Is there a better way to manage the drive / power?


I realized I can use "Disk Utility" to remount the drive, and then I can use finder to eject the drive again (and make it power down). But is there:

  • A way I can use a script to unmount / eject the drive?
  • A way to have (whatever) scripts automatically run on resume from sleep?

enter image description here

share|improve this question
Have you tried mounting in Disk Utility? – Daniel Beck Jul 3 '11 at 16:38
up vote 0 down vote accepted

You could use an applescript along the lines of

do shell script "diskutil mount /dev/disk1s2"
do shell script "diskutil eject /dev/disk1s2"

replacing disk1s2 with the one you're working with... I'm terrible at terminal commands and scripting so there's probably a better way to get the disk in question. Hopefully someone else also answers and fixes that.

Then you can attach the script to SleepWatcher or Power Manager to execute on sleep. The former requires some command line scripting and what not. I don't know of any way that doesn't require third party software.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .