sodcalculator

10 Tech How-To

Fix USB Drive Letter Keeps Changing in Windows 11

Guide 10-57660 · Updated · Step by step

If your USB drive letter keeps changing in Windows 11, the quickest fix is to assign a permanent drive letter via Disk Management, but first check for USB power management and driver issues. This article explains why the letter changes, how to lock it, and what to do when it still won’t stick.

Why Does the Drive Letter Change?

Windows assigns drive letters dynamically when a device is connected. If the letter you want is already taken by another drive (including a network drive or a card reader), Windows will pick the next available one. Other common causes include:

  • USB ports with different controllers – each port may be treated as a separate device.
  • USB power management – Windows may disconnect and reconnect the drive to save power, causing a new letter.
  • Driver conflicts or outdated USB drivers.
  • Another device (like a phone or SD card) grabbing the letter first.
  • Group Policy or third-party software that resets drive letters.

How to Assign a Permanent Drive Letter

The most reliable way is to use Disk Management. Here’s how:

  1. Press Win + X and select Disk Management.
  2. Find your USB drive (usually labeled Removable). Right-click its partition and choose Change Drive Letter and Paths.
  3. Click Change, pick a letter that is not already in use (e.g., Z), and click OK.
  4. Restart your PC and reconnect the drive to test.

If the letter still changes after a reboot, the drive may be re-enumerated. In that case, try a different USB port (preferably one directly on the motherboard) and update your chipset drivers.

Disable USB Power Management

Windows 11 can suspend USB devices to save power, which causes them to drop and reconnect. To stop this:

  1. Open Device Manager (Win + X → Device Manager).
  2. Expand Universal Serial Bus controllers.
  3. Right-click each USB Root Hub and select Properties.
  4. Go to the Power Management tab and uncheck Allow the computer to turn off this device to save power.
  5. Repeat for all USB Root Hubs and click OK.

This is especially useful for external hard drives that spin down unexpectedly.

Use a Script to Auto-Assign a Letter

If you need a more automated solution, you can use a PowerShell script that runs at startup. This is a bit more advanced but works reliably:

  1. Open Notepad and paste this script:
Get-Disk | Where-Object { $_.BusType -eq 'USB' } | Get-Partition | Set-Partition -NewDriveLetter 'Z'
  1. Save the file as SetDriveLetter.ps1.
  2. Open Task Scheduler and create a new task that runs at logon with the action powershell.exe -ExecutionPolicy Bypass -File "C:\path\to\SetDriveLetter.ps1".

This will assign the letter Z to your USB drive every time you log in. Make sure to change the path and letter to your preferences.

Common Problems and Misconceptions

“My drive letter changes every time I plug it into a different port.” This is normal if the ports are on different USB controllers. Windows remembers the letter per port, not per drive. Plugging into the same port usually keeps the letter.

“I set the letter but it reverts after a reboot.” This often happens because the drive is not properly ejected before reboot, or because a background process (like indexing) is using it. Always safely eject the drive before restarting.

“I can’t change the letter because it says ‘The parameter is incorrect’.” This usually means the drive is not formatted with a recognized file system. Try formatting (backup your data first) or use a tool like DiskPart to clean and recreate the partition.

Alternatives: Third-Party Tools and Registry Tweaks

If the built-in methods fail, you can use a third-party tool like USB Drive Letter Manager or Rufus (for creating bootable drives). These tools can assign persistent letters. Another option is to edit the registry, but this is risky and only recommended for advanced users. The registry key is:

HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

You can rename the value for your USB drive to the desired letter, but be careful – incorrect edits can cause system instability. Always back up the registry first.

Frequently Asked Questions

Why does my USB drive get a different letter on each computer?

Each computer has its own drive letter assignments. The letter you set on one PC is not stored on the USB drive itself, so it will get the next available letter on another PC. This is normal behavior.

Can I make Windows always assign the same letter to my USB drive?

Yes, by assigning a letter that is not used by any other drive and ensuring the same USB port is used. You can also use a script or third-party tool to force the assignment at every connection.

Does formatting my USB drive fix the changing letter?

No, formatting does not affect drive letter assignment. The letter is managed by Windows, not the drive itself. However, if the drive has corrupted partitions, formatting can make it recognizable again.

Is it safe to change the drive letter of my system drive?

No, changing the system drive (usually C:) can break Windows. Only change letters for removable drives or secondary partitions. Windows will not allow you to change the system drive letter in Disk Management anyway.

Why does my USB drive show as two drives?

This happens if the drive has multiple partitions (e.g., a bootable USB with a separate data partition). Each partition gets its own letter. You can remove the extra partition using DiskPart, but be careful not to delete data you need.

Final Tips

If you’ve tried everything and the letter still changes, consider using the drive’s volume label (name) instead of the letter in your shortcuts and scripts. You can also pin the drive to Quick Access in File Explorer, which will show it even if the letter changes. For most users, assigning a letter in Disk Management and disabling USB power management will solve the issue permanently.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →