Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
but it does not look like it does anything. All I see it does is:
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.
The next time something tries to access the drive, the kernel will spin it up automagically.
And exactly that may be the case when the command doesn't work for you, may be a program accesses the disk when you try to spin it down (for example the syslog daemon).
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
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.
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.
I want to try to place less strain on the hard drive not more.
In this case you definitely should keep them spinning and not to turn off (unless you keep your PC off for 24 hours or more). And make sure HDDs are 35-45 °С. That is also important.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.