Recipe 7.5. Setting the Drive Letter of a Volume


You want to set the drive letter of a volume.


Using a graphical user interface

  1. Open the Computer Management snap-in.

  2. In the left pane under Storage, click on Disk Administrator.

  3. In the bottom right pane, right-click the target volume or disk and select Change Drive Letter and Paths.

  4. Click the Change button.

  5. Beside Assign the following drive letter, select the new drive letter from the drop-down list and click OK.

  6. Click Yes to confirm.

Using a command-line interface

The diskpart command lets you assign drive letters from the command line. First, start by running the command in interactive mode:

> diskpart

List the current volumes on the system:

DISKPART> list vol

From the output, select the volume in which you want to set the driver letter. In the following command, we're selecting volume 0:

DISKPART> select vol 0

Now, assign the drive letter you want. In the following example, we're assigning letter F:

DISKPART> assign letter=F


When volumes are made active and removable media added to a system, they are automatically assigned the next available drive letter (in alphabetical order starting from C). It is a straightforward operation to change the drive letter of a drive, but you need to be sure nothing references the prior drive letter. If you attempt to assign a different drive letter to an existing drive that is currently in use, the system will let you do it and allow both the old drive letter and new drive letter to be used until the system is rebooted. After the system restarts, the old drive letter will go back into the pool of available drive letters.

If you want to change the drive letter of the system drive, you have to follow special procedures. See MS KB 223188 for more information.

See Also

MS KB 234048, "How Windows 2000 Assigns, Reserves, and Stores Drive Letters," and MS KB 223188, "How To Restore the System/Boot Drive Letter in Windows"

Windows XP Cookbook
Windows XP Cookbook (Cookbooks)
ISBN: 0596007256
EAN: 2147483647
Year: 2006
Pages: 408

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: