How to change a drive letter

Updated: 12/30/2021 by Computer Hope
Microsoft Windows logo

In Microsoft Windows, different storage media, devices, and partitions on your computer are identified using drive letters. By default, these letters are assigned automatically. However, if you desire to change a default drive letter, may do so by following the steps below.

Note

If you're trying to switch between drives, see: How to change drives in MS-DOS and Windows command line.

Windows 2000, XP, Vista, 7, 8, 10, and 11

  1. Open the Disk Management utility.
  2. Right-click the volume whose drive letter you want to change and select the Change Drive Letter and Paths option.

Menu for changing a drive letter in Windows

  1. In the window, click the Change button.

Menu for changing drive letters

  1. In the next window, select the letter you desire from the drop-down menu on the right, then click OK.

Change drive letter window

CD-ROM, DVD-ROM, and other devices

In the newer versions of Windows, devices that are not considered to be volumes (i.e., CD-ROM (Compact Disc Read-Only Memory) and DVD-ROM (Digital Versatile Disc Read-Only Memory) drives) aren't listed on the same page as hard drives, SSDs, and partitions. However, you can adjust which section you are viewing, allowing you to assign a different drive letter to these devices.

Note

The letter you assign to these devices must come after that of the hard drive. For example, because your hard drive is C:, you may only use D: through Z:. If you have multiple hard drives or partitions and your last drive letter is F:, you can only change your device's drive letter to G: through Z:.

Windows 2000, XP, Vista, 7, 8, 10, and 11

  1. Open the Disk Management utility.
  2. At the top of Disk Management window, click the View menu.
  3. In the drop-down menu, select Top, then select Disk List.

Disk list menu in Windows, showing disk drives

  1. Right-click the disk drive whose drive letter you want to change and select the Change Drive Letter and Paths option.

Menu for changing a disk drive letter in Windows.

  1. In the window, click the Change button.

Window to add or change disk drive letters.

  1. In the next window, select the letter you desire from the drop-down menu on the right, then click OK.

Change disk drive letter window.

Windows 95, Windows 98, and Windows Me

  1. Open the Device Manager.
  2. Click the plus sign (+) next to CD-ROM or DVD/CD-ROM drives.
  3. Double-click the disk drive whose drive letter you want to change.
  4. Click the Settings tab.
  5. Where the computer lists the Start and end drive letter, make your selection and click OK.
  6. Restart the computer.

MS-DOS and Windows 3.X

  1. If you are in Windows, Exit to an MS-DOS prompt.
  2. Type cd\ and press Enter.
  3. Once at DOS type edit c:\autoexec.bat
  4. In the autoexec.bat window, locate the MSCDEX line.
  5. On the MSCDEX line, if it's missing /L:x (where x is the drive letter), add /L:D (assigning the CD-ROM to D: and can be anything up to Z:).
  6. Once changes are made, click File (if you do not have a mouse, press Alt+F), then choose Exit and say Yes to save the changes.
  7. Once back at DOS, type edit c:\config.sys
  8. In the config.sys window, look for anything that says "LASTDRIVE=x" (were x is the last drive letter). If the line is missing, add LASTDRIVE=K (or the letter you want as the ending letter) at the top of the config.sys file.
Note

The LASTDRIVE must be a letter between C and Z.

  1. Once changes are made, click File (if you do not have a mouse, press Alt+F), then choose Exit and say Yes to save the changes.
  2. Restart the computer.