Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my work computer I have two USB hard drives that I use rarely (only for backups). They have a power save mode that sends them into sleep after a couple of minutes of them being idle. But whenever I open a context menu on a file, the drives are woken up (most likely caused by the "send to" handler). This causes a delay that gets really annoying really fast.

So I was wondering, is there a way to just unmount the drives and then remount them later on when I actually need them? I'm looking for a solution for Windows 7 (Ultimate if it makes a difference).

When I eject the drive, I can't find a way to get it back, other than unplugging and replugging it in.

share|improve this question

1 Answer 1

up vote 10 down vote accepted

Remove the drive letters using mountvol or diskmgmt.msc. Without a drive letter, they won't appear under Computer or Send To.

mountvol Q: /d

Reassign when needed, using the volume ID printed by mountvol:

mountvol Q: \\?\Volume{1be3da43-6602-11e0-b9e6-f11e1c50f5b5}\

You can also mount the volume on an empty folder (Unix style) using the same tools:

mkdir fs\backup-disk
mountvol fs\backup-disk \\?\Volume{1be3da43-6602-11e0-b9e6-f11e1c50f5b5}\

All these operations require Administrator privileges.


(In fact, you might even be able to directly use the volume ID in your backup scripts, without having to mount it anywhere. For example, \\?\Volume{1be3da43-6602-11e0-b9e6-f11e1c50f5b5}\projects instead of Q:\projects.)

share|improve this answer
1  
@OliverSalzburg: The volume GUID is tied to that specific volume, and persists after reboots. (It has to, in order for persistent drive letter assignments and filesystem mounts to work.) But unfortunately it's local to the machine. (As far as I know, Windows has no way to reference volumes by label or filesystem UUID yet.) –  grawity Jun 12 '11 at 8:39
1  
@OliverSalzburg: Although if you browse the Object Manager using WinObj, you'll find more symlinks pointing to the same \Device\...: for example, to access my iPod I can use E:\Music or \\?\STORAGE#RemovableMedia#7&bec343e&0&RM#{53f5630a-b6bf-11d0-94f2-00a0c91efb8b}‌​\Music... But again, those appear to be variable between machines. –  grawity Jun 12 '11 at 8:50
2  
Is this really the same as unmounting in UNIX? On a UNIX box, once the volume is umounted, it's safe to rip it out of the computer. (Maybe it'll make your SATA bus upset, if you don't have the appropriate hardware support for that, and you might need to reboot, but you won't lose any data.) If you can still access the disk as \\?\Volume{...}, doesn't that mean the filesystem is still available to the OS, and therefore might have unflushed data in write cache and so on? –  Glyph Feb 8 '13 at 6:22
1  
@Glyph: UNIX is dead – better compare this to Linux or another modern operating system. On Linux, a single fs can be mounted on multiple places, usually using "bind mounts", and all of them must be unmounted to detach a filesystem. On Windows, you could also say that the OS has a few automatic mountpoints (\\?\Volume{…}), and the mountvol command manages additional mountpoints. So the filesystem remains attached as long as there is at least one mountpoint – even when you remove all user-facing mountpoints from mountvol's list, you still have the internal \\?\Volume{…} one. –  grawity Feb 8 '13 at 11:29
1  
@Glyph: (The device nodes on Windows would be \\.\Device\HarddiskVolume23 in the NT namespace.) /// Also, Windows does have a few functions to unmount volumes completely – the FSCTL_LOCK_VOLUME and FSCTL_DISMOUNT_VOLUME ioctls. They are only effective for as long as the program is running, however. –  grawity Feb 8 '13 at 11:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.