News for hackers. Stuff that matters.
Re:How long do disk drives last? by pedrocr on Tuesday November 12, 2013 @09:47AM (#6718097)
Isn't spin down controlled by the host and not the drive?
Re:How long do disk drives last? by cnvogel on Tuesday November 12, 2013 @10:11AM (#6718211)
The host can spin down a drive manually, but most often it's done autonomously be the drive.

‣  In Linux you can manually ...

• check the power state of your drive using: hdparm -C /dev/sda

• manually spin down the drive (standby) using: hdparm -y /dev/sda (it will immediately spin up at the first attempt to read a sector)

‣  Or you configure the automatic standby of the drive (which also does not involve the OS)...

• hdparm -S n /dev/sda will configure the timeout of the drive to a value encoding the time to spin-down on a non-linear scale, check the manpage

• hdparm -B n /dev/sda will configure another type of power management which doesn't specify a fixed timeout, but rather a vendor-defined type of arbitrary power saving measures on a scale of 1..254 (1: waste power, 254: conserve power, n>128 allows spin down)

The latter two options are handled internally by the drive and (as far as I know) even stored non-volatile.

http://linux.die.net/man/8/hdparm

(Edit: fixed my broken English ;-) )

Re:How long do disk drives last? by Filligree on Tuesday November 12, 2013 @05:13PM (#6721636)
So, actually you got -B backwards. n < 128 allows spin-down.
Re:How long do disk drives last? by jzwinck on Tuesday November 12, 2013 @09:54AM (#6718136)
Some drives like WD's Green series have variable RPM to save power (and therefore heat). I don't think the OS is involved at all with controlling how fast those disks spin (so long as they are spinning at all).
Re:How long do disk drives last? by nknighthb on Tuesday November 12, 2013 @10:00AM (#6718168)
WD's marketroids tried very hard to give people that impression, but it's false.

http://www.wdc.com/wdproducts/library/SpecSheet/ENG/2879-771...

At the very bottom, in small, grey text, you'll find "IntelliPower" defined as:

"A fine-tuned balance of spin speed, transfer rate and caching algorithms designed to deliver both significant power savings and solid performance. For each WD Green drive model, WD may use a different, invariable RPM."