Published by


Brink's Avatar
Administrator

Posts: 25,227

Show Printable Version 


How to Change and Assign Drive Letter in Windows 10

information   Information
By default, Windows 10 will automatically assign an available drive letter to any connected internal and external storage devices.

Windows progresses through the alphabet from A to Z to assign available drive letters to devices as connected.
  • Windows reserves the drive letters A and B for floppy drives.
  • The drive letter C can only be used for the drive Windows is installed on. If you multi boot operating systems, the currently running Windows will always show its drive letter as C.

If you use multiple USB drives, then you may have noticed that the driver letter can sometimes be different each time you connect one.

If you like, you can change the drive letter of a drive to be any available drive letter you want instead of the driver letter automatically assigned by Windows. When you change the drive letter of a drive, it will assign a permanent letter to the drive that will not change on your PC unless you change it.

This tutorial will show you different ways on how to change the drive letter of a drive to assign a permanent drive letter you want to the drive in Windows 10.


CONTENTS:





Change and Assign Drive Letter in Windows 10 OPTION ONE Change and Assign Drive Letter in Windows 10
To Change Drive Letter in Disk Management

1. Open Disk Management (diskmgmt.msc).

2. Right click or press and hold on the drive (ex: "F") you want to change the drive letter of, and click/tap on Change Drive Letter and Paths. (see screenshot below)

Name:  Change_drive_letter_in_Disk_Management-1.jpg
Views: 1648
Size:  113.8 KB

3. Click/tap on the Change button. (see screenshot below)

Name:  Change_drive_letter_in_Disk_Management-2.jpg
Views: 1530
Size:  24.9 KB

4. Select (dot) Assign the following drive letter, select an available drive letter you want to assign, and click/tap on OK. (see screenshot below)

Name:  Change_drive_letter_in_Disk_Management-3.jpg
Views: 1530
Size:  22.6 KB

5. Click/tap on Yes to confirm. (see screenshot below)

Name:  Change_drive_letter_in_Disk_Management-4.jpg
Views: 1499
Size:  18.1 KB

6. When finished, you can close Disk Management if you like.





Change and Assign Drive Letter in Windows 10 OPTION TWO Change and Assign Drive Letter in Windows 10
To Change Drive Letter in Command Prompt

1. Open an elevated command prompt.

2. Enter diskpart into the elevated command prompt, and press Enter. (see screenshot below)

3. Enter list volume into the elevated command prompt, and press Enter.

4. Make note of the volume number (ex: 5) for the drive letter (ex: "F") of the drive (volume) you want to change.

5. Enter the command below into the elevated command prompt, and press Enter.

select volume <volume number>

Note   Note
Substitute <volume number> in the command above with the actual volume number (ex: "5") from step 4 above for the drive you want to change the drive letter of.

For example: select volume 5

6. Enter the command below into the elevated command prompt, and press Enter.

assign letter=<new drive letter>

Note   Note
Substitute <new drive letter> in the command above with the actual new drive letter (ex: "G") you want to assign to the drive.

For example: assign letter=G

If the new drive letter you assign is not available, you will get an error message indicating so in the command prompt. You will just need to repeat this step to assign an available drive letter.

7. When finished, you can close the elevated command prompt if you like.

Name:  diskpart_assign_letter_command.jpg
Views: 1620
Size:  88.4 KB





Change and Assign Drive Letter in Windows 10 OPTION THREE Change and Assign Drive Letter in Windows 10
To Change Drive Letter in PowerShell

1. Open an elevated PowerShell.

2. Enter Get-Partition into the elevated PowerShell, and press Enter. (see screenshot below)

3. Make note of the drive letter (ex: "G") of the drive you want to change.

4. Enter the command below into the elevated PowerShell, and press Enter.

Get-Partition -DriveLetter <current drive letter> | Set-Partition -NewDriveLetter <new drive letter>

Note   Note
Substitute <current drive letter> in the command above with the actual current drive letter (ex: "G") of the drive you want to change.

Substitute <new drive letter> in the command above with the actual new drive letter (ex: "F") you want to assign to the drive.

For example: Get-Partition -DriveLetter G | Set-Partition -NewDriveLetter F

If the new drive letter you assign is not available, you will get an error message indicating so in PowerShell. You will just need to repeat this step to assign an available drive letter.

5. When finished, you can close the elevated PowerShell if you like.

Click image for larger version. 

Name:	Change_drive_letter_in_PowerShell.png 
Views:	144 
Size:	62.6 KB 
ID:	124476





Change and Assign Drive Letter in Windows 10 OPTION FOUR Change and Assign Drive Letter in Windows 10
To Change Drive Letter in Registry Editor

1. Open Registry Editor (regedit.exe).

2. Navigate to the key below in the left pane of Registry Editor. (see screenshot below)

HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

Name:  Change_drive_letter_in_registry-1.jpg
Views: 1528
Size:  102.9 KB

3. In the right pane of the MountedDevices key, right click or press and hold on the binary (REG_BINARY) value (ex: "\DosDevices\G:") for the drive letter (ex: "G") of the drive you want to change, and click/tap on Rename. (see screenshot below)

Name:  Change_drive_letter_in_registry-2.jpg
Views: 1499
Size:  148.9 KB

4. Rename only the drive letter part of the binary (REG_BINARY) value (ex: "\DosDevices\G:") name with an available drive letter (ex: "\DosDevices\F:") you want for the drive instead, and press Enter to apply. (see screenshot below)

Name:  Change_drive_letter_in_registry-3.jpg
Views: 1489
Size:  102.5 KB

5. When finished, you can close Registry Editor.

6. Sign out and sign in, or restart the computer to apply.


That's it,
Shawn