How to Change Drive Letter in Windows 10 (Partition Letter)

If the current drive or partition letter is not to your liking, you can change it with the built-in partition manager or the Command Prompt. Here’s how.

Windows automatically assigns all the drive letters to all active partitions. Generally, the assigned letters are in incremental order starting the letter C. For the most part, you don’t have to change the drive letter as it is pretty inconsequential for most users. However, there might times when you need to manually modify the drive letter to meet a certain requirement.

For example, I want one of my partitions to have the drive letter X as I used that specific drive letter in some of the older script files. If it doesn’t have that specific drive letter, the script files won’t work as intended. Since these are older files and there are a lot of them, in typical Windows fashion, I tend to swap the drive letter rather than making the necessary changes to the script files.

Thankfully, Windows gives you several different ways to change the drive letter in Windows 10. You can either use the built-in partition manager or do the same thing from the Command Prompt. I will show both ways, follow the method you like.

Jump to:

Note: Close all active programs except your browser before proceeding with the steps given below to reduce any conflicts between programs and the drives.

Important: Do not change the C drive letter.

How to change drive letter with Windows partition manager

Windows has a built-in partition manager called Disk Management tool that works perfectly for changing the drive letter. All you have to do is go to the drive options and choose the new drive letter.

Here are the steps you should follow:

  1. Press the “Windows key + R” to open the Run window.
  2. Type “diskmgmt.msc” and click the “Ok” button.
  3. After opening the Disk Management program, find the drive you want to modify.
  4. Right-click on the drive and select “Change drive letter and paths” option.
  5. Click on the “Change” button.
  6. Select the “Assign the following drive letter” radio option and choose a drive letter from the dropdown menu next to the option.
  7. Click “Ok“.
  8. Click “Yes” in the warning window.
  9. Again, click “Yes” in the second warning window.
  10. Close the main disk management window.

That is all. You’ve successfully changed the drive letter in Windows 10. To make the changes take full effect, reboot the system.


How to change the drive letter from Command Prompt (diskpart)

You can use the diskpart command to easily change the letter of any drive in Windows. Here’s how to use the command.

  1. Press the Windows Key to open the Start menu.
  2. Type “Command Prompt“, right-click on the result and select “Run as administrator” option.
  3. After opening the cmd window, type “diskpart” and press Enter. This will launch the diskpart program in the cmd window.
  4. Type “list volume” and press Enter.
  5. The above command will list all partitions and their volume numbers. Take note of the volume number of the drive you want to modify.
  6. Next, execute the “select volume #number” command. Don’t forget to replace the #number with the actual volume number.
  7. After selecting the volume, execute the “assign letter=NewDriveLetter” command. Replace “NewDriveLetter” with the actual drive letter you want to assign.
  8. Once assigned, close the cmd window.

That is all. Once the diskpart commands are executed successfully, the drive letter is changed instantly. To make the changes take full effect, restart Windows.

I hope that helps. If you are stuck or need some help, comment below and I will try to help as much as possible. Did you know you can change any drive icon to anything you want? Follow the linked article to know how to do it.

Scroll to Top