For more information, click the following article number to view the article in the Microsoft Knowledge Base:
To change or swap drive letters on volumes that cannot otherwise be changed using the Disk Management snap-in, use the following steps.
Note In these steps, drive D refers to the (wrong) drive letter assigned to a volume, and drive C refers to the (new) drive letter you want to change to, or to assign to the volume.
This procedure swaps drive letters for drives C and D. If you do not need to swap drive letters, simply name the \DosDevice\letter: value to any new drive letter not in use.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
- Make a full system backup of the computer and system state.
- Log on as an Administrator.
- Start Regedt32.exe.
- Go to the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
- Click MountedDevices.
- On the Security menu, click Permissions.
- Verify that Administrators have full control. Change this back when you are finished with these steps.
- Quit Regedt32.exe, and then start Regedit.exe.
- Locate the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
- Find the drive letter you want to change to (new). Look for "\DosDevices\C:".
- Right-click \DosDevices\C:, and then click Rename.
Note You must use Regedit instead of Regedt32 to rename this registry key.
- Rename it to an unused drive letter "\DosDevices\Z:".
This frees up drive letter C.
- Find the drive letter you want changed. Look for "\DosDevices\D:".
- Right-click \DosDevices\D:, and then click Rename.
- Rename it to the appropriate (new) drive letter "\DosDevices\C:".
- Click the value for \DosDevices\Z:, click Rename, and then name it back to "\DosDevices\D:".
- Quit Regedit, and then start Regedt32.
- Change the permissions back to the previous setting for Administrators (this should probably be Read Only).
- Restart the computer.
Article ID: 223188 - Last Review: Sep 11, 2011 - Revision: 1