Script to turn off optibay drive to full silence in Lion

Discussion in 'MacBook Pro' started by brandaopj, Jul 4, 2011.

  1. brandaopj macrumors member

    Joined:
    Mar 4, 2010
    Location:
    Portugal
    #1
    Hi,

    Does anybody know a script to full turn off the mechanical hard drive i have in the optibay so it doesn´t keep spinning?

    The scripts i used in leopard doesn´t work anymore. :(
     
  2. GermanyChris macrumors 601

    GermanyChris

    Joined:
    Jul 3, 2011
    Location:
    Here
    #2
    What did you use in Leopard?
     
  3. brandaopj thread starter macrumors member

    Joined:
    Mar 4, 2010
    Location:
    Portugal
    #3
    to eject:

    "touch /Volumes/Backup/.dummy;
    hdiutil eject `disktool -l | grep Backup |
    awk '{ print substr($0,20,7) }'`"

    and to mount:

    "diskutil mountDisk `disktool -l |
    grep Backup | awk '{ print substr($0,20,7) }'`"
     
  4. GermanyChris macrumors 601

    GermanyChris

    Joined:
    Jul 3, 2011
    Location:
    Here
    #4
    Thank you!
     

Share This Page