Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
How automatically stop HDD rotation
View previous topic :: View next topic  
Author Message
amit3
Junior Member


Joined: 09 Apr 2012
Posts: 15

PostPosted: Thu Apr 12, 2012 10:56 am    Post subject: How automatically stop HDD rotation Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu Apr 12, 2012 12:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
amit3
Junior Member


Joined: 09 Apr 2012
Posts: 15

PostPosted: Fri Apr 13, 2012 2:38 pm    Post subject: Reply with quote

I tried:

root@slackware:/# hdparam
sh: hdparam: command not found

What to do?
Sorry. I'm not good in linux Smile
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Fri Apr 13, 2012 2:43 pm    Post subject: Reply with quote

It's hdparm not hdparam Wink

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
amit3
Junior Member


Joined: 09 Apr 2012
Posts: 15

PostPosted: Fri Apr 13, 2012 5:58 pm    Post subject: Reply with quote

Oh...., yes!))) Smile
Back to top
View user's profile Send private message
amit3
Junior Member


Joined: 09 Apr 2012
Posts: 15

PostPosted: Sat Apr 21, 2012 11:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Apr 22, 2012 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional