Sign in | Report Abuse | Print Page | Powered By Google Sites

  • Backup & Recovery
  • Hard Disk Manager
  • HFS+ for Windows
  • ExtFS for Windows
  • Disk Wiper Professional
  • Drive Copy Professional
  • Migrate OS to SSD
  • Paragon Alignment Tool Professional
  • NTFS for Mac
  • Hard Disk Manager for Mac
  • ExtFS for Mac

diskpart assign letter

Assign, change or remove Drive Letter with Diskpart

Diskpart is very powerful Windows Utility, which allows certain number of operation with hard disk. In this article we will show you how to assign, change or remove drive letter with Diskpart using.

Windows-10-x64-Original-2016-09-05-14-24-29

You bought hard drive for Backup, but it has automaticaly gained letter D . You want to change it to E . First we need to open Command Prompt with Administrator Rights.

Type cmd into the search box, and then right-click and choose Run as administrator. If you have Windows 10 use the CTRL + SHIFT + ENTER keyboard shortcut on Screen 1 , or click on Start with right click and choose Command Prompt (Admin) on Screen 2 .

cp001

When Command Prompt pops up, run the diskpart command.

run_dpt

Now we type list volume to list our volumes, we need to know the number of our volume.

list_vol

In our case our hard drive is Volume 3 and that number is 3 .

Now we use command select volume 3 to make changes to that volume. If your volume number is different, you need to replace number  3 with the number from your volume. After we have selected our volume we use command assign letter E , to assing letter E to our volume.

asn_let

Now you know how to change or assign another letter to your volume, also if you need you can remove volume letter with command remove letter E

rem_let

For security reasons you cannot change or remove your current system disk letter (esp C ), it will not work.

To exit diskpart type in exit .

exit

Enter your email and receive updates about special offers and exclusive content!

Connect with us for giveaways, exclusive promotions and last news!

diskpart assign letter

logo

[Free Guide]: Use Diskpart Assign Drive Letter in Windows 11, 10, 8, 7

This post will show you how to use Diskpart assign drive letter in Windows 11, 10, 8, 7. In addition, another free GUI software will be introduced to assign or remove the drive letters.

diskpart assign letter

Why use Diskpart assign drive letter?

As we all know, Windows assigns drive letters to all available drives on your computer, such as internal hard drives, optical drives, SD cards, and external USB drives. A drive letter is an alphabetical identifier for a volume, and each drive letter can be used once on a computer.

But sometimes, users want to change the original drive letter to another drive letter. Or due to some operation, the drive letter will not be available and the user needs to assign a new drive letter. So a computer-experienced user might assign drive letter by Diskpart, as this is the faster way. The purpose of this article is to provide you with some methods for assigning a drive letter , including Diskpart, Disk Management, and another easier way.

Step-by-step: Assign drive letter by Windows built-in tools

Windows OS users know they have two amazing tools for managing disks and partitions - Disk Management and Diskpart.

The Disk Management tool in Windows provides you with an easy-to-use graphical interface to manage your disks with a single mouse click. And Diskpart is a command-line tool that allows you to quickly manage your disks or partitions from the command prompt. The next section will show you how to use Disk Management and Diskpart to assign drive letters.

│ Use Diskpart to assign drive letter

Diskpart is a Windows built-in tool that you can use to manage your hard drive, like format disk partition, create partition, delete partition , etc. Well, how to use Command Prompt Diskpart assign drive letter? The following parts may help you a lot.

Step 1.  Press "Windows + R". Then, type "diskpart" and press Enter.

Step 2. Type in "list volume" and press Enter. Now, you can see all volumes on PC.

Step 3. Type in "select volume 7" and press Enter(here take volume 7 as an example).

Step 4.  Finally, type in“assign letter=F” and press Enter.

If you want to remove the drive letter, type “remove letter=X”(X is the drive letter you want to remove).

Actually, you may assign a drive letter when you create a new one. For that, you need to create partition first. After creating a partition, type “assign letter=?” to that partition. Or, if there is some volume hidden, it will not have the drive letter, to unhide it, you need to assign a drive letter for it. 

│ Assign drive letter via Disk Management

In addition to Diskpart, Disk Management may be another good choice to assign drive letter.

