How to test reading speed of medium, hd-idle, hdparm

Show state of drive

# hdparm -C /dev/sdb

 drive state is:  active/idle

Setting drive into sleep

# hdparm -Y /dev/sdb

 issuing sleep command

Setting drive into standby

# hdparm -y /dev/sdb

 issuing standby command

Setting APM (Advanced Power Management)

This feature must be supported by the drive. For WD drives see How to enable and disable PM2 (power management) on WD SATA drives. However this works not for my WD Green WD20EARX... :( This is why I'm now using hd-idle? instead.

# hdparm -B 127 /dev/sdb

See hdparm manpage for the numeric value which can be between 1 - 127 which permit spin-down and 128 - 254 which do not permit spin-down. A value of 255 disables Advanced Power Management.

Last modified 3 years ago Last modified on Jul 15, 2016, 2:15:55 PM