Avoid HDD spinup at boot

9

1

Is there any way to avoid specific HDDs from spinning up at boot time?

There are 3 HDDs in my HTPC (Ubuntu 12.10) and 1 SSD (boot drive). I don't want the HDDs to spin up when booting to reduce boot time, save energy and expand the HDD's lifespan. However, I think the onboard HDD controller needs to know which drives are there at boot time to make them available later for the system. Is there any possibility to avoid the spin-up?

Hardware specs:
Mainboard: ASrock A75M-ITX (UEFI)
APU: AMD A8-3870K
HDDs: WD20EARS, HD204UI, WD20EARX
SSD: OCZ Vertex3 60GB
(4GB DDR3-1600, TV-Tuner, Sharkoon 400W PSU)

Do the HDDs spin up instantly when they receive power from the PSU or to they spin up when they receive some data?
Thanks, NoMad

NoMad

Posted 2012-12-26T17:14:40.913

Reputation: 502

Related question: Hdparm poweron_standby is how dangerous?

– pabouk – 2013-09-11T13:45:01.850

Answers

8

There's a SATA feature named PUIS (Power-Up In Standby). It requires support from your BIOS, hard drives, and OS too. Some hard drives can have it enabled via pins, some can have it enabled via hdparm -s. This is what hdparm manual says:

Enable/disable the power-on in standby feature, if supported by the drive. VERY DANGEROUS. Do not use unless you are absolutely certain that both the system BIOS (or firmware) and the operating system kernel (Linux >= 2.6.22) support probing for drives that use this feature. When enabled, the drive is powered-up in the standby mode to allow the controller to sequence the spin-up of devices, reducing the instantaneous current draw burden when many drives share a power supply. Primarily for use in large RAID setups. This feature is usually disabled and the drive is powered-up in the active mode (see -C above). Note that a drive may also allow enabling this feature by a jumper. Some SATA drives support the control of this feature by pin 11 of the SATA power connector. In these cases, this command may be unsupported or may have no effect.

Of course, you must not mount any filesystems on that drive during boot-up, otherwise the drive will spin up when you try to mount anything on it, and it will introduce a long delay during your boot process...

haimg

Posted 2012-12-26T17:14:40.913

Reputation: 19 503

Thanks, can I somehow check if the mainboard supports the PUIS command? The two WD drives support this via jumper, but I'm not certain about the mainboard. The website doesn't say anything about PUIS or PM2 (so I think it doesn't support this feature), but I can't find this on any other mainboard's support site (except for one Intel support page about HDD failures). edit: There's no such option in the UEFI, the SATA ports operate in AHCI mode – NoMad – 2012-12-26T19:16:37.880

2I found that in some motherboards, it "just works" (even if not specifically supported), and in some, you need to set up the relevant SATA port as "disabled" in BIOS, so BIOS won't attempt to identify/access the hard disk at all during the boot-up. OS-level access will still work, of course (Linux probes SATA chipset directly). – haimg – 2012-12-26T19:54:03.020