Step 1.  Press “ Win + R ” to open the “ Run ” window and type  diskmgmt.msc  in the box.

Step 2 . Right-click the drive you want to assign, and select change Drive Letter and Paths  in the pop-up window.

change drive letter and path

Step 3.  Click  Change  to summon the next window.

change

Notice:  If you want to remove the drive letter of your partition, you can select " Remove " and follow the instructions step by step.

Step 4.  After that, you should choose the new drive letter from the drop list, and then, click  OK .

assign new letter

Now, do you understand how to use Disk Management and Diskpart assign drive letter?

Although it's convenient for most people, you need to be aware that sometimes you can't assign drive letter successfully, because Disk Management and Diskpart only support assigning drive letter with FAT or NTFS. When the drive's file system is another type, you can format it to NTFS or FAT, or use another method to assign a drive letter.

Diskpart assign drive letter alternative

Disk Management and Diskpart are not perfect because they have limitations. Fortunately, there is an easier way to make up for their shortcomings perfectly.

AOMEI Partition Assistant Standard is a completely free third-party partition manager. It supports users to assign drive letters through a more friendly interface, which can be done with just a few clicks, much simpler than Diskpart. Also, it can assign drive letter on any file system. More importantly, it has more complete functions and allows you to manage disks flexibly.

Step 1. Launch AOMEI Partition Assistant, it will show you all storage devices in the main interface. you can see the removable drive doesn't have a drive letter. If you want to assign a drive letter for the drive, here you need to right click it, select Advanced-> Change Drive Letter.

Assign Drive Letter

Step 2. Then, select a drive letter for the drive.

Choose New Drive Letter

Step 3. Click Apply to submit the task.

Apply Assign Drive Letter

Now, do you know how to use Diskpart assign drive letter? If you are a user who has a computer background, Diskpart may be the quickest method to assign the drive letter. However, if you are normal user, AOMEI Partition Assistant Standard is the correct choice.  After you upgrade to AOMEI Partition Assistant Professional , there are more advanced features you can try, such as allocating free space from one drive to C, and Move the installed app from one drive to another.

Last but not least, although the system drive letter can be changed, do not do it because that would make the system unable to boot.

Free Partition Manager

diskpart assign letter

diskpart assign letter

Download.com Rating

diskpart assign letter

Still Need Help?

Have your problem been solved? If not, please input query in the search box below.

How We Engage

Quick Links

Managed Testing Services

Managed crowd testing, project-based testing, strategic consultancy, global delivery, risk-based testing, test.predictor, test.consolidator.

Quality Assurance

Ensure the success of your technologies. We’ll help you optimize costs, quality and customer experience.

Quality Engineering

We’ll help you achieve business assurance and embrace the culture of quality orchestration across your business, technologies and operations.

Digital Engineering

Offer your customers outstanding experiences with expert digital engineering solutions, including DevOps, product engineering, AI & data analytics, digital EdTech and more.

Confused Between DevOps, Continuous Delivery and Continuous Deployment? Let’s Break It Down

You may have heard the terms – Continuous Delivery, Continuous Deployment and DevOps being use...

Strategic Advisory

Lorem ipsum dolor sit amet eros hac cras auctor cursus malesuada ultrices suspendisse sed.

New Testing Show Podcast: Test Coverage – An Expert Evaluation

Test coverage, apart from being a crucial factor in software maintenance, indicates software quality. It acts as a metric for...

Whatever industry you’re in, we have the expertise and experience to tailor the right testing solution for you, based on your specific needs and requirements.

Medical Devices

Retail & consumer goods, banking and financial services, media & entertainment, pharma’s 6 crucial digital health challenges (and how to overcome them).

In addition to developing innovative and effective digital health products, pharma & medical device companies need to deal with added...

Tell us your business goals and priorities, and we’ll customize one or more of our flexible engagement models for the perfect solution.

The 6 Ways Managed Software Testing Services Can Boost Your Business

Ensuring quality and meeting the customers’ expectations in this rapidly growing competitive landscape is a challenging yet inevitable task for...

Tools & Innovation

We have developed advanced, intelligent tools that take testing and data & knowledge management to a new level of efficiency, while providing invaluable insights.

