Question: I recently upgraded my D: data drive to a larger one, like so:

  • installed the new drive as E:
  • copied all the files from D: to E: using robocopy
  • powered off the PC, removed the D: drive permanently

However, I can’t change the E: drive back to D: — that is, when I try to change the letter in Disk Manager the letter D: simply doesn’t show up as available.

Why not, and how do I fix this?

Answer: For some reason, Windows likes to reserve drive letters it previously saw.

This information is stored in the registry at

HKEY_LOCAL_MACHINESYSTEMMountedDevices

enter image description here

Simply delete the registry key of the unused drive letter at DosDevicesD: , then restart, and you’ll be able to re-use the desired drive letter.

After doing this a second time, I found that it’s easier if you do it this way:

  • Transfer all the files from the old data drive D:, to the new data drive E:.

  • Do not reboot!

  • Make sure absolutely no programs are running that are accessing files on the old data drive. Shut down as many apps as possible. Then change the drive letter of the old data drive to something random D: → Q:.

  • Now you can change the drive letter of the new data drive to the letter that was previously occupied by the old data drive, E: → D:

  • Basically, change the drive letters with both old and new data drives connected; don’t reboot until you have performed the drive letter switcheroo. That would avoid the problem I had above.