How to Change a Drive Letter in Windows 11

To change a drive letter in Windows 11, open Disk Management, right-click the volume, and select Change Drive Letter and Paths. Select Change (or Add if the volume has no letter), pick an available letter, select OK, and confirm with Yes.

These steps cover Windows 11 and also match Windows 10. They apply to data volumes such as a second internal drive, a storage partition, a USB flash drive, or an external drive. Leave the Windows (C:) volume and any volume holding installed apps alone: Microsoft’s drive-letter instructions warn that apps on those volumes can stop running or finding their files.

Before you change anything

Back up important files, close files open on the drive, and write down its current letter and anything that points to it, such as shortcuts, backup jobs, or scripts. A shortcut to E:\Photos stops working after that drive becomes P:, even though the files are still there. Change one drive at a time.

You need an administrator account. On a work or school PC, ask IT first. When picking a letter:

  • C: is the Windows drive. Windows doesn’t let you change it.
  • A: and B: were once reserved for floppy drives. Windows allows them, but D: through Z: avoids confusing older programs.
  • Pick a letter that no other drive, DVD drive, card reader, or mapped network drive uses.

Identify the correct volume

Open Disk Management by right-clicking Start and choosing Disk Management. You can also press Windows + R, type diskmgmt.msc, and press Enter. For more routes, read the guide to opening Disk Management.

A physical disk can contain several volumes. Disk 0 or Disk 1 is a disk, not a drive letter. Select the volume itself, checking its label, size, and current letter to make sure it’s the right one.

To add another volume to a disk, partition the hard drive on Windows 11.

Leave EFI System and Recovery partitions unchanged; Microsoft’s Disk Management overview explains the layout.

Change an existing drive letter in Disk Management

  1. Right-click the data volume you identified and choose Change Drive Letter and Paths. A small dialog lists the volume’s current letter.
  2. Select the letter and click Change.
  3. Choose Assign the following drive letter, then open the list and select an available letter.
Windows Change Drive Letter dialog with a new letter chosen
Choose Assign the following drive letter and pick an available letter.
  1. Click OK. Windows warns that programs that rely on drive letters might not run correctly. Select Yes to continue.

The change applies right away, with no restart needed. Open This PC in File Explorer to confirm it; if an app still shows the old letter, reopen it. Then update shortcuts, backup jobs, or scripts that used the old letter. Programs installed on that drive may need a reinstall.

Change a drive letter in Settings

  1. Press Windows + I to open Settings, then select System > Storage.
  2. Under Storage management, select Advanced storage settings, then Disks & volumes.
  3. Find the volume under its disk and select Properties.
  4. Under Volume data, select Change drive letter.
Windows 11 Settings volume Properties page with the Change drive letter button
In Settings, open the volume’s Properties and select Change drive letter.
  1. Pick a new letter from the list and select OK. The Properties page shows the new letter.

If Change drive letter is missing or unavailable, check the volume in Disk Management using the troubleshooting list below.

Add a letter to a volume that has none

A volume with no letter doesn’t show up in File Explorer. Open the same Disk Management dialog, select Add instead of Change, choose Assign the following drive letter, pick a letter, and click OK. This doesn’t format the drive or create a new volume. If a USB drive is missing for another reason, try the fixes for a USB drive not showing up.

Once a flash drive has a letter, you can open the USB drive in File Explorer like any other drive.

Change a drive letter with PowerShell

Right-click Start and select Terminal (Admin). Approve the User Account Control prompt.

  1. Run Get-Partition to list partitions, their disk numbers, and letters.
  2. Run Set-Partition -DriveLetter E -NewDriveLetter P, replacing E with the current letter and P with the new one.
  3. Run Get-Partition -DriveLetter P to confirm the change.

For a partition with no letter, use its numbers from step 1 instead: Set-Partition -DiskNumber 1 -PartitionNumber 2 -NewDriveLetter P. Microsoft documents both forms on the Set-Partition page.

Change a drive letter with DiskPart