The Unique Benefits of AI-Led Tools in Quality Engineering

Effective testing tools and streamlined testing plans are more important than ever before. By combining AI-enhanced tools that can simplify...

As a Qualitest client you get access to some of the best technology available in the software testing world.

Competition is Fierce: Improving Your Quality Engineering with the Power of AI

Artificial intelligence (AI) is seemingly everywhere, and for good reason. From driving citizen services in government to tailoring a personalized customer experiences in...

Get the latest quality engineering insights to evolve your methodologies and technologies and help move your business forward

Latest Insights

Large uk local authority achieves faultless migration from on-prem to the cloud, taking your it to the next level: the immense value of staff augmentation services.

How to assign a drive a letter using Diskpart

Introduction:

Windows volume drive letters can be altered from the command line using Diskpart.

Requirements:

Access to the Windows command line.

From your taskbar, start a search for

Enter the command:

Example output:

but replace “2” with the desired volume number. Enter the command:

but replace the “q” with any desired letter that is not already being used by another volume.

More Information:

within  diskpart  for more information.

Sign up to receive insightful content.

New call-to-action

Let's make your job easier

Sign up to get insightful content.

diskpart assign letter

How to add a partition using Diskpart

More Recovery Products

Centralized Solutions

MSPs Service

Screen Capture

Video Toolkit

Audio Tools

Transfer Products

File Management

iOS Utilities

More Products

Tutorial on Diskpart Assign Drive Letter in Windows 11/10/8/7 [Detailed Guide]

On this page, you can learn a detailed guide on Diskpart assign drive letter and a professional alternative to Diskpart:

How can we use Diskpart to assign a drive letter? This article guides you on Diskpart to assign a drive letter and provides a professional alternative to Diskpart, but first, let's learn more about Diskpart.

What Is Diskpart

Diskpart  is a free command line utility that handles Windows OS commands to perform many disk partitioning tasks via different command lines. It was introduced in Windows 2000 and is the successor to fdisk. As it was introduced, Diskpart is a disk partitioning utility that helps experienced professional Windows users manage their storage devices. 

diskpart interface

As you know, Windows assigns drive numbers to all available drives on the computer, such as optical drives, internal hard drives, SD cards, and external USB drives. A drive letter is a letter identifier for one volume, and each drive letter can be used once on the computer.

And some users with computer experience may assign drive numbers via  Diskpart commands . So next, let's see how we can use Diskpart to assign a drive letter.

Full Guide on Diskpart Assign Drive Letter - Complex

Diskpart is a command line tool that allows you to quickly manage disks or partitions from a command prompt. It can create, delete, extend, or shrink a partition. But how to assign a drive letter via Diskpart? Next, I will show you how to use Diskpart to  change drive letter .

Step 1.  Press Windows + S at the same time to run the search box. Then type cmd. When the command prompt window appears, right-click it and choose "Run as administrator."

Step 2.  Type  diskpart  in the command prompt windows and press Enter.

Step 3. Then, type the following commands, and don't forget to press Enter after you type one command:

cmd assign drive letter

In this way, you can assign a drive letter to your partition and still use Diskpart commands to extend a partition or delete a partition. However, sometimes you may encounter problems, such as " Diskpart failed to extend the volume " or"Diskpart  can't change drive letter ."

So, to avoid these errors, a professional disk management tool is needed to help you, EaseUS Partition Master. Next, let's see how it helps us.

Professional Alternative for Diskpart Assign Drive Letter - Easy

Diskpart is not perfect because it has limitations. Fortunately, there is a simpler way to perfectly compensate for their shortcomings.

EaseUS Partition Master Professional is a utility third-party partition manager. It supports users in assigning disk partitions through a clear interface that can be finished with just a few clicks. And it is much easier than Diskpart. Moreover, it can assign drive numbers on various  file system types . What's more, it is more functional and allows you to manage your disks. Now, download it and follow the guide to assign a drive letter via EaseUS Partition Master.

 Windows 11/10/8/7  100% Secure

Step 1.  Run EaseUS Partition Master, right-click the target partition, and choose "Change Drive Letter".

Step 2.  In the new window, click the down arrow and choose a drive letter for the partition from the drop-down menu, then click "OK".

