LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to power down the HDD a la Mac OSX (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-power-down-the-hdd-a-la-mac-osx-505095/)

PGriffin 11-26-2006 07:03 PM

How to power down the HDD a la Mac OSX
 
Can anybody tell me if it is possible to power down an inactive HDD until.I am using Ubuntu. This is a feature that is part of the Mac OSX power management App.

thanks in advance.

macemoneta 11-27-2006 12:14 AM

Take a look at the man page for the hdparm command, specifically the '-S' and '-y' options.

PGriffin 11-28-2006 07:46 AM

Took your suggestion, '-s' seems like the correct parameter to set. With my limited knowledge of unix I am not quite sure how to implement the command, Is there a configuration file or .... that should include this command.

Thanks for your help.

Peter

macemoneta 11-28-2006 09:26 AM

The place you want to put it is in /etc/rc.local. This file will be executed after all the services are started, but before X is started. You'll need to full qualify the path, since the environment is not setup at that point. For example:

/sbin/hdparm -S24 /dev/hda

Also, keep in mind that the parameter is '-S', not '-s'; case is important.

PGriffin 12-01-2006 07:48 AM

Worked as advertised, with thanks.

P


All times are GMT -5. The time now is 06:14 PM.