DiskPart is the older command-line disk tool. Type carefully, because it also has commands that erase disks.

  1. In Terminal (Admin), type diskpart and press Enter.
  2. Type list volume and find your drive by its letter, label, and size.
  3. Type select volume 3, replacing 3 with your volume’s number.
  4. Type remove letter=E to drop the old letter, using the current one.
  5. Type assign letter=P to give it the new letter, then type exit.

Microsoft’s assign command reference notes that DiskPart can’t assign letters to system, boot, paging-file, or OEM partitions.

Swap the letters of two drives

Windows won’t give one drive a letter another drive is using, so use a spare letter in between. To swap D: and E:, change D: to Z:, then E: to D:, then Z: to E:. Check shortcuts on both drives afterward.

Undo the change

Open the same dialog for that volume and change it back to the original letter, if it is still free. Any shortcut you already edited to the new letter will need fixing again, so keep your notes until everything works.

Remove a data volume’s letter to hide it

Write down the letter first, because shortcuts and apps that use it stop working. Never remove the letter from the Windows, installed-app, EFI, or Recovery volumes.

In Disk Management, right-click the data volume, choose Change Drive Letter and Paths, select the letter, choose Remove, and select Yes. The drive disappears from This PC, but nothing is formatted or deleted. This only hides the drive; it isn’t encryption or access control. To bring it back, use Add and pick the letter you wrote down.

Use a folder instead of a letter

If you’re running short of letters, Windows can show a drive as a folder, such as C:\Media. In the same dialog, select Add, choose Mount in the following empty NTFS folder, select Browse, pick an empty folder on an NTFS drive, and select OK. Microsoft’s mount point instructions list the requirements.

Rename a drive label without changing its letter

If you only want a clearer name such as Photos, change the volume label instead. The letter stays the same, and nothing is formatted or deleted. Microsoft’s page on the difference between volume labels and letters has more.

  1. Press Windows + E and select This PC.
  2. Right-click the drive and choose Properties.
  3. On the General tab, type the new name in the box at the top.
  4. Select Apply, then OK. Approve the administrator prompt if one appears.

When the option is missing or unavailable

  • Grayed out or missing: this means the volume isn’t ready for a letter. You need administrator access, and you must right-click the volume, not the disk label on the left.
  • RAW, Unallocated, or Not Initialized: if this drive previously held files, stop before initializing, formatting, or creating a volume. Preserve the data and investigate first.
  • EFI System or Recovery: leave these protected system areas alone.
  • The letter you want isn’t listed: another drive or card reader already has it. Free that letter first.
  • Drive not detected: a letter change can’t repair a connection or hardware problem. For an external drive, try another cable and a direct USB port, then use Action > Rescan Disks.
  • Letter keeps changing on a USB drive: Windows normally reuses a drive’s letter, but if another drive has taken that letter when you plug it in, Windows picks the next free one. Assign a letter late in the alphabet, such as U:, to reduce conflicts.

Microsoft’s Disk Management troubleshooting guide covers each of these states. If a formatted data volume still can’t get a new letter, contact Microsoft or your PC maker. Don’t run commands that format or clean the disk.

Drive Letter Questions

Can I change the Windows C drive to another letter?

No. Microsoft’s instructions only apply to volumes that don’t hold Windows or installed apps, and the option is unavailable for C:. Forcing the change can stop Windows from starting. To tell which drive is which, find the C or D drive in Windows 11.

Does changing the letter erase files?

No. Changing the letter doesn’t format or delete anything. Shortcuts and apps that use the old letter stop finding the files, though, so back up first and check that you picked the right volume.

Can I use this for a mapped network drive?

No. Mapped network drives don’t appear in Disk Management. In File Explorer, right-click the drive under This PC and select Disconnect. Then map the network drive again and pick a new letter from the Drive list.

Do I need a third-party tool?

No. Disk Management, Settings, PowerShell, and DiskPart are built into Windows and cover every normal drive-letter change.