How to Assign a Drive Letter in Windows (And Why It Matters)
When you plug in a USB drive, install a new hard disk, or partition an existing one, Windows automatically assigns it a letter — C:, D:, E:, and so on. But that automatic assignment isn't always what you want. Maybe your backup software expects a specific drive letter, or your mapped network drives keep shifting around. Knowing how to assign a drive letter manually puts you back in control.
What Is a Drive Letter and Why Would You Change It?
A drive letter is Windows' way of labeling storage volumes so the operating system — and you — can reference them consistently. Every drive, partition, USB stick, SD card, or optical drive gets one.
The problem is that Windows assigns letters dynamically. Plug in devices in a different order, and their letters can shift. That's harmless for casual use, but it breaks things like:
- Batch scripts that reference a specific path (e.g.,
D:Backups) - Application settings that store file locations
- Mapped network drives that conflict with a removable drive letter
- Game or software installations that won't recognize a relocated library
Reassigning a drive letter is a straightforward fix — but the right method depends on your situation.
How to Assign or Change a Drive Letter Using Disk Management
Disk Management is the built-in Windows tool for this job. It works on Windows 10 and Windows 11 with no additional software needed.
Steps:
- Right-click the Start button and select Disk Management (or press
Win + Xand choose it from the menu) - In the lower pane, locate the volume you want to change
- Right-click the volume and select Change Drive Letter and Paths…
- Click Change (if a letter is already assigned) or Add (if none is assigned)
- Choose your preferred letter from the dropdown
- Click OK and confirm the warning prompt
⚠️ Windows will warn you that some programs may not run correctly if you change the letter. For system drives (usually C:), Disk Management won't let you reassign the letter at all — that requires more advanced methods.
Letters available for assignment: Windows reserves A: and B: for legacy floppy drives (though they're technically usable), and C: is reserved for the system partition. Letters D: through Z: are generally available.
How to Assign a Drive Letter Using DiskPart (Command Line)
DiskPart is the command-line alternative — more powerful, and useful if Disk Management is unavailable or if you're scripting the process.
Steps:
- Open Command Prompt or PowerShell as Administrator
- Type
diskpartand press Enter - Type
list volumeto see all available volumes and their current letters - Type
select volume #(replace # with your volume number) - Type
assign letter=X(replace X with your desired letter) - Type
exitwhen done
DiskPart applies the change immediately. If the letter you want is already in use, you'll need to free it first — either by reassigning the conflicting drive or by removing its letter entirely using remove letter=X.
Assigning Drive Letters to New or Unlettered Volumes
A brand-new drive or a freshly created partition may appear in Disk Management without any letter at all — showing up as unallocated or as a raw volume. Before assigning a letter, the volume needs to be:
- Initialized (if it's a new physical disk)
- Formatted with a file system (NTFS, exFAT, FAT32)
- Given a partition if unallocated space exists
Disk Management walks you through these steps with a wizard when you first connect an uninitialized disk. Once the volume exists and is formatted, the "Change Drive Letter and Paths" option becomes available.
Variables That Affect How This Works 🖥️
Not every drive letter situation is the same. Several factors change the process or the outcome:
| Variable | How It Affects Drive Letter Assignment |
|---|---|
| Windows version | Windows 10 and 11 behave identically here; older versions may differ |
| Drive type | Internal, external, network, and virtual drives all show up in Disk Management |
| File system | Unformatted volumes can't receive a letter until formatted |
| User permissions | Administrator access is required — standard accounts can't reassign letters |
| Drive in active use | Some letters can't be changed while a program has files open on that volume |
| System/boot partition | C: and the EFI partition are protected from reassignment through normal tools |
If you're working with network-mapped drives, drive letters are assigned differently — through File Explorer or the net use command — not through Disk Management. Those letters persist only for the session or until you disconnect, unless you check "Reconnect at sign-in."
When Drive Letters Don't Stick After Reboot
This is a common frustration. You assign a letter, it works, then after restarting Windows the drive reverts — or the letter gets grabbed by something else.
This usually happens with removable drives (USB, SD cards) when Windows assigns letters dynamically on each connection. Internal drives and fixed partitions generally keep their assigned letters permanently.
For removable drives that need a consistent letter, the DiskPart assign command tends to be more persistent than Disk Management in some configurations — but behavior can vary depending on the drive and the system's hardware enumeration order.
When the Process Gets More Complicated
Most drive letter assignments take under a minute. But a few scenarios make things messier:
- Cloned drives that came from a system where D: already existed may conflict with your current setup
- BitLocker-encrypted volumes can be reassigned, but need to be unlocked first
- Virtual hard disks (.VHD/.VHDX) need to be mounted before they appear in Disk Management
- Linux or macOS partitions may appear in Disk Management but can't always receive a drive letter Windows will use meaningfully
The right path through any of these depends heavily on what the drive contains, what you're trying to accomplish with it, and how your current system is already configured.