Hi all,
I'm trying to spin down my western digital hard drive as it always spins and with it being in my tv cupboard it's quite noisy when not in use.
I've searched the forum and found a thread which tells me to put the following code into the autostart.sh
#!/bin/sh
(sleep 60;
hdparm -S 60 /dev/sda1
)&
Now obviously I've changed it to /dev/sdb as that's the drive I want to spin down.
I reboot the computer and after 5 minutes it spins down as it should do.
Perfect I thought it was working.
I've since noticed it only spins down once at first boot.
Example of behaviour is I reboot my system, 5 mins later it spins down. I then play a video file it takes a few seconds to spin back up (which I can hear it doing as it should).
After stopping the video playing the drive will now no longer spin down again unless I reboot again and then it will spin down again after 5 mins.
It also doesn't work after a suspend.
I have my remote set to suspend the computer when I press the power button, this allows me to press the power button again to wake. But after a cycle of suspend and wake the hdd will no longer spin down.
Am I doing something wrong here.
Thanks in advance