|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How to turn drives off after a period of time?
I can't seem to find this. I have an app that checks a web page every minute, saves a copy when it changes and faxes it somewhere. Sometimes it goes a whole day without doing anything so it's a waste to have the hard drives spinning. How can I turn the drives off after so many minutes of inactivity and have them spin up when my script tries to save to it?
|
|
||||
AFAIK, ATA disk spin-down is a function of APM. According to apm(4), this feature was not implemented in FreeBSD 7.
(I only know about it because of OpenBSD's atactl(8), which has an apmset command. Equivalent functionality is not available from FreeBSD's atacontrol(8) utility.) |
|
|||
Quote:
Quote:
__________________
May the source be with you! Last edited by Beastie; 30th April 2009 at 07:01 AM. |
|
|||
There is also ataidle available in ports tree.
|
|
|||
Under atacontrol:
Quote:
|
|
|||
As mentioned above, that functionality isn't available in FreeBSD so looks like ataidle will have to do. Thanks, Richard.
|
|
|||
atacontrol spindown is same as ataidle -I (I guess)
-P flag from atailde controls APM, which is not really usefull in your case. In other words ataidle just have few fetures more than atacontrol. In your case running "ataidle -o" should conserve maximal energy (just make sure it got called only few times per day) |
|
|||
Quote:
What FreeBSD version are you using? Because it seems to work under 7.1. Also from the release notes: The atacontrol(8) utility now supports a spindown command to set or report timeout after which the device will be spun down.
__________________
May the source be with you! |
|
|||
Then I'm wrong because I forgot to say this box is under fbsd6. That's good news cause I prefer doing it that way but I don't have the right version right now.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't turn off laptop speaker | GullibleJones | OpenBSD General | 5 | 22nd November 2008 03:40 AM |
Yet another question about hot swapping drives | PeterSteele | FreeBSD General | 1 | 13th November 2008 01:54 AM |
can't access ZFS drives | Bubba_HoTep | FreeBSD General | 6 | 6th November 2008 02:06 PM |
Turn off daylight savings adjust?? | biscuits | FreeBSD General | 3 | 24th October 2008 05:26 AM |
Automounting drives | jwhal | OpenBSD General | 4 | 12th June 2008 05:00 PM |