Step 3.  Click the "Execute 1 Task(s)" button in the top-left corner, check the changes, and click "Apply" to change the drive letter of the selected partition.

Besides, it can do far more than assigning a drive letter. So now, let's learn more features about it.

Features of EaseUS Partition Master:

Hence, download EaseUS Partition Master to help you to solve any problems with your  disk partition . Its clear interface will make it easy to use, so don't worry and download it to help.

Do you know how to use Diskpart to assign drive letters? This part provides two ways to assign a drive letter. If you are a user with a lot of computing experience, Diskpart is probably the fastest way to assign disk characters. However, if you are a normal user or don't know much about computer operation, EaseUS Partition Master is the right choice. 

You may like the following content:

By the way, the next part shows several questions related to Diskpart. Continue to read if you would like to learn more.

Diskpart Assign Drive Letter FAQs

You have learned to use Diskpart to assign a drive letter and a professional alternative to Diskpart. This paragraph shows you several frequently asked questions. If you have similar problems, continue to read.

1. How do I assign a drive letter without formatting?

First, open Diskpart by typing diskpart in the Command Prompt window.

Then, type the following commands in the Diskpart window:

Remember to hit enter each time you type a command and replace one and H with the correct number and the letter you like.

2. What does diskpart assign do?

Diskpart can assign a drive letter to your volume. If you want to change the drive letter or the original drive letter doesn't work, you can use Diskpart commands to assign a new drive letter.

3. Can I assign drive letter B?

No, you can't. Letter A and letter B are for floppy drives. And the letter C is usually for the system partition. So you can choose a letter from D to Z for your drive.

Was This Page Helpful?

Related Articles

How Long Does It Take to Format an External Hard Drive [Full Guide]

author icon

How to Clear Recents on Mac Without Losing Data [2022 Guideline]

author icon

PC Not Working Properly? Try A Fresh Install Windows 10

author icon

How to Fix PC Randomly Turns Off

NEW Released

EaseUS DriverHandy

Editor's Pick Review

EaseUS Data Recovery Services

Request a free evaluation >>

EaseUS data recovery experts have uneaqualed expertise to repair disks/systems and salvage data from all devices like RAID, HDD, SSD, USB, etc.

safty

Copyright ©   EaseUS. ALL RIGHTS RESERVED.

At the edge of tweaking

Advertisement

How to Change Drive Letter in Windows 10

By default, Windows 10 automatically assigns drive letters to connected drives, including internal and external drives. You might want to change these letters. Here is how it can be done.

Windows 10 assigns an available drive letter to a new drive connected to the computer. The operating system goes through the alphabet from A to Z to find the first available letter to assign it to various drives. Historically, it reserves the drive letters A and B for floppy drives.

Modern Windows versions assign the C letter to the system partition which Windows is installed on. Even in a dual-boot configuration, Windows 10 displays its own system partition as C:.

USB Drive Icon In This Pc With Setup

Changing drive letters will allow re-arranging drives in the This PC folder. This can be useful after you add an extra drive or create a new partition. For example, you might want to change its drive letter to display it before the DVD drive. Also, when you change the drive letter of a USB drive, it will be assigned permanently. Often Windows 10 randomly changes the drive letter for external drives when you connect them, so this way you can make this process more predictable.

Tip: Show drive letters before drive names in This PC / Computer folder .

There are a number of methods you can use to change the drive letter of a drive in Windows 10. Let's review them.

To change the drive letter in Windows 10 , do the following.

Win+X Menu Disk Management Command

You are done. The drive will appear in File Explorer under the letter you've chosen.

Change the drive letter in the command prompt

Windows 10 Diskpart List Volume

You are done.

Change the drive letter in PowerShell

Windows 10 PowerShell Get Partition

For example, the command can look as follows:

PowerShell Assign Drive Letter

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram , Twitter , and YouTube . View all posts by Sergey Tkachenko

One thought on “How to Change Drive Letter in Windows 10”

Really thank you this steps very helpful

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

transparent

Privacy Overview

css.php

Complete Guides by How-To Geek

Our latest product roundups, reader favorites, more from how-to geek, latest geek news, latest reviews, across lifesavvy media.

Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.

