You are not logged in.

#1 2017-05-01 19:01:49

Ocye
Member
Registered: 2011-12-07
Posts: 29

[solved] hdparm issue

I don't find good values to spin down my HDD. With -y it works as well as with ridiculous low values like -B 32. But even a "hdparm -B 64 -S 12 /dev/sda" keeps the drive spinning. The disadvantage of -B 32 is that the drive is not up for a minute (-S 12) but stops after a few seconds.

To summarize:
hdparm -y /dev/sda: HDD stops immediately
hdparm -B 32 -S 12 /dev/sda: HDD stops after ~5s (and remains off, i.e. there is no activity which prevents spin down)
hdparm -B 32 -S 60 /dev/sda: HDD stops after ~5s
hdparm -B 64 -S 12 /dev/sda: HDD stops never

What can I do to stop the drive making noise after 1 minute?

sudo smartctl -i -n standby /dev/sda wrote:

smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.10.11-1-ARCH] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue Mobile
Device Model:     WDC WD10JPVX-60JC3T0
Serial Number:    WD-WXA1AA6CU7EK
LU WWN Device Id: 5 0014ee 6b1cc69a3
Firmware Version: 01.01A01
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon May  1 20:49:34 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Power mode is:    ACTIVE or IDLE

sudo hdparm -i /dev/sda wrote:

/dev/sda:

Model=WDC WD10JPVX-60JC3T0, FwRev=01.01A01, SerialNo=WD-WXA1AA6CU7EK
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

* signifies the current active mode

Last edited by Ocye (2017-05-05 12:07:22)

Offline

#2 2017-05-01 19:49:24

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] hdparm issue


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2017-05-02 07:00:01

Ocye
Member
Registered: 2011-12-07
Posts: 29

Re: [solved] hdparm issue

Sure, but the drive spins down and I get positive feedback from the operation. Haven't tried hd-idle though.

PS: Tested with hd-idle. After removing systemd and udev with only hd-idle left, the device still spins down after a few seconds irrespective of the "-i 60" plus "*enabled=true" that I configured in conf.d/hd-idle. "hdparm -B" tells me  APM_level = 64, that seems to be persistent.

Last edited by Ocye (2017-05-02 16:51:40)

Offline

#4 2017-05-05 10:33:57

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [solved] hdparm issue

What about increasing APM value by a bit (33, 34...)? Your drive might not even have implemented the timer setting as the standby timer ATA command (-S).

Last edited by tom.ty89 (2017-05-05 14:31:33)

Offline

#5 2017-05-05 12:07:05

Ocye
Member
Registered: 2011-12-07
Posts: 29

Re: [solved] hdparm issue

After some tweaking I got it working without setting -S.

systemd
ExecStart=/usr/bin/hdparm -q -B 127 -y /dev/sda

conf.d
HD_IDLE_OPTS="-i 180 -l /var/log/hd-idle.log"

udev
none

Thanks for all answers.

Offline

Board footer

Powered by FluxBB