How to Change a Drive Letter in Windows 11 Using Disk Management and Diskpart

In Windows 11, the operating system assigns unique drive letters (from A through Z) to internal storage partitions, secondary solid-state drives, optical disc drives, external USB hard drives, and virtual hard disks. While Windows assigns drive letters automatically upon volume detection, these default assignments do not always match your workflow preferences. You might want to assign dedicated letters for backup volumes (such as B:), reserve D: exclusively for a secondary high-speed NVMe gaming drive, or fix broken file paths caused when external drives swap letters after rebooting.

Windows 11 provides two primary methods to modify drive letter assignments: the graphical Disk Management console for quick desktop configuration, and the powerful Diskpart command-line utility for advanced administration, scripting, and headless troubleshooting. This tutorial guides you through changing, assigning, and removing drive letters using both tools while explaining critical system volume safeguards.

Rules and Safeguards for Drive Letter Assignment

Before reassigning drive letters in Windows 11, consider the following technical rules:

  • System Drive Protection (C:): Windows locks the active system drive letter C:. You cannot change the letter of the drive hosting your active Windows installation without breaking system bootloader pointers, environmental variables, and registry hive paths.
  • Installed Software Dependencies: If you have installed third-party programs or configured shortcut links pointing to a specific drive letter (e.g., E:\SteamLibrary or D:\Databases), changing that drive letter will temporarily break application shortcuts until paths are updated or remapped.
  • Reserved Letters: Letters A: and B: were historically reserved for floppy disk drives. In modern Windows 11 systems, they are fully available for assignment to secondary hard drives, flash drives, or backup partitions.

Method 1: Changing Drive Letters Using Disk Management (GUI)

The Disk Management console provides a clear graphical overview of all physical disks and partitions:

  1. Right-click the Start button on your taskbar (or press Windows + X).
  2. Select Disk Management from the Quick Link menu.
  3. Locate the target volume in either the upper volume list or the lower graphical disk map.
  4. Right-click the partition and select Change Drive Letter and Paths… from the context menu.
  5. In the dialogue box that appears, select the currently assigned drive letter and click Change….
  6. Choose Assign the following drive letter, click the dropdown menu, and select your preferred available letter.
  7. Click OK. Windows displays a confirmation warning: “Some programs that rely on drive letters might not run correctly. Do you want to continue?”
  8. Click Yes to confirm the reassignment.

File Explorer immediately updates, displaying your partition under the newly selected letter.

Method 2: Changing Drive Letters Using Diskpart (Command Line)

When working through remote PowerShell sessions, automated deployment scripts, or Windows Recovery Environment (WinRE), use the native diskpart command interpreter:

Step 1: Launching Diskpart with Administrator Privileges

  1. Right-click the Start button and select Terminal (Admin).
  2. In the command prompt, type the following command and press Enter:
    diskpart

Step 2: Listing Volumes and Selecting the Target Drive

  1. Display all detected volumes across all connected disks:
    list volume
    Windows outputs a structured table indicating Volume number, Letter, Label, File System, Type, and Size:
      Volume ###  Ltr  Label        Fs     Type        Size     Status
      ----------  ---  -----------  -----  ----------  -------  ---------
      Volume 0     C   Windows      NTFS   Partition    475 GB  Healthy
      Volume 1     E   ExternalUSB  NTFS   Partition    931 GB  Healthy
      Volume 2     D   DataStorage  NTFS   Partition   1863 GB  Healthy
  2. Select the volume you wish to modify by referencing its volume number:
    select volume 1
    Diskpart confirms: “Volume 1 is the selected volume.”

Step 3: Assigning the New Drive Letter

  1. Assign the desired letter using the assign command:
    assign letter=X
    Diskpart returns: “DiskPart successfully assigned the drive letter or mount point.”
  2. To exit the Diskpart environment, type:
    exit

Removing a Drive Letter to Hide a Partition

If you have a diagnostic recovery partition, sensitive backup volume, or secondary staging drive that you want to hide from File Explorer without deleting its data, you can remove its drive letter entirely:

  • In Disk Management: Right-click the volume, select Change Drive Letter and Paths…, click Remove, and confirm with Yes.
  • In Diskpart: Select the volume and execute remove letter=X.

The underlying data remains intact, but Windows hides the volume from standard user browsing until a letter is reassigned.

Whether using Disk Management or Diskpart, managing drive letters in Windows 11 allows you to maintain structured drive hierarchies, preserve file linkages, and streamline storage organization across all connected media.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.