I'm using Windows 7 , I set my drive to sleep after 10 minutes and it works but, when I shut down windows my hard drive resume from sleep. Why? It shouldn't keep hard drive sleep and shut down the PC ?
Windows – how disable resume hard disk from Sleep on Shut Down
hard drivekeepaliveshutdownwindowwindows 7
Related Solutions
Have you tried using hibernate instead of sleep and see if your settings will remain using that shut down method? http://windows.microsoft.com/en-us/windows7/Sleep-and-hibernation-frequently-asked-questions
Some background:
SATA drives usually have the following options:
- Hot swap the drive (pull it from a live system, usually to replace it with a new drive after the old drive has failed).
- The ability to spin a drive down and put it permanently in a standby-mode. (Best done before hot-swapping a drive). This mode needs a reset or a power cycle to recover from. (Which is not a problem if you are going to plug in a new drive).
- The ability to set performance modes varying between 'as silent/as energy friendly as possible up to 'max performance and ignore everything else'
- The ability for the OS to ask the drive to go to a low power mode (usually spinning it down). It can recover from this. There is usually a 30-ish second penalty while the drive spins back up.
- The ability for the drive to initiate the same.
Windows solutions:
- Managed via the OS as per Alex Atkinson's post.
- Direct control via some program which asks the OS to send SATA commands. (examples: the commands listed in the question).
Drive solutions:
Change a setting on the drive and let the drive initiate power settings.
There are already several posts on that here on [su], mostly using hdparm. One way to do this would be to boot Linux (or BSD, or OSX) and run hdparm as root.
Or, as found by the OP, there is a windows port of hdparm. Note that you are directly communicating with hardware. This means that you will need to run it with elevated rights.
These settings should stay in the drive, even after you power off the system (annd thus the drive in it). Should you have an OS which does not [only] do its own power management but also tries to reconfigure the drives site (or a non-spec drive configured e.g. for something 'extremely green' then see this post.
Best Answer
When you shut down Windows, various things are written to disk, swap file is modified, etc. If the disk is asleep, those items can not be written or modified on the disk, which is why the disk is powered up before the system is shut down.