Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Update

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.