7

I have 8 drives in my server connected via PATA. The drives are set for no-spin via jumpers on the drive. hdparm -I says

powers-up in standby; SET FEATURES subcmd spins-up

What command do I use to spin the drives up?

Pro Backup
  • 4,924
longneck
  • 420

2 Answers2

5

Do you need to spin them up manually? Normally, that happens automatically when the kernel needs to read or write to the drive. hdparm has options to force a drive to spin down (-y and -Y), but not to spin up. I suppose you could use hdparm -z to force a re-read of the partition table, but that seems like overkill.

cjm
  • 27,160
3

Drives supporting the "Power-up in Standby" feature are supposed to spin up as soon as they get a command that requires reading the disk. So if your drive isn't spinning up when you do something like dd if=/dev/hdX of=/dev/null count=512, then I'd suspect that your disk controller or drive (or possibly BIOS, or Linux kernel version) doesn't fully support this feature. To rule out the kernel, the hdparm man page recommends Linux 2.6.22 or later.

References:

Jander
  • 16,682
  • you're right, i upgraded the kernel and now i can spin up the drive by just trying to access it. – longneck Nov 11 '11 at 22:18
  • I don't think this is the case, PUIS needs to be supported. It requires a certain string to be sent to the HDD, otherwise it will not spin back up, not just any signal. It looks like OP upgraded the kernel and the kernel supported PUIS. – jfa Oct 28 '16 at 19:58