What renaming a drive letter means and why you might do it
Renaming a drive letter means changing the letter Windows assigns to a storage device — for example, changing a second hard drive from D: to E:, or a USB stick from F: to Z:. This is different from renaming the drive itself (the label that appears in File Explorer); you are changing the letter that the operating system uses to identify the drive in paths like D:\Documents or E:\Photos.
You might rename a drive letter if a new device is taking the letter you want, if you are moving a drive between computers and want it to use a specific letter for consistency, or if a program expects a drive at a particular letter. On Mac, you cannot change the drive letter itself — macOS uses mount points instead — but you can rename the volume label, which serves a similar purpose.
Key Takeaways
- On Windows, you change a drive letter through Disk Management by right-clicking the drive, selecting Properties, and choosing a new letter from the dropdown.
- The drive must not be in use — no files open, no programs running from it — or Windows will not allow the change.
- If the letter you want is already taken, you must first assign that drive a temporary letter, then reassign the first drive to free up the letter you need.
- On Mac, you rename the volume label (the name that appears on the desktop and in Finder) rather than changing a drive letter, since macOS does not use letters.
- After changing a drive letter, shortcuts, batch files, and some programs that reference the old letter may stop working until you update them.
How to change a drive letter on Windows using Disk Management
Open Disk Management by right-clicking the Start button, selecting Disk Management, or typing "diskmgmt.msc" into the Run dialog (Windows key + R). You will see a list of all drives and partitions on your computer. Locate the drive you want to rename in the lower pane, right-click it, and select Properties.
In the General tab, you will see the drive letter at the top of the window — for example, "D: (Data)". Click the General tab if it is not already selected, then look for a button or link that says "Change" or "Rename". Click it, and a small dialog will open with a dropdown list of available letters. Select the letter you want and click OK. Windows will confirm the change, and the drive will now use the new letter.
If the letter you want is already in use, you cannot assign it directly. Instead, assign the drive you want to rename to a temporary letter (like Z:), then go back to the drive currently using your target letter and change it to a different letter. Once that is done, you can reassign your original drive to the letter you wanted.
What to do if Windows will not let you change the drive letter
The most common reason Windows blocks a drive letter change is that the drive is in use. Close all open files and folders on that drive, shut down any programs running from it, and make sure no background processes are accessing it. If you are trying to rename your C: drive (the system drive), Windows will not allow it — the C: drive must remain as C: for the operating system to function.
If you still cannot change the letter, restart your computer and try again. Sometimes a file lock persists even after you close the program that created it. If the drive is external (USB or external hard drive), try disconnecting and reconnecting it, then opening Disk Management again. If you are using a recovery partition or a drive formatted as FAT32 rather than NTFS, some older versions of Windows may have restrictions on letter changes — check your Windows version documentation or contact the drive manufacturer.
Changing a drive letter through File Explorer (alternative method)
You can also change a drive letter by right-clicking the drive directly in File Explorer. Right-click the drive in the left sidebar or in the main window, select Rename, and type a new name. This renames the volume label (the text that appears next to the drive icon), not the letter itself. If you need to change the actual letter, you must use Disk Management as described above.
Some users confuse renaming the label with changing the letter. If you rename a drive from "Data" to "Backup", the letter stays the same — it is still D: or E: or whatever it was. The label is just the human-readable name. To change the letter itself, Disk Management is the only option on Windows.
How to rename a drive on Mac
Mac does not use drive letters. Instead, each drive has a volume name that appears on the desktop and in Finder. To rename a drive on Mac, right-click the drive icon on the desktop and select Rename, or open Finder, locate the drive in the sidebar, right-click it, and select Rename. Type the new name and press Enter. The change takes effect when ready.
If you want to change where a drive appears in Finder or how it mounts, you can use Disk Utility (Applications > Utilities > Disk Utility), but for most users, renaming the volume label through Finder is sufficient. If you are moving a Mac drive to a different computer, the volume name will travel with it, so you do not need to worry about reassigning letters the way you do on Windows.
What happens to programs and shortcuts after you change a drive letter
Any shortcut, batch file, or program that references the old drive letter will stop working or point to the wrong location. For example, if a batch file contains the line "D:\backup\data.exe" and you change D: to E:, that file will no longer run. Search your computer for references to the old letter in shortcuts, batch files, and configuration files, and update them to use the new letter.
Some programs store drive letter references in their settings or configuration files. If a program stops working after you change a drive letter, check its settings menu or configuration folder (usually in AppData on Windows) and update any paths that reference the old letter. Reinstalling the program sometimes fixes the issue if the paths are embedded in the installation itself.
When to use a temporary letter and how to do it
If you want to swap drive letters — for example, you have D: and E: but you want them to be E: and D: — you must use a temporary letter as an intermediary. Assign D: to a temporary letter like Z:, then assign E: to D:, then assign Z: to E:. This three-step process avoids conflicts and ensures both drives end up with the letters you want.
Open Disk Management, right-click the first drive (currently D:), and change it to Z:. Then right-click the second drive (currently E:), and change it to D:. Finally, right-click the drive now at Z:, and change it to E:. After each step, Windows will confirm the change. Once all three steps are complete, both drives will have swapped letters.
Frequently Asked Questions
Can I change the C: drive letter?
No. Windows requires the system drive (the one containing Windows itself) to be C:. You cannot change it without breaking your operating system. If you need a different letter for organizational reasons, change the other drives instead.
Will changing a drive letter affect my files?
No. The files themselves do not move or change. Only the letter Windows uses to refer to the drive changes. However, shortcuts and programs that reference the old letter will need to be updated.
What if I change a drive letter and then restart my computer?
The new letter will persist. Windows stores the drive letter assignment in the registry, so the change survives a restart. If you want to change it back, use Disk Management again.
Can I use any letter, or are some reserved?
You can use any letter from A to Z, but A: and B: are traditionally reserved for floppy drives (rarely used now). C: is reserved for the system drive. In practice, you can assign any other letter to any drive, though using letters after C: is standard.
What if the drive letter I want is grayed out in the dropdown?
That letter is currently in use by another drive or device. Assign that other drive to a different letter first, then come back and assign your drive to the letter you want. Use the temporary letter method described above if you need to swap letters.