By submitting your email, you agree to the Terms of Use and Privacy Policy .

How to Use the Diskpart Utility to Assign and Remove Drive Letters

Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people. Prior to starting How-To Geek, Lowell spent 15 years working in IT doing consulting, cybersecurity, database management, and programming work. Read more...

diskpart assign letter

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.

list volume

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.

select volume 3

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:

assign letter=R

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.

diskpart assign letter

IMAGES

  1. How to Remove and Assign Drive Letters in Windows with Diskpart

    diskpart assign letter

  2. Assign, change or remove Drive Letter with Diskpart › Knowledge Base

    diskpart assign letter

  3. diskpart+assign+letter

    diskpart assign letter

  4. How to create a partition on Windows 7 • Pureinfotech

    diskpart assign letter

  5. How to assign permanent letters to drives on Windows 10

    diskpart assign letter

  6. How to Permanently Assign Drive Letter with Ease?

    diskpart assign letter

VIDEO

  1. Windows 7

  2. how to use a diskpart in using a cmd

  3. CLEAR OR SET READ ONLY FLAG ON DISK IN WINDOWS USING DISKPART

  4. How to Assign A Drive Letter Win 8/10

  5. Disk Part Command in Hindi

  6. How to Change Drive Letter in Windows 10

COMMENTS

  1. What Is the Definition of a Friendly Letter?

    The definition of a friendly letter is an informal written correspondence with someone to whom the writer has a relationship. Usually a friendly letter goes to a family member or friend, and the tone is familiar and relaxed.

  2. What Is a 147c Letter?

    A 147c letter is a form from the IRS that verifies a company’s information. The letter includes the legal name, address and EIN of the business. The form is needed by payroll CPAs and merchant service processors to ensure they have the corr...

  3. What Is a Letter of Undertaking?

    A letter of undertaking is a written promise of intention that outlines the terms and conditions between two parties who are usually entering into a work-related agreement. The letter is written by the person who is contracted to perform th...

  4. DiskPart to assign drive letters via Command Prompt

    DiskPart to assign drive letters via Command Prompt · 1. Open a command prompt · 2. Type in diskpart · 3. Type list disk to see a list of disks · 4. Type select

  5. Assign, change or remove Drive Letter with Diskpart › Knowledge

    Now we use command select volume 3 to make changes to that volume. If your volume number is different, you need to replace number 3 with the number from your

  6. [Free Guide]: Use Diskpart Assign Drive Letter in Windows 11, 10, 8, 7

    Step-by-step: Assign drive letter by Windows built-in tools ; Step 1. Press "Windows + R". Then, type "diskpart" and press Enter. ; Step 2. Type

  7. How to assign a drive a letter using Diskpart

    Procedure: · cmd. Enter the command: · diskpart. Enter the command: · list volume. Example output: · DISKPART> list vol · select volume 2 · assign letter=q.

  8. Manually assigning a drive letter using CMD/Diskpart

    Manually assigning a drive letter using CMD/Diskpart · Type "list vol" to list all available volumes. · Select the volume using "sel vol <number>"

  9. Full Guide on Diskpart Assign Drive Letter in Windows 11/10/8/7

    Diskpart can assign a drive letter to your volume. If you want to change the drive letter or the original drive letter doesn't work, you can use

  10. Diskpart

    More on the blog: https://bit.ly/31NoF4GAssign drive letters in the command line with Diskpart.Start a command prompt and type “diskpart”.

  11. How To Manually Assign Or Change A Drive Letter Using ...

    How to change drive letter using cmd/Diskpart on Windows 10/11Type "diskpart"Type "list vol"Select the volume using "sel vol number"Assign

  12. How to Change Drive Letter in Windows 10

    Change the drive letter in the command prompt · Open an elevated command prompt. · Type diskpart . · Type list volume to see all drives and their

  13. How to Use the Diskpart Utility to Assign and Remove Drive Letters

    Once there, run the diskpart command, and then type in the following to list out the volumes on your system. · Now we'll use the select volume

  14. Creating Disks and Volumes Using the DiskPart Command

    DISKPART>assign letter=C DISKPART>format quick. Example 2: Creating a System and a Boot dynamic volume using the DiskPart command.