Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-14-2007, 02:25 AM   #1
Registered: Jan 2007
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
Power Management- Ubuntu

On my old Windows box there was a setting where I could have it shut down the hard-drives after X amount of time. This is different from hibernation where the entire computer goes to sleep-- the main thing is that I want my mounted drive to be turned off most of the time and to wake up only when I need it.

Is there an equivalent way I can do this in Ubuntu Dapper?
Old 03-15-2007, 01:03 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61

For a few weeks I have been exploring Edgy Eft. I am far from an expert, but I am not aware of a way to do this from a GUI. But if you're using IDE drives, I think you should be able to do what you want by adding commands to /etc/rc.local. The only reason I could think why this might not work would be if Ubuntu came along later and overrode them. (Something I didn't use to worry about! ) Anyway, you would use one command for each drive, something like:

hdparm -q -S 240 /dev/hda
The above command would spin the drive down after 20 minutes of inactivity. But be warned that that number is not intuitive. Check the hdparm man page for how that value maps to time.
Old 03-15-2007, 05:16 PM   #3
Registered: Jan 2007
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks, I'll give that a whirl.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Power Management for Ubuntu LXer Syndicated Linux News 0 12-26-2006 11:21 AM
Power Management FrayAdjacent Fedora 2 03-02-2005 10:33 PM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 02:17 PM
Power Management(sysfs) /sys/power/state mavrick613 Linux - General 0 05-24-2004 04:04 PM
Power management raypen Slackware 4 04-27-2003 12:57 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration