Windows 10

How To Assign Letter To Drive In CMD

In this tutorial, we are going to see how to assign a drive letter in CMD. To assign a letter to a drive such as an external hard drive or a USB flash drive, there is a tool called Diskpart that makes drive letter assignment faster.

In order to assign a drive letter, we will use Diskpart command prompt which also allows you to create a partition, delete a partition, and format a partition, etc. Well, how to assign a drive letter with Diskpart?
 

How To Assign Letter To A Drive In CMD

Step 1: There are two ways to open the command line. Click on the Start menu, type CMD in the search box, then right-click on it and select Run as administrator. Or press WIN + R, type CMD, and press Enter.
 

 

 
Type diskpart in CMD to start it.
 

 
Step 2: Type list volume and press Enter.
 

 
Step 3: Type Select volume n and press Enter. Here you need to know the number of the volume whose drive letter you want to assign.
 

 
 
Step 4: Finally, type assign letter=R to assign or change the drive letter.
 

 
Step 5: You can check if the drive letter was changed as shown on the following screenshot.
 

 
If you want to remove the drive letter, type remove letter=R.
 

 
Now you can successfully assign, change or delete a drive letter. And you can type volume to see the details.
 

Leave a Reply

Your email address will not be published. Required fields are marked *