If you want to use the Diskpart utility to assign drive letters, you first need to open it. To do this, type diskpart at the command prompt and press Enter. Next, you need to identify the disk that you want to work with. To do this, use the list disk command. For example: list disk This will display a list of all disks that are currently installed on your computer. The disk that we are interested in is called C: and is represented by the letter C in the list output. Now we need to identify which drive letter we want to assign to the C: disk. To do this, use the select disk command and specify the letter after cd (for example: select disk c). This will display a list of all available drive letters for the C: disk. We want to assign a new drive letter so we type select letter=d (for example: select letter=d). This will return a list of all available drive letters except d (which is our desired choice). We can now press Enter to accept our selection and assign a new drive letter of d to the C: disk. ..


The Disk Management tool in Windows gives you an easy-to-use graphical interface to dealing with partitions and drive letters, but what if you want to just quickly change a drive letter on the command prompt? The diskpart utility makes it easy.

You’ll need to start by opening an administrator mode command prompt — type cmd into the search box, and then right-click and choose Run as administrator, or use the CTRL + SHIFT + ENTER keyboard shortcut.

Once there, run the diskpart command, and then type in the following to list out the volumes on your system.

You’ll want to note the volume number next to the drive that you want to change the letter of. In our case, that number is 3.

Now we’ll use the select volume command to tell diskpart to make changes to that volume. If your drive number is different, you’ll want to replace the 3 with the number in your configuration.

You should see a message that the volume is now selected.

At this point you can easily assign a new drive letter. Just type in this command, substituting R for the drive letter you’d like to use:

Make sure to hit enter once you’re done, of course.

Once you’ve made that change, your drive should show up again as a new device, and be available for browsing immediately.

If you want to unassign a drive letter in order to hide the drive, you can also use the remove letter command in the same way. We wouldn’t necessarily advise doing this, of course.

Don’t bother trying to change your C: drive, because that’s not going to work.