35

Obviously there are power management settings which Windows uses to determine when to power a hard drive off, and when to power it back on again. Powered down I assume doesn't mean absolute zero power, but it does mean the disk stops spinning.

I have a second hard drive which is a tad noisy. In fact, having invested in a new case, CPU cooler, power supply and fan-speed controller, it's now the noisiest component left in my computer. And I've kinda run out of money.

But... I don't need a second hard drive all the time.

So - is there a quick-and-easy way to make Windows unmount all partitions from a particular internal hard drive and power that drive down on demand, and then make it power the drive back up and re-mount the partitions when I'm going to need it?

Kinda the internal software-controlled equivalent of unplugging/reconnecting an external USB hard drive.

I dual boot, so I really need the answer for both Windows XP and Windows 7.

2
  • try HotSwap! to unmount the disc. I haven't found a way to power down the hdd afterwards, though.
    – user116180
    Commented Jan 31, 2012 at 17:23
  • superuser.com/questions/214178/…
    – Alex78191
    Commented Apr 15, 2019 at 22:29

7 Answers 7

8

To have Windows not randomly access the drive, all you should need to do is make sure that indexing for the drive is disabled. This, combined with the power management settings, should keep the disk quiet until you manually access it.

I used this method to keep my external drive that I use for backups quiet at all times, unless it's actually backing up data.

To make sure indexing is disabled, you just go into your Indexing Options window by clicking the start menu orb and typing "Indexing Options" and hitting Enter. A window that should look like this should pop up:

enter image description here

Then just find the entry corresponding to the drive you want to keep quiet and remove it from the list by clicking the Modify button and then unchecking the drive in the list that comes up.

As an added safeguard to make sure it won't index it in the future, go into My Computer and right click the drive and then choose Properties. On the bottom, you should see an option with a checkbox called "Allow files on this drive to have contents indexed in addition to file properties":

enter image description here

Uncheck that option and click OK. Your drive should stay quiet until you actually call upon it, and you won't need to unmount/remount it manually.

Windows XP should have a similar solution. Their indexing service is less sophisticated, though, and many people complain of it slowing system performance anyway, so all you should have to do in XP is just disabling the indexing service and be done with it. :)

2
  • 1
    Indexing is already disabled on all my drives. A habit I got into for Windows XP, mainly because I have better indexing solutions for the things I want indexed anyway. Indexing is not the only background process that will access a disk from time to time. I don't believe it's the only background process in Windows 7 itself, though I might be wrong, but certainly some third party software can cause this problem. I'm pretty ruthless at killing off unwanted background processes, but some are there for a reason - it's just hard to keep them from doing some stupid things too.
    – user31438
    Commented Jan 31, 2012 at 18:25
  • My guess it's a 3rd party program causing the disk access, then. It worked for me. Oh well. :) Commented Jan 31, 2012 at 18:42
6

You can configure both OS's to turn off idle disks via the Power Management options of the OS.

Windows 7 Example:

TurnOffIdleDisks

If you want to be able to force a full power off on the drive(s), then you'll need to wire in a physical switch, as the Power Supplies in PC's don't allow controlling power taps via software.

More info (based on new requirement laid out in comments):

Perhaps check out MS' article "Mount or dismount a drive" for some ideas. Also check out the Windows mountvol and fsutil command-line utilities, to perform the same task(s) in a less 'clicky', more script-able, way.

4
  • 4
    I know about power management options, but that's hassle plus not the right thing - the partitions are still mounted, so e.g. a background process might access one and cause the drive to spin back up. The physical switch is excessive - so long as the disk stops spinning I get the noise-reduction benefit I want. It's certainly possible in principle for software to stop the drive spinning - power management does exactly that - and the unmount/remount thing can also be done in software. Can I have a simple software on/off button? Maybe not, but I can't see an in-principle reason why not.
    – user31438
    Commented Dec 6, 2011 at 19:41
  • Added some mount/dismount info to the answer. Good luck. :) Commented Dec 6, 2011 at 19:51
  • Manually doing the computer management thing is still too much hassle for a routine thing - imagine having to do that every time you plug in or remove a USB flash stick. But the command-line utils are at least a good start - thanks.
    – user31438
    Commented Dec 6, 2011 at 19:55
  • there is software in existance that would put a hard drive in standby, unmount unnessisary. I forget the names of it, but it existed. also some controller software would have options for it (like intels). Revosleep, HDsleep. something like that. It was hit and miss if it worked with different devices, there is not one I know of anymore at all. Using search terms like sleep and standby for the hard drives should find them, then it is a matter of testing IF they work with that configuration and os.
    – Psycogeek
    Commented Dec 13, 2011 at 2:36
6

In the end, I finally solved this problem by buying a hard drive drawer/caddy.

The drawer with the hard drive doesn't need to be removed to disable the drive - a lock on the front can be turned to the off position. At the moment, a quick reboot is all that's needed to enable/disable the extra drive. If I enabled AHCI in my BIOS (usually associated with SATA RAID, I think) I could even enable/disable the drive with the machine powered on, a lot like external hard drives. The reason I haven't enabled that - although Windows 7 has AHCI support built in, I dual boot and Windows XP needs drivers, and I haven't got around to installing those yet.

(I did try installing the drivers in Windows XP, but the only way to enable AHCI in the BIOS is to enable RAID. When I did that, I discovered I'd have to reformat all my hard drives - my main system drive included - to use RAID. This hasn't yet been worth the hassle of re-installing everything again. I consider it a bit freaky that just in order to support powering a single drive on/off while the system is running, I have to not only reformat that drive for single-drive "RAID" but also the system drive which will always be on anyway. Still, it's probably a limitation in my BIOS rather than an inherent issue with AHCI - Asus/Asrock has wrongly assumed that the only possible reason to power on/off an internal drive while the system is running is when you're using RAID.)

