How to Change Drive Letter in Registry Editor and Command Prompt?

Did your Windows 7 change its drive letter? Many user undergo this of sort problem. Sometimes the drive letter changes during formatting of windows. Drive letter can be added, changed or even removed manually from Registry Editor and also from Command prompt. In order to add, change or remove the drive letter follow the steps laid below in this tutorial.

change drive letter

Changing the drive letter in Windows is preferred rather during boot. You can change the letter for the drives, but it is advisable not to change the letter for C drive. Drive letters can be changed either from disk management or through registry editor or from command prompt.

To Change or Remove Drive Letter Manually in Registry Editor

  • Open the Start Menu.
  • In the search box, type regedit and hit enter. Upon prompted by UAC, click on Yes
  • In regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
  • Follow the steps to Change a Drive Letter. Right click on a listed /DosDevices\(drive letter) that you want to change the drive letter of, then click on Rename. For eg /DosDevices\D: and rename it with a drive letter that you want to use, which is not there, and press enter.
  • Follow the steps to Remove a Drive Letter. Right click on a listed /DosDevices\(drive letter) that you want to remove the drive letter of, then click on Delete. Click on Yes to confirm the deletion.

registry DosDevice

  • After the completion of task Close regedit.
  • Restart the computer to apply the changes.

 To Add or Change a Drive Letter in Command Prompt

  • Open either a elevated command prompt in Windows, or a command prompt at boot.
  • In the command prompt, type diskpart and hit Enter.
  • In the command prompt, type list volume and press Enter. (volume # is for the drive label/size that you wanted to add or change the drive letter of)
  • In the command prompt, type select Substitue # and press Enter. (Substitue # in the command with the volume number from the prprevious step that you wanted to add or change the drive letter of.)
  • In the command prompt, type assign letter= (type the letter you want to assign or change or remove to the drive) and hit Enter.
    For example if you want to assign letter P to a drive, then type assign=P

command window

  • Upon completion, close the elevated command prompt, or close the command prompt at boot and restart the computer.

The steps listed above will allow you add, remove and change the drive letter of your desire.

Advertisement

No comments yet.

Leave a Comment