View previous topic :: View next topic |
Author |
Message |
amit3 Junior Member
Joined: 09 Apr 2012 Posts: 15
|
Posted: Thu Apr 12, 2012 10:56 am Post subject: How automatically stop HDD rotation |
|
|
Hi, thank you for SMS!)
How can I set SMS to stop automatically my HDD rotation after preset period of unused time? Command line mode, without KDE. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Apr 12, 2012 12:01 pm Post subject: |
|
|
Using hdparm.
60 = 5 minutes
120 = 10 minutes
180 = 15 minutes
Code: | hdparm -S120 /dev/yourdevice |
"man hdparm" for help.
Quote: | Values from 1 to 240 specify multiples of 5 seconds, yielding timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5 hours. |
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
amit3 Junior Member
Joined: 09 Apr 2012 Posts: 15
|
Posted: Fri Apr 13, 2012 2:38 pm Post subject: |
|
|
I tried:
root@slackware:/# hdparam
sh: hdparam: command not found
What to do?
Sorry. I'm not good in linux  |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Apr 13, 2012 2:43 pm Post subject: |
|
|
It's hdparm not hdparam
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
amit3 Junior Member
Joined: 09 Apr 2012 Posts: 15
|
Posted: Fri Apr 13, 2012 5:58 pm Post subject: |
|
|
Oh...., yes!)))  |
|
Back to top |
|
amit3 Junior Member
Joined: 09 Apr 2012 Posts: 15
|
Posted: Sat Apr 21, 2012 11:20 pm Post subject: |
|
|
I have /dev/sda1 /dev/sda2 /dev/sda3 as my parts of single HDD disk,
this command (hdparm) doesn't stop rotation for some reason.
Tried
# hdparm -S2 /dev/sda1
# hdparm -S2 /dev/sda2
# hdparm -S2 /dev/sda3
and also
# hdparm -S2 /dev/sda
-no effect even after an hour.
I guess some SMS daemon may be frequently accessing my HDD and hdparm takes no effect? |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Apr 22, 2012 6:47 am Post subject: |
|
|
Well -S2 (10sec) might be a little to quick for an HDD to respond, try something above 30sec.
The command is passed to disk and not to partitions, so you have to pass it to
/dev/sda.
Now if the disk has no activity for the time you set e.g. 2 minutes or 30 seconds it will spin down disk, but since your /dev/sda is your OS disk, might not spin down at all, depending on the services you are running.
If you have a second disk, you can try it there...
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|