2. In the resulting dialog box, select Change. In the next dialog box select the desired drive letter.
After clicking OK, a dialog box will warn you that some programs may not work. If problems arise, you can go back and change the letters again.
Open the This PC/Computer/My Computer window to see a list of available drives:
Open cmd with admin rights, enter the command diskpart > Enter
to launch the Diskpart command line utility.
Next, enter the list volume command to list all available volumes on the computer.
Look again at the This PC/Computer/My Computer window and compare it with the list of volumes just listed in the results of the above command to select the correct volume/drive you want to rename, then enter the command select volume ###, select # ## corresponds to the volume you need, suppose here I want to rename drive T, corresponding to volume 4, the command will be select volume 4 .
Enter the command assign letter=A . You can replace the character after the mark =
with the letter you want, but you should avoid characters that have been assigned to other drives.
Complete process of renaming hard drive using cmd
After receiving the notification of successfully assigning a letter to the drive, enter the exit command to exit Diskpart and close the cmd window. After renaming, the hard drive will be rearranged in order a, b, c, as below:
Note: You can change the letter of your external drive, but the change will not be permanent. Every time you plug a storage device into a USB port, Windows gives it the first available drive letter.