Drive letter

On this page 6

A drive letter is a single alphabetic identifier from A to Z, followed by a colon, that Windows assigns to a storage volume, optical drive or network share so that users and programs can address it with paths such as C:\Users. In Windows storage & file systems it is the most visible naming layer: under it, the operating system tracks volumes by internal identifiers, and the letter is simply a convenient, user-facing name mapped onto one of them.

Drive letters date back to CP/M and MS-DOS and remain central to Windows today. Their main strengths are simplicity and backward compatibility, while their main weakness is that only 26 letters exist and a letter says nothing about the underlying disk, partition or file system.

How Windows assigns drive letters

Windows assigns letters through the Mount Manager, a kernel component that tracks every volume the system detects. When a volume appears, Mount Manager checks whether it already has a remembered letter, stored in the registry under the MountedDevices key, and if not, assigns the first free letter in alphabetical order, starting at C for fixed disks.

Because assignments are remembered by a volume signature or identifier, a USB drive usually receives the same letter each time it is reconnected, provided that letter is still free. Partitions that serve the system internally, such as the EFI system partition and the recovery partition, normally have no letter at all and stay hidden from File Explorer.

LetterTraditional useCurrent practice
A and BFloppy disk drivesReserved by convention, usable for other volumes
CFirst hard disk partitionWindows system volume in almost all installations
D to FAdditional partitions and optical drivesData partitions, DVD drives, first USB drives
Middle lettersRemovable mediaAssigned automatically to new volumes
Late letters such as ZNetwork sharesOften used for mapped network drives
Conventional drive letter usage

Every volume also has a permanent volume GUID path in the form \\?\Volume{GUID}\, which works even when no letter is assigned. Scripts and backup tools that must survive letter changes often address volumes by this path instead.

Ways to attach a volume or share

A drive letter is only one of several ways to expose storage in Windows. Choosing the right one avoids running out of letters and keeps paths stable.

MethodWhat it attachesPersistenceTypical use
Drive letterLocal volumeRemembered per volumeSystem and data volumes, USB drives
NTFS mount pointLocal volume into an empty NTFS folderPermanent until removedAdding space without a new letter
Mapped network driveSMB sharePer user, optionally reconnected at sign-inDepartment file shares
SUBST virtual driveLocal folder as a letterCurrent session unless scriptedShortening long paths for legacy tools
Volume GUID pathLocal volume by identifierPermanentScripts, backup and cluster software
Drive letter compared with alternative access methods

A volume can have a letter and one or more mount points at the same time. Servers with many disks often use mount points under a folder such as D:\Data to attach dozens of volumes while keeping only a few letters in use.

Changing and managing drive letters

Administrators change drive letters with Disk Management, through the option to change the drive letter and paths of a volume, or from the command line. The change takes effect immediately for the volume, but anything that stored the old path will not follow the change automatically.

ToolTypical command or actionBest suited for
Disk ManagementRight-click a volume, change letter and pathsOccasional manual changes
DiskPartselect volume 3 then assign letter=RScripts and recovery environments
PowerShellSet-Partition -DriveLetter E -NewDriveLetter RAutomation across many machines
MountvolLists volume GUID paths and mount pointsInspection and mount point work
Net usenet use Z: \\server\share /persistent:yesMapping network shares
Tools for managing drive letters

The system volume letter cannot be changed on a running installation, because the registry, installed programs and services contain thousands of absolute paths that refer to it. Changing the letter of a data volume is safe for the file system itself but can break shortcuts, libraries, scheduled tasks and application settings that point to the old letter.

Common drive letter problems

Many storage complaints in Windows are actually letter conflicts or letter visibility problems, not disk failures. The data is intact, but Windows or the user cannot reach it under the expected name.

  • USB drive does not appear: its remembered letter is already taken by a mapped network drive, so the volume mounts without a visible letter until a free one is assigned.
  • Mapped drive missing in an elevated program: administrator and standard sessions keep separate mapped drives, so a share mapped normally may not appear in an elevated window.
  • Program fails after reinstalling Windows: a data volume received a different letter, and paths in configuration files no longer match.
  • New disk invisible in File Explorer: the disk is initialized but has no partition, or the partition has no letter assigned.
  • Letters run out: environments with many shares and devices exhaust the 26 letters, which mount points or UNC paths avoid.

A good practice is to reserve late letters for network shares and leave a gap after local volumes, so removable media and shares never compete for the same letter.

The simple explanation

A drive letter is the short name Windows gives each storage place, such as C: for the main disk or E: for a USB stick. It lets you and your programs say exactly where a file lives.

It works like apartment numbers in a building. The number does not tell you how large the apartment is or what is inside, but it gives everyone the same short address. If the number on the door changes, letters addressed to the old number get lost, which is why changing a drive letter can confuse programs.

How it is used in practice

A small architecture office maps its project share to Z: on every workstation, and its design software stores project paths as Z:\Projects. A new employee plugs in an external backup drive, which Windows had previously remembered as Z: on another installation of the same image.

Because Z: is taken by the network share, the backup drive mounts without a visible letter, and the employee believes it is broken. The IT technician opens Disk Management, sees the healthy volume, and assigns it the letter R:.

The drive appears immediately with all files intact, and the shared project paths keep working. To prevent repeats, the office documents a simple rule: local and removable volumes use letters up to P, while network shares use letters from S to Z.