LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2010, 01:51 PM   #1
jtag
Member
 
Registered: Aug 2008
Posts: 33

Rep: Reputation: 0
How to turn off (spindown) SATA HDD on Debian after 10 min inactivity


I wold like to know how to turn off (spindown) SATA HDD on Debian after 10 min inactivity (using a script).
I wold like to setup a NAS based on Debian. The NAS will be hallways ON but I want the NAS HDD to gos off after 10 of inactivity. When I access the NAS server the HDD should go back ON (after a small delay).

Thank you,
 
Old 03-14-2010, 01:58 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
You may find success by grabbing `hdparm` or `sdparm` or the more complex `sg3_utils` package (whichever best applies to your particular drive) and querying the drive for its power-saving and spindown options, if it has any.

You can use these tools to query the HDD for all sorts of things, and to set many options that control how the drive operates.

Another useful tool for querying info from the drive, is the SMART toolset (smartd and smartctl) though I cannot recall right off, if this can be used to SET any parameters, or if it's only purpose is getting status/health info from the drive.

In short: sdparm or hdparm should be what you're looking for. You can set parameters via one of these tools, in your rc.local init script or some comparable means.

Sasha
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to turn off (spindown) SATA HDD on Debian after 10 min inactivity jtag Linux - General 3 03-14-2010 03:32 PM
Enable energy saving spindown after inactivity deepaksinghnegi Linux - Newbie 4 10-25-2009 02:16 PM
Install Debian Dist on sata hdd with sata dvdrw ? helixis Linux - Hardware 1 09-20-2008 11:50 AM
IDE HDD spindown iiv Slackware 2 06-06-2008 06:46 AM
Automaticaly unmount a partition after X min of inactivity DropSig Linux - General 8 11-14-2005 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:55 PM.

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