How to disable HDD sleeping? (Solved with hdparm)

Booting, installing, newbie
Post Reply
Message
Author
User avatar
Grogster
Posts: 32
Joined: Tue 22 Aug 2017, 01:20

How to disable HDD sleeping? (Solved with hdparm)

#1 Post by Grogster »

Greetings fellow Puppy users. :)

I have been playing with Puppy Linux for years, but this is my first serious use of it. It has been working beautifully as a basic home SMB server thanks to Slacko64's built-in SMB tools.

This is working great, but the HDD's keep sleeping by themselves after a period of no activity.

I heard that hdparm was the go-to utility on the command-line, but Puppy does not know anything about it. I have downloaded and installed a utility called PupControl(via the package manager) in the hope it would give me access to these settings, but it does not.

Can anyone recommend or point me to a PET that will allow me to change these HDD settings please? I need the drives to stay awake forever - never sleep, in other words. They are NAS drives, so are designed to run 24/7.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

What Puppy version?

Are you sure it does not have hdparm?

Xenialpup64 7.0.8.5 does.

In console type:

Code: Select all

hdparm -help
Should get all the command options for hdparm.

Use hdparm command to determine what is the current enter sleep mode timer value (APM LEVEL):

Code: Select all

hdparm -B /dev/sda 
( This is for hard drive sda. Yours could be sdb, sdc, sdd, etc...)

Not sure what to use to change this, but one of the code options should do it.

Notice:
Some of those options are uppercase and lower case letters.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#3 Post by don570 »

hdparm explained...
http://www.linux-magazine.com/Online/Fe ... ith-hdparm
______________________________________________

User avatar
Grogster
Posts: 32
Joined: Tue 22 Aug 2017, 01:20

#4 Post by Grogster »

@ bigpup - Slacko64 6.0.3 I did find hdparm afterall. One other website said I should be typing 'sudo hdparm....', but that always failed, so I dropped the 'sudo' from the start as in your examples, and it worked. :)

Code: Select all

hdparm -B /dev/sda
Spits back invalid number message.

Code: Select all

hdparm -S 0 /dev/sda
Responded that spindown timer zero(off). It specifically said off in parenthesis, so I expect that is a good result. ;)

@ don570 - thanks for the link. I have saved it for future reference.

Post Reply