How to assign a drive a letter using Diskpart

How to assign a drive a letter using Diskpart


Windows volume drive letters can be altered from the command line using Diskpart.


Access to the Windows command line.


From your taskbar, start a search for


Enter the command:


Enter the command:

list volume

Example output:

DISKPART> list vol
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NTFS Simple 119 GB Healthy Boot
Volume 1 System Rese NTFS Simple 100 MB Healthy System
Volume 2 D DVD-ROM 0 B No Media

Enter the command:

select volume 2

but replace “2” with the desired volume number. Enter the command:

assign letter=q

but replace the “q” with any desired letter that is not already being used by another volume.

More Information:


help assign

within diskpart for more information.