How to Change Drive Letter Using Command Prompt in Windows
Sometimes, you may need to change a drive letter in Windows, and one of the quickest ways to do this is by using the Command Prompt. Here’s a step-by-step guide on how to accomplish this using Windows’ built-in commands.
Step 1: Open Command Prompt with Administrator Rights
To change a drive letter, you’ll need administrator privileges. Open Command Prompt by following these steps:
- Press Win + X and select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”.
Step 2: Start the Diskpart Utility
Once the Command Prompt opens, type the following command and press Enter:
diskpart
This command will launch the Diskpart utility, which is used for managing disks, partitions, and volumes.
Step 3: Display the List of Volumes
To view the available volumes and choose the one you want to modify, enter this command:
list volume
Diskpart will show a list of all volumes connected to your system, along with their drive letters and file systems. Locate the volume whose letter you want to change.
Step 4: Select the Volume
Next, select the volume whose drive letter you wish to change. Type the following command, replacing N
with the volume number:
select volume N
For example, if your volume number is 2, type:
select volume 2
Step 5: Assign a New Drive Letter
After selecting the volume, use the assign
command to assign a new drive letter. Enter the following command, replacing Y
with your desired drive letter:
assign letter=Y
For instance, if you want to assign the letter D, type:
assign letter=D
Step 6: Confirm the Changes
To verify that the changes have been applied, enter the command once more:
list volume
You should see that the selected volume now has the new drive letter. Once confirmed, you can exit Diskpart by typing:
exit