(I now have a new motherboard (Asus ASUS M5A97 Evo R2.0), and AHCI works fine in both Windows 7 and Windows XP. There's a BIOS setting (per internal SATA port) to enable/disable hot plugging. With that enabled, I can "eject" a hard drive in Windows just like a flash drive. No reformatting needed. Works well for eSATA as well as for this drawer.)

On the noise issue, the drawer has a small and noisy fan. This is fairly easy to disable (a cable can be disconnected), but my drive gets slightly warmer than I'd like that way. So with the second hard drive powered on, my system is noisier than it was before. But that's quite rare, and with the drive disabled (even with the drawer in place) my system is quieter.

I bought a second drawer so I can swap in another drive, but I don't have another drive to swap in at the moment - mostly this is just a way to get a hard-drive on/off switch on the front of my case.

I have no idea how this particular caddy compares to others, but using a similar caddy may just be a workable solution for other people too.

5

You can use HDDScan to turn your drive off. Select your hard drive, then Tools, Features, Spindown.

You can also generate a batch file which runs HDDScan with parameters so it turns your drive off. To do so, select your hard drive, then Tools, Command, check the Spin Down checkbox, then click on the floppy disk icon to save the batch file.

Note that this does not unmount the drive. When any program tries to access that drive, it spins up again. It also spins up again on a reboot.

1

Most worthwhile consumer-available enclosures (standard or RAID) have on/of switches. Shouldn't matter if it holds one or multiple HDDs.

I use an external SATA RAID Bay and buy them when they are cheap on Newegg. one of them is Sans Digital Towerraid which supports eSata (think the newer ones also offer USB 3.0 capabilities. It came with an eSata card for Mac, Win XP/Vista/Windows 7 and software. While it is intended to be used as RAID, the software and guide go into great detail on the different RAID options and then the option to not do RAID.

For Black Friday, I snagged a Mediasonic HFR2-SU3S2 RAID Bays USB 3.0 & eSATA PRORAID Box 4 Bay Raid Enclosure with a USB 3.0 PCIe card. The design of this one is slightly more cumbersome than Sans Digital, so the drives that I put in there are usually ones I want to stay in there. Sans Digital ones make it super easy to hot swap HDDs.

It's recommended to used HDDs with the same RPM speed, otherwise the HDD with the slower RPM is going to be more taxed and it will likely have a shorter life span or be more likely to have problems.

One Raid Bay enclosure has the items I want to share on my network for entertainment (movies, music, etc.) and connected to my Mac, the other Raid Bay enclosure is connected to my Windows 7 and for file storage/access I do graphic design and photography so I have many HDDs partitioned for the way I want them organized. I set up scheduled drive back up using the software. I network the Mac, PC running Windows 7, and laptop running Windows XP along with laserjet home office printer, set up file sharing, and then if I don't want certain hdds on, I just go to whichever RAID enclosure and turn off the power switch.

They have on/off switches and even have their own fan for cooling. Sounds like maybe the secondary drive is starting to exhibit symptoms of inevitable hdd failure quite honestly. Mac OS has mount/unmount ability. Though the mounting doesn't seem to work as I thought it should for internal hdd. I usually have to reboot to get the drive I unmounted accessible.

In my humble opinion the time spent on figuring out a solution could have been used to find compatible drivers for what you needed.

1
  • 2
    I already have external hard drives. Currently six of them, not including flash drives. The point was to be able to switch on/off an internal hard drive inside the PC.
    – user31438
    Commented May 4, 2013 at 20:06
1

It is possible to put a HDD into offline mode (and then back online) through the Windows "Disk Management" "snap-in", the option is in the context menu of the HDD item, leftmost cell.

I guess it can be done through command line as well.

-3

Just go the bios during stratup by pressing F2 and disable the second hard drive .Its very easy.

5
  • That's certainly an option. And if the user wants to re-enable the drive to save a document, they just need to reboot the system, go to BIOS and re-enable it, boot to Windows, open the document and save it on the secondary drive. Then to disable it again they just need to reboot the system, go to BIOS and disable the drive, then boot to Windows and open the applications needed for work. Now when they start working on another document saved on the drive, they just need to reboot the system... I'm sure you see what I'm getting at :-) Is it really a viable option to mounting a drive on-the-fly? Commented Sep 28, 2021 at 21:27
  • If you think it's not, I'd suggest deleting the answer. Commented Sep 28, 2021 at 21:27
  • For the last year, I've been annoyed at Gigabyte because my best option is only a lot better than this - right-click the start menu button, select "Disk Management", right-click the appropriate drive (bottom section, the box on the left-hand side, not a partition) and select "Offline" to disable the drive or "Online" to re-enable it. The reason I'm annoyed at Gigabyte is I still use hard disk drawers so I can easily insert/remove internal SATA hard drives while the system is powered on. I should be able to easily set the SATA ports to "removable" in the BIOS, to get removable drive behavior.
    – user31438
    Commented Sep 29, 2021 at 5:55
  • I suspect the Online/Offline thing may have been possible a decade ago when I asked this question, but it's not very discoverable unless you habitually right-click everywhere in every window and carefully check all the context menus.
    – user31438
    Commented Sep 29, 2021 at 5:58
  • Press F2 to enter the firmware settings does not exist on every system, it fact it does not work on most modern systems, that support hybrid startup.
    – Ramhound
    Commented Sep 29, 2021 at 22:44

You must log in to answer this question.