Scheduling hard drive spin down
hello all,
I would like to know if I can schedule standby/sleep with crontab. I am specifically trying to spin down the hard drive for a while and then spin up the hard drive at a specified time. I found the command of Code:
hdparm -y /dev/sda Quote:
|
That's exactly what the output from hdparm should look like when it successfully spins down the drive. You were expecting something else??
In most cases you don't have to explicitly spin up the drive. The next time something tries to access the drive, the kernel will spin it up automagically. |
Quote:
|
Daemons maybe why the command seemingly does not work then. I have lighttpd and samba running just to name a couple off of the top of my head. So, I need to figure out how to find all active processes, kill them, and then
Code:
hdparm -y /dev/sda |
Are you trying to spin down a drive that contains mounted file systems? It may be difficult to get that to "stick" -- too many things that can cause an access.
|
yes, I am trying the command while both / and Swap are mounted.
|
Read `man hdparm` and see hdparm -S and hdparm -B. You won't need cron. But I don't recommend you to spin down your HDDs - it's bad for the motor.
|
How in the world can spining down hard drives be bad for my monitor??
|
lonesoac0, please read more carefully what I wrote. It's "motor", not "monitor". I am talking about motor of HDD, it's better to keep it spinning constantly.
|
Ahhhhh! Sorry about that! I will reconsider using hdparm since it could directly do the oposite of what I want. I want to try to place less strain on the hard drive not more.
|
Quote:
|
All times are GMT -5. The time now is 11:55 PM. |