12

I'm interested in manually adjusting my hard drives' spin-down times with hdparm -S to make them quieter at night. The first thing I need to know is what their current spin-down times are, to use as a reference point and so I know what kind of changes I can expect.

Where can I look up this information?

Details

  • I am not asking how to look up the current Advanced Power Management setting (hdparm -B).
ændrük
  • 76,794
  • 1
    I had an answer to this, but it is not applicable and therefore I deleted it. I can undelete it if your disks actually do not spin down at all currently. (find out via sudo hdparm -C /dev/sdyourdevice, it is spinned down if it says drive state is: standby) – Zsub Mar 05 '13 at 21:37
  • 1
    see also this answer on how to do this from the command line with hdparm – Andre Holzner Dec 02 '15 at 20:52

3 Answers3

3

According to the ATA/ATAPI-7 V1 (the specification that manufacturers should follow to be ATA compliant), there is no way to know the current spin down times, so hdparm wouldn't be able to. marc-andre solution only tries to determine whenever the drive can spin down and the spin up times:

udisks --show-info /dev/sdb | grep spin
    can spindown:              1
===============================================================================
 Attribute       Current|Worst|Threshold  Status   Value       Type     Updates
===============================================================================
 spin-up-time                205|203| 63   good    17.3 secs   Pre-fail Online 
 spin-retry-count            253|252|157   good    0           Pre-fail Online 
 spin-high-current           253|252|  0    n/a    0           Old-age  Online 
 spin-buzz                   253|252|  0    n/a    0           Old-age  Online 

You can only know if a drive is currently active or not using hdparm -C

sudo hdparm -C /dev/sda
/dev/sda:
 drive state is:  active/idle
Braiam
  • 67,791
  • 32
  • 179
  • 269
  • 1
    That is the SMART spin-up time, which is the average time taken for the drive to spin up. It is not something that one "sets" and has nothing to do with this quesiton. – micheal65536 Nov 07 '15 at 11:44
  • @MichealJohnson that's exactly what I'm saying! "But these are the "average" spin ups time (not the currently set) values for SMART." The point is that there is no way to know. – Braiam Nov 07 '15 at 13:37
  • 2
    He's asking about setting/viewing the idle timeout before the hard drive is spun down by Linux, not viewing how long is hard drive takes on average to spin up. And you don't "set" SMART values; they are returned by the hard drive itself. – micheal65536 Nov 07 '15 at 14:04
  • 1
    @MichealJohnson "I need to know is what their current spin-down times are", to which I answer "*there is no way to know the current spin down times*". What's your point? – Braiam Nov 07 '15 at 22:47
  • 3
    Yeah that part was fine, it's when you went on to explain SMART data stuff that it got terribly off-topic (and confusing). – micheal65536 Nov 08 '15 at 11:10
  • @MichealJohnson I explained that the only spin times were averages of spin up, to prevent confusion like answers below http://askubuntu.com/a/496604/169736 – Braiam Nov 08 '15 at 15:54
  • 2
    It doesn't matter what you said about spin up times, they're still irrelevant. The question asked about configuring the idle time before the hard drive is spun down; anything with the word "SMART" in it is irrelevant. – micheal65536 Nov 08 '15 at 19:02
  • @MichealJohnson is there anything wrong with giving more information? – Braiam Nov 08 '15 at 19:04
  • 3
    If it's relevant, no; when it's completely irrelevant and potentially confusing, yes. – micheal65536 Nov 08 '15 at 19:09
  • I found that this table can be printed by smartctl -A /dev/sda. – lindhe Nov 16 '17 at 17:59
2

Disk Utility -> select HDD drive -> click on the "More actions..." icon on the top right corner -> Drive settings...

Mine is looks like this: screenshot

guntbert
  • 13,134
Ray
  • 886
0

you can use "disk utility" and after selecting your drive on the left pane, click the "view smart data" button on the right.

one of the attributes in the list that appears should be the drive spindown time. (using SSD drives at the moment,so the info is not available for me)

also you can get the info from commandline using "udisks" using "--ata-smart-refresh " . you can get more infos on how to set your spindown times at this manpage for "udisks" http://manpages.ubuntu.com/manpages/precise/man1/udisks.1.html