how to assign drive letter to partition diskpart

Top Contributors in Windows 11: RAJU.MSC.MATHEMATICS  -  questions_  -  Ramesh Srinivasan  -  Horace Wiggins  -  neilpzz 👏

November 15, 2023

Top Contributors in Windows 11:

RAJU.MSC.MATHEMATICS  -  questions_  -  Ramesh Srinivasan  -  Horace Wiggins  -  neilpzz 👏

  • Search the community and support articles
  • Search Community member

Ask a new question

LightJack05

  • Article Author

Manually assigning a drive letter using CMD/Diskpart

[Localization from this article: Manuelles Zuweisen eines Laufwerksbuchstaben mit CMD bzw. Diskpart - Microsoft Community ]

Technical Difficulty: Expert

Applies to: Windows 10 & 11

In some cases, Windows will not assign a drive letter automatically to an inserted drive. For example, this can happen when using a Windows installation media.

In that case, you can use diskpart to manually assign a drive letter.

NOTE: If your drive doesn't get assigned a drive letter, even though you are in a normal Windows environment, this can indicate a problem with the drive. Please back up your files in that case.

Open up a command prompt (CMD/PowerShell).

Type "diskpart" to start up diskpart. You will see the prompt change to "DISKPART>".

how to assign drive letter to partition diskpart

Type "list vol" to list all available volumes. You can identify the drive by size and file system.

Additionally, the volume doesn't currently have a drive letter.

how to assign drive letter to partition diskpart

Select the volume using "sel vol <number>".

how to assign drive letter to partition diskpart

Assign the drive letter using "assign letter=<letter>".

how to assign drive letter to partition diskpart

You can now exit diskpart by typing "exit" and switch to the drive using "<letter>:".

how to assign drive letter to partition diskpart

It should also be available from Windows Explorer now.

40 people found this helpful

  • Subscribe to RSS feed

Was this article helpful? Yes No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this article?

Thanks for your feedback, it helps us improve the site.

Thanks for your feedback.

Comments (17) 

* Please try a lower page number.

* Please enter only numbers.

Joe13 B-) 2.0

Thanks for the tutorial, I don't think I need to use Google for it anymore!

Congrats on Article Author too! :)

Report abuse

6 people found this comment helpful

Was this comment helpful? Yes No

How satisfied are you with this comment?

Thanks for the tutorial, I don't think I need to use Google for it anymore! Congrats on Article Author too! :)

4 people found this comment helpful

Thanks! Happy I could help! :)

1 person found this comment helpful

RAJU.MSC.MATHEMATICS

Very helpful Thanks.

3 people found this comment helpful

Thank for this informative article.

I ran this in PowerShell PS C:\WINDOWS\system32> GWMI -namespace root\cimv2 -class win32_volume | FL -property DriveLetter, DeviceID

The results are below. I need to know more about the DriveLetter, that does not have a letter and I cannot give it a letter, as you can see in DiskPart.

I'm sure someone personally hacking my computer. I'm wondering if this them hiding on it, and that is why I someone is typing over me and has more control at times of my computer then I do. Maybe a hidden AD Hoc.

I have searched for this on Google I'm either getting blocked or there is no information out there on this.

PS C:\WINDOWS\system32> GWMI -namespace root\cimv2 -class win32_volume | FL -property DriveLetter, DeviceID

DriveLetter : B:

DeviceID : \\?\Volume{26xxxxxx--xxxx-xxxx-xxxxxxxxxxxxxx}\

DriveLetter : C:

DriveLetter :

DeviceID : \\?\Volume{d5xxxxxx--xxxx-xxxx-xxxxxxxxxxxxxx}\

DriveLetter : D:

PS C:\WINDOWS\system32> DiskPart

Microsoft DiskPart version 10.0.19041.1

Copyright (C) Microsoft Corporation.

On computer: My Computer

DISKPART> List Volume

Volume ### Ltr Label Fs Type Size Status Info

---------- --- --- -------- ----- ---------- ------- --------- --------

Volume 0 D RAW DVD-ROM 2048 B Healthy

Volume 1 B System Rese NTFS Partition 100 MB Healthy System

Volume 2 C NTFS Partition 698 GB Healthy Boot

2 people found this comment helpful

I followed the instructions to CHANGE the letters assigned for three external hard drives. (The computer had named them E, F, G but gave the names to the wrong external hard drive) I changed the letters to the correct names singly (I disconnected the two not being adjusted) Now, I have 2 E, 2 F, 2 G names in the list (when accessed through File Explorer. When I click on "This PC", it shows just the one of each. If I click on either, or both of the same letter name, the same exact files will open. This is annoying. Anyone have a clue what can be done? This is on a brand new computer running Windows 11.

Sorry about the late reply.

That sounds weird... Usually, windows doesn't allow you to assign a drive letter twice.

If you want to change the letters, you usually have to remove them first and then reassign them.

Can you send me a screenshot of disk management, and of the list of volumes?

the partition that is not shown in diskpart is most likely some sort of recovery or reserved partition.

This is not the typical way of hiding an infection with malware...

Also, do note that your ESP (Volume B) should not be mounted, since modifying it can corrupt your Bootloader.

As for the suspected hacking, what symptoms did you observe? Mouse moving on its own, high resource usage, unexpected firewall prompts? Other things?

If you have a compromised system, its almost impossible to clean it from infections without doing a clean install of windows. I would suggest you do that if you suspect an infection. It will take time though and will delete everything on your PC. (Including files, programs, settings.) Create a backup before you reinstall.

There are no viruses nor malware on this computer. I believe it is a reflection of the original name choice. The information contained on each external hard drive is identical, yet when I go into MY PC, it only shows one set of externals. I am afraid to delete one of the duplicates because it might be just mirrored and it will make everything go away. I have way too many things on these external hard drives to lose any of them.

Thanks for your input. Jan

Forum Article Info

  • Devices and drivers
  • Norsk Bokmål
  • Ελληνικά
  • Русский
  • עברית
  • العربية
  • ไทย
  • 한국어
  • 中文(简体)
  • 中文(繁體)
  • 日本語

logo

  • DiskPart Command Line Utility

[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.

how to assign drive letter to partition diskpart

Why use Diskpart to assign a 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.

FAQs about how to use Diskpart to assign drive letter

Can I remove a drive letter assignment using Diskpart? Yes, you can remove a drive letter assignment by using the "remove" command. For example, "remove letter=E" will remove the E drive letter from the selected volume.

Are there any restrictions on the drive letters I can assign using Diskpart? Drive letters A and B are traditionally reserved for floppy disk drives. You can assign any available drive letter from C to Z to a partition or volume, provided it's not already in use.

Do I need to be careful when using Diskpart to avoid data loss? Yes, you should be cautious when using Diskpart, especially if you're deleting partitions or making significant changes to disk configurations. Make sure you select the correct volume and drive letter to avoid accidental data loss.

Can I assign drive letter on a hidden drive? Yes, you can. Be very cautious when assigning a drive letter to a hidden drive or volume, as it might contain system or recovery files.

Press the Windows key, type "cmd" or "Command Prompt," right-click it, and choose "Run as administrator". In the Command Prompt window, type "diskpart" and press Enter. This will open the Diskpart utility. To see a list of all volumes, including hidden ones, type list volume and press Enter. Use the "select volume" command to choose the hidden volume. Replace "X" with the volume number or letter. A ssign a drive letter to the selected hidden volume, use the "assign letter=Y" command. Once you've successfully assigned the drive letter, you can exit Diskpart.

Free Partition Manager

how to assign drive letter to partition diskpart

  • Resize and Move Partition
  • System/Disk Clone
  • Convert MBR/GPT Disk
  • Check & Fix Disk Errors

how to assign drive letter to partition diskpart

Download.com Rating

how to assign drive letter to partition diskpart

Still Need Help?

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

  • Test Automation
  • Performance Testing
  • Cyber Security Testing
  • ETL Testing
  • Multilingual NLP Assurance
  • Mobile App and Web Testing
  • IV&V and Regulatory Assurance
  • PoS Testing
  • Accessibility Testing
  • Service Virtualization
  • Digital Assurance
  • Cloud Migration Testing
  • IoT Assurance
  • Drone Assurance
  • Storm Readiness Testing
  • Real-Time Systems
  • Test Environment Management
  • Testing of AI
  • Other ERP Packages
  • Google Cloud
  • AI Data Services
  • Mobile and Web Dev
  • DevOps Transformation
  • Serverless Cloud Native Development
  • Cloud Transformation and Migration Strategy
  • API Integration Services
  • Business AI
  • Modeling Optimization
  • Data Governance Services
  • Learning Platform Development
  • Video Encoding, Streaming and Player Development
  • Instructional Design
  • Content Remediation Services
  • Medical Devices
  • Retail & Consumer Goods
  • Banking & Financial Services
  • Capital Markets
  • Media & Entertainment
  • Managed Testing Services
  • Managed Crowd Testing
  • Project-Based Testing
  • Strategic Consultancy
  • Global Delivery
  • Risk-Based Testing
  • Test.Predictor
  • Test.Consolidator
  • Keysight Technologies
  • White Papers
  • Case Studies
  • Podcast: The Testing Show
  • Technical Hub
  • Categories & Tags
  • Leadership Team
  • Diversity & Inclusion

How to assign a drive a letter using Diskpart

Industries top insights, delivered to your inbox.

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.

New call-to-action

Other Technical Hub

Introduction: CSV files, or comma-separated-files, are used for storing data. They are a very commonly used text file format. Requirements:…

Introduction: Most SQL tables are non-temporary. Temporary tables can be used as well for convenience, or special purposes. Requirements: An…

Introduction: Relational Databases using SQL (Structured Query Language) may have a need for certain operations to be performed, or triggered,…

Want to talk with a test automation expert?

At the edge of tweaking

Advertisement

Change the drive letter in the command prompt

  • Open an elevated command prompt .
  • Type diskpart .

Windows 10 Diskpart List Volume

You are done.

Change the drive letter in PowerShell

  • Open an elevated PowerShell instance .

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!

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

  • 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

how to assign drive letter to partition diskpart

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!

how to assign drive letter to partition diskpart

  • Office Document Solutions
  • Photo/Video/Audio/Camera Solutions
  • Email-Related Solutions
  • Windows Computer Solutions
  • Mac Computer Solutions
  • Linux Solutions
  • Hard Drive Solutions
  • SD Card Solutions
  • USB Drive Solutions
  • NAS Disk Solutions
  • Data Backup Solutions
  • File Format
  • File System
  • Storage Media
  • Disk Parition
  • Download Now Download Now
  • Upgrade Upgrade

Hard Drive Recovery

  • Recovers deleted or lost files from hard drive effectively, safely and completely.
  • Supports data recovery from 500+ data loss scenarios, including computer crash, partition loss, accidental human error, etc.
  • Supports 1000+ file formats recovery with a high success rate and without any quality loss.

hard drive recovery

How to Change Drive Letter in Windows 11/10

Wondershare Recoverit Authors

Sep 26, 2023 • Filed to: Answer Hard Drive Problems • Proven solutions

Ask yourself this question: Do you need to change your drive letter? Yes, and for numerous reasons. For example, even though you now rely more on graphical desktops that enable you to easily click on icons, drive letters are still integral to  how your software function .

The bigger question is how to go about changing the driver letters of the drives in your PC. The different ways you can do that will be written out for you below. You'll be using Disk Management, CMD, and PowerShell.

change-drive-letters

  • Part 1. Is It Safe to Change Driver Letters?
  • Part 2. 6 Ways to Change Driver Letter in Windows 11/10
  • Video Tutorial on How to Change Driver Letter in Windows 11/10
  • Part 3. Overview of Windows Drive, Partition & Volume

Is It Safe to Change Driver Letters?

Yes, it's very safe to change driver letters . If it wasn't, you wouldn't be reading these letters (pun intended) right now. By default, Windows automatically assigns the letter "C" to your system drive, then other letters to the rest of your storage devices.

But what does it mean to change a device or drive's letter, anyway? Simply put, it's a way to identify your drive by a different letter. But even though changing a driver letter has its benefits, it also harbors risks that can harm your files. How?

For one, changing driver letters confuses Windows. The operating system won't know where to look for your files because it expects to find them in a particular place, but because you've renamed their directory, it will be left unsure what to do.

In a way, it's kind of embarrassing how such advanced technology can sometimes be so dumb, isn't it? Honestly, you just change ONE letter, but your machine doesn't recognize it for what it is!

There is also the risk that any software you install on a drive will cease functioning once you change the letter of that drive . This is not a probability but it's still a possibility, so be wary of doing that. On the bright side, at least the problem is more common with older software. What about the reasons you should change your drive letter?

  • Convenience

Say you  purchase an external drive  and wish to change its drive letter , right? And you're doing this because you already have another drive with the same letter as the external. You can easily do all this without having to resort to complex instructions, and that is very convenient. This freedom to customize your storage devices the way you want is also a welcome addition to computer usage.

  • Ease of Recognition

Assigning letters in alphabetical order to drives is a simple way to keep them organized. It benefits you because it will be easier to know what files or programs are installed on which drive. You don't have to waste precious time by going through random locations to find your files.

6 Ways to Change Drive Letter in Windows 11/10

  • Way 1. Change a Drive Letter in Disk Management
  • Way 2. Change Drive Letter in CMD
  • Way 3. Change Drive Letter in PowerShell
  • Way 4. To Change Drive Letter in Registry Editor
  • Way 5. To Change Drive Letter in Settings
  • Way 6. No Changes for the Operating System Drive

The first thing you need to know here is this: You cannot change the drive letter of the drive where your Windows is installed on. The only way for you to do that is to do a clean install of the Windows itself; but why go through all that trouble just to change a simple letter?

With that being said, and except for your operating system's default drive, you have much leeway when it comes to changing drive letters .

Even though Windows automatically assigns a drive letter to any external storage device you connect to it, there are unique occasions where it tries to give an already-assigned letter to a new drive. It thus nullifies the action and prevents the drive from showing up in "File Explorer." That's just one credible reason you might see a need to change a drive letter ; the rest is up to you, but more important is for you to know how to do it. Kicking off the tutorial will be "Disk Management."

1 Change a Drive Letter in Disk Management

1. Press on the "Windows" + "R" key. When the "Run" window pops up, type this command in its search field: diskmgmt.msc.

2. Hit the "Enter" key and "Disk Management" will be launched.

3. You will see a list of drives in the "Disk Management" window. Pick out the one you want to change the letter of, then right-click on it and select "Change Drive Letter and Paths."

pick the one you want to change drive letter

4. Click on "Change" and another window will open up.

click on change to change drive letter

5. Right beside the "Assign the following drive letter" option, you will see a drop-down menu. Select the drive letter you want Windows to give the storage device from this menu.

select the drive letter

6. Click on "OK" and select "Yes". Close "Disk Management" and your drive will now be bearing a brand-new letter.

finish changing drive letter

2 Change Drive Letter in CMD

1. Press "Windows" + "S", then type in "cmd" in the search field you see. Click on "command prompt". After the command prompt opens up, right-click on it, and select "Run as administrator."

2. Type diskpart in the command window and hit "Enter", then type list volume and press "Enter" again. You will see a list of simple volumes under "Volume ###."

3. One of them will be the drive you want to assign a new letter. Knowing which of them is the drive shouldn't be too hard. Just look at each of their corresponding sizes under the "Size" category.

change drive letter in cmd

4. Choose the volume and hit "Enter", then type assign letter=R and hit "Enter" one more time.

hit enter to change drive letter

5. If you want to remove the letter and perhaps replace it with another one, type removes letter=R. And that's it. Close the "command prompt" tool and restart your PC and you should see your drive rocking the new letter you just assigned to it.

3 Change Drive Letter in PowerShell

1. Press the "Windows" key and type "Windows PowerShell" in the search bar. Right-click on the program in the search results and choose "Run as administrator."

2. Type Get-Disk in Windows PowerShell to identify the particular hard drive you want to assign the new drive letter to. Press "Enter."

3. Once you select the drive, type the following command and hit "Enter" to assign the drive letter to the drive: Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter G

change-in-powershell

Take note of this: In the command up there, replace "1" with the disk number of the drive to be formatted; the letter "G" in the same command represents the drive letter to be assigned to the drive, so you can change it to the letter you prefer.

Are you looking to change your drive letter in Windows 11/10 ? You are in the right place. This task can help a lot to better organize your devices and to better remember what content is stored on each of them. The procedure is very simple and you can do it in two ways. In this post you will know how to do it and you will also be advised to avoid changing the letter of your C Drive.

4 To Change Drive Letter in Registry Editor

The first way to change your drive letter is using CMD tool. You can perform this task in just some minutes through the following steps:

Step 1: Open CMD

open cmd to change drive letter

Hold Windows key and press “R” to open Run tool. Now type “cmd” and press “Enter.” Command Prompt will run immediately.

Step 2: Write the commands

write the commands to change drive letter

Once you opened Command Prompt, type the following commands. Please don’t forget to press “Enter” after each one.

  • list volume
  • select volume 1* (change "1" for the number of the volume that contains the partition where you want to change the letter)
  • assign letter=X (“X” is an example, you can write the letter you want but it has to be different from the rest of the letters of the other partitions)

5 To Change Drive Letter in Settings

Another way to change your drive letter is through Windows settings. This task is a little bit slower than the last one but if you don’t like to use CMD, this will fit better to you. To change your drive letter through Windows settings, please do the following:

Step 1: Open Windows settings

open windows settings to change drive letter

Press Windows key and click the gear icon to open Windows settings.

Step 2: Open “System” page

open system page to change drive letter

On Windows Settings, click “System.”

Step 3: Open “Manage Disks and Volumes”

open windows settings

Once you are on “System” page, click “Storage” and then click “Manage Disks and Volumes.” This will open the page where you will change the drive letter .

Step 4: Open drive “Properties”

open drive properties to change drive letter

Go to the drive you want to change letter and click “Properties.”

Step 5: Click “Change drive letter”

change drive letter

Within Volume Data section, click “Change drive letter.”

Step 6: Type new drive letter

finish the changing process

On this window, click the arrow next to the letter and you can select a new one. Finally, click “OK” and the drive letter will be changed.

6 No Changes for the Operating System Drive

If you want to change the letter of the Operating System Drive (C Drive), you will generate problems in your operating system. If you do, Windows will not start because the corresponding files are encrypted and cannot be changed.

In fact, if you try to do this process through Disk Management you will get the message "Some programs that rely on drive letters might not run properly," so it is not recommended that you continue. Even if you don't have important information or you have just installed Windows, I do not advise you to do so and you will avoid to get multiple problems.

Video tutorial: How to Change Drive Letter in Windows 11/10?

Recent Videos from Recoverit

Overview of Windows Drive, Partition & Volume

What's up with these 3 things? Is knowing them significant or something? Yeah, it's a good idea to at least have some basic knowledge of what they are and what they're capable of doing. Besides, you'll understand some of the infinite technical mumbo-jumbo associated with anything computer-related.

1. Windows Drive

This refers to the hard disk drive that comes preinstalled with Windows on your PC. Your PC might also come with more than a single drive, as is the case with more modern and powerful computers that utilize an SSD as the main drive and HDD as a secondary drive, but Windows is always installed on the main drive; always represented by the letter "C." It's where the OS and software titles are stored in your PC.

Having said that, and to reiterate, don't attempt to change the drive letter of your Windows' primary drive. You can change the drive letters of any other drive, both internal and external, but not the main drive because doing that will only lead to more complications and put a dent in the performance of your Windows. All in all, disregard the instructions on changing drive letters in this instance because they are unnecessary.

2. Windows Partition

Think of a partition as a division of your hard disk drive. To be more precise, a partition is a logical separation of one drive, but it seems as if this separation creates many physical drives. When it comes to terms, "partition" and "disk partition" are often interchanged. If the word "drive" is added into the mix, it's usually meant to  signify a partition with a drive letter  attached to it.

You can divide your hard disk into numerous partitions and give each of them a unique letter. There are over 26 letters in the English alphabet, so you obviously can't run out of letters to assign. Now, changing the letter of each partition pretty much follows the same rules as changing a drive letter. These letters make it easier for you to differentiate the partitions and assign individual purposes for them, or it just makes it more convenient for you to know what's in each partition.

Read More: How To Create Windows Partitions on Mac

3. Windows Volume

Yeah, this is a big one. Just like your main drive, your system's volume is crucial to the system's performance; heck, your PC won't even start if your volume is faulty. Volume refers to the disk volume that contains hardware-specific files that are necessary for your Windows to boot, namely Ntdetect.com, Ntldr, and Boot.ini.

Just like with Windows drive, don't tamper with the letters for Windows volume. Yes, if you follow the steps given earlier, you can change the letters; but why do that when it's only a recipe for trouble.? You're not advised to venture into your Windows volume. Leave it as it is unless you're sure you know what you're doing.

Closing Words

There, with everything written up there, you should have no trouble changing the drive letter of any drive in your Windows 11/10. The methods outlined work for both internal and external hard drives as well as more portable storage devices.

Follow the instructions and you're all set. Just don't go and tamper with more than you've been instructed on; don't be in over your head and kill your innocent drive. Third-party tools might try to entice you into using them to get the job done with the quick press of a button, but don't fall for it. The solutions given here are all you need.

People Also Ask

How do I boot from D drive instead of C?

How do I permanently change boot drive?

What happens if C drive is full?

How do I clear space on my C drive?

How do I change the boot menu in Windows 11/10?

What's Wrong with Drive

  • Restore formatted drive
  • Recover undetected drive
  • Retrieve WD drive data
  • Get files from external drive
  • Wiped data can be recovered
  • What if drive not showing up?
  • Hard drive won't boot? Fix it
  • What if a disk unallocated?
  • Deal with hard drive crash
  • Repair disk & recover data
  • Fix Toshiba external drive not working
  • Fix a broken hard drive
  • Format external drive for Windows 10
  • Format external drive for Xbox One
  • Format PS4 hard drive
  • Test hard drive speed
  • Pick hard drive recovery software
  • Get external drive hacks
  • Solve disk not initialized/unallocated issues
  • SSD V.S. HDD

You Might Also Like

Article

Other popular Articles From Wondershare

Recoverit author

chief Editor

Home

MiniTool

  • Disk & Data Manager
  • Partition Wizard
  • Power Data Recovery
  • ShadowMaker
  • Media Toolkit
  • uTube Downloader
  • Video Converter
  • Download Partition Wizard Free Edition: Download Pro Edition: Try Demo Server Edition: Try Demo

Diskpart Unassign Drive Letter in Windows 11/10 [Full Guide]

Diskpart is a well-known Windows built-in disk partition utility used to format /create/delete partitions,  online/offline disk , wipe disks, etc. However, a lot of users are unclear about how to use this utility. For example, here a user posted a question about how to change drive letter diskpart on the answers.microsoft.com forum:

Is there a way to unassign drive letter diskpart? Windows will not assign a drive letter automatically when I inserted a Windows installation media. https://answers.microsoft.com/en-us/windows/forum/all/manually-assigning-a-drive-letter-using/bbb3baf6-cda4-4d06-b431-eae9e975a5c7

How to Unassign Drive Letter Diskpart in Windows 11/10

A drive letter is a single alphabetic character from A to Z assigned by Windows to a drive or partition connected to the computer. Sometimes, you may need to change drive letter diskpart in some situations. How to let diskpart unassign letter in Windows 11/10? Here are detailed steps:

If you remove the drive letter from a partition, it will no longer show as a drive in  File Explorer  and the unassigned drive letter can be available to other partitions.

Step 1.  Press  Win + R  keys to open the  Run  dialog box, and then type  diskpart  in it and press  Enter . Then click on  Yes  to open the tool in Command Prompt.

type diskpart in the Run box

Step 2. To let diskpart unassign drive letter, type the following commands in order and press Enter after each one.

  • list volume
  • select volume * (replace * with the partition number you want to remove its drive letter from)
  • remove letter=K (replace K with the drive letter that you want to remove)

remove drive letter

The process of diskpart assign letter is very simple and similar to removing a drive letter. To assign drive letter diskpart, you can open the Command Prompt window again as we explained above, type the following commands in order and press Enter after each one.

  • select volume 10
  • assign letter=k

diskpart assign drive letter

Although Diskpart is a practical partition manager in Windows, sometimes this utility can run into various errors such as “ DiskPart failed to clear disk attributes ”, “ Diskpart virtual disk service error ”, “failed to assign a drive letter”, etc. Is there an alternative to diskpart unassign drive letter? Of course, yes! Let’s keep reading.

Best Alternative to Diskpart Remove Drive Letter

If you can’t change drive letter CMD or Diskpart, MiniTool Partition Wizard is the best alternative. It is a trustworthy and comprehensive partition manager that allows you to change drive letters easily. Besides, this partition software can be used to extend/resize/hide/copy/format partitions, migrate OS , convert FTA to NTFS without data loss , change cluster size, recover lost data , and more.

MiniTool Partition Wizard Free Click to Download 100% Clean & Safe

Step 1. Launch the program to enter its main interface, right-click the partition, and select Change Letter from the pop-up menu.

diskpart assign drive letter

Step 2. If you want to remove the drive letter, select None from the New Drive Letter drop-down menu and click on OK to save the change. Alternatively, you can select a new drive letter from the drop-down menu to assign a drive letter for the partition.

Step 3. Click on Apply to execute the change.

unassign drive letter using MiniTool

If you just want to hide the partition in File Explorer rather than remove the drive letter, you can select the partition and click Hide Partition > Apply from the left action panel.

select Hide Partition using MiniTool

How to make diskpart remove drive letter in Windows 11/10? All detailed steps have been illustrated. Now, you can change drive letter using diskpart/CMD. If it doesn’t work, you can use a better alternative – MiniTool Partition Wizard.

About The Author

Ariel

Position: Columnist

User Comments :

How to Assign Change or Remove a Drive Letter

Your instructor will demonstrate how to:

Assign, change end remove a drive Setter by using Dish Management

Assign, changs and remove a drive letter by using DiskPart

Introduction

Procedure using Disk Management

You can use either Disk Management or DiskPart to assign, change or remove drive letters on partition. As an administrator, you will manage disk drive letters by using these tools.

To assign, change, or remove drive letters by using Disk Management:

1. In Computer Management, open Disk Management.

2. Right-click a partition, logical drive, or volume, and then click Change Drive Letter and Paths.

3. Do one of the following:

• To assign a drive letter, click Add, and then click the drive letter that you want to use.

To modify a drive letter, click it, click Change, and then click the drive letter that you want to use.

♦ To remove a drive letter, click it, and then click Remove.

Procedure using DiskPart

To assign, change, or remove a drive letter by using DiskPart:

1. Open Command prompt, and then type diskpart

2. At the DISKPART prompt, type list volume. Make note of the number of the volume whose drive letter you want to assign, change, or remove.

3. At the DISKPART prompt, type select volume n (where n is the number of the volume whose drive letter you want to assign, change, or remove).

4. At the DISKPART prompt, type one of the following:

a. assign letter=L (where L is the drive letter that you want to assign or change)

b. remove letter=L (where L is the drive letter that you want to remove)

Continue reading here: What Are Disk Properties

Was this article helpful?

Related Posts

  • How to Prepare a Disk - Maintaining Windows Server 2003
  • How to Import a Foreign Disk
  • How to View Disk Properties
  • Changing the Drive Letter and Paths
  • Changing a System Drive Letter
  • Effects on NTFS Permissions When Copying and Moving Files and Folders

Readers' Questions

How to reassign drive letter?
To reassign a drive letter in Windows, you can follow these steps: Press the Windows key + X on your keyboard to open the Power User menu and select "Disk Management" from the list. This will open the Disk Management window. In the Disk Management window, you will see a list of all your connected drives. Right-click on the drive that you want to reassign a letter to. From the right-click menu, select "Change Drive Letter and Paths". In the next window, click on the "Change" button. Select a new drive letter from the drop-down menu. Make sure to choose a letter that is not already assigned to another drive. Click "OK" to confirm the change. You will receive a warning message stating that some programs may rely on drive letters to function properly. Click "Yes" to proceed. Windows will assign the new drive letter to the selected drive. You can now close the Disk Management window. Note: Be cautious while reassigning drive letters, as some applications may rely on specific drive letters to function properly. Always ensure that you are not reassigning a drive letter that is being used by important applications or system functions.
How to switch drive letters?
Open This PC and right-click a drive. Select Rename and enter the new drive letter. Open the Command Prompt and type: DiskPart. Type the command: List Volume. Find the volume you want to change the drive letter of and enter the command: Select Volume #. Enter the command: Assign Letter=#, replacing the # with the new drive letter. Type Exit to leave DiskPart. Restart your computer.
How do i assign a drive letter to an external hard drive?
Connect your external hard drive to your computer. Open the File Explorer. Right-click on ‘This PC’ and select ‘Manage’. Select ‘Disk Management’ from the left pane. Your external hard drive will be listed under ‘Disk’. Right-click on your external hard drive and select ‘Change Drive Letter and Paths’. Click ‘Change’ and then select the new drive letter you wish to assign. Click ‘OK’ to save the changes.
How to reassign drive letters?
Open the Disk Management console by pressing the Windows Key + R, typing “diskmgmt.msc”, and pressing Enter. Right-click the disk or partition that you want to change the drive letter for and select "Change Drive Letter and Paths." Select the drive letter and click Change. Choose the new drive letter and click OK. Click OK to confirm the changes.
How to change hard drive letter?
Open the File Explorer. Right-click on the hard drive's icon. Select the “Change Drive Letter and Paths” option from the context menu. Click the “Change” button. Select a new letter from the drop-down menu. Click the “OK” button.
How to assign disk drive letter?
Open File Explorer. Right-click on the drive you want to assign a letter to. Select Change Drive Letter and Paths. Choose Change. Pick the letter you want to assign and click OK. Click Yes on the confirmation window. Click OK to close the window.
How to change volume letter using diskpart?
Launch the Diskpart command prompt by typing "diskpart" into the Start menu and selecting the app. Type "list volume" and press Enter. Select the volume you wish to change the letter of. Type "select volume X" (X being the volume number) and press Enter. Type "assign letter=Y" (Y being the new letter) and press Enter. Exit the Diskpart command prompt by typing "exit" and pressing Enter.

eKiwi-Blog.de

eKiwi-Blog.de

HELP – NEWS – TIPS – INSTRUCTIONS

Assign / remove drive letters with diskpart

how to assign drive letter to partition diskpart

Use Diskpart to assign a drive letter to a partition.

Table of content

Assign drive letter

To assign a drive letter to a partition with Diskpart, we start “ diskpart ” with admin rights. Then we use “ list disk ” to display the drives.

With “ select disk x “, where x is the number, we select the drive.

With “ list vol ” we display the volumes. Here, too, we now select the desired volume “ select vol x “. X is also the number from the list.

Now we enter “ assign letter=x “. X is the drive letter here.

how to assign drive letter to partition diskpart

With “exit” we can leave “diskpart” again. Afterwards, our volume/partition is ready under the drive letter.

how to assign drive letter to partition diskpart

Remove drive letters

Removing drive letters is done in the same way. We select the drive and volume. To remove, we then use the following command:

how to assign drive letter to partition diskpart

Ähnliche Beiträge

how to assign drive letter to partition diskpart

JPG files can only be opened with Windows Photo Viewer?

Windows 11: problems when updating to 22h2.

how to assign drive letter to partition diskpart

Back up and restore hard disks with Rescuezilla

Bluetooth connection hangs up, sound problems on thinkpad, leave a reply cancel reply.

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

IMAGES

  1. How to Assign and Remove Drive Letter with Diskpart in Windows 10 or 11?

    how to assign drive letter to partition diskpart

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

    how to assign drive letter to partition diskpart

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

    how to assign drive letter to partition diskpart

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

    how to assign drive letter to partition diskpart

  5. How to create a partition on Windows 7

    how to assign drive letter to partition diskpart

  6. Format drives with correct allocation and offset for maximum SQL Server

    how to assign drive letter to partition diskpart

VIDEO

  1. sata hard drive boots incompatible fix. non raid fix

  2. How to add new partition

  3. How to partition hard disk in windows 10

  4. How To Partition Hard Disk In Windows || Best Trick

  5. How to create and delete Partitions/drives in Windows

  6. Configure Disk Using Diskpart

COMMENTS

  1. What Is the Difference Between C Drive and D Drive?

    The C drive and D drive are both partitioned volumes of a physical hard drive; however, each volume is treated as a separate entity by the operating system. Computer users can create additional volumes on the hard disk.

  2. What Are Some Cars That Start With the Letter “Z”?

    According to Classic and Sports Cars, two cars that begin with the letter “Z” are the Zagato Zele and the Zaporozhets ZAZ 965. Both cars are no longer being produced. The Zagato Zele is a small electric car sold in the United Kingdom. It ha...

  3. What Are Some Things to Include in a DUI Reference Letter?

    The purpose of a Driving Under the Influence reference letter to a court is to highlight the positive role of a defendant in the community, states Colorado-based attorney H. Micheal Steinberg.

  4. Manually assigning a drive letter using CMD/Diskpart

    Type "list vol" to list all available volumes. · Select the volume using "sel vol <number>". · Assign the drive letter using "assign letter=<

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

    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

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

    Full Guide on Diskpart Assign Drive Letter - Complex · list volume · select volume 4 (Replace 4 with the correct number) · assign letter=H.

  7. 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. · Procedure:.

  8. 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

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

    Diskpart is very powerful Windows Utility, which allows certain number of operation with hard disk. In this article we will show you how to ...

  10. Diskpart

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

  11. 6 Ways to Change Drive Letter on Windows 10 Computer[2023]

    6 Ways to Change Drive Letter in Windows 11/10 · 1. Press "Windows" + "S", then type in "cmd" in the search field you see. · 2. Type diskpart in

  12. Diskpart Unassign Drive Letter in Windows 11/10 [Full Guide]

    Step 1. Launch the program to enter its main interface, right-click the partition, and select Change Letter from the pop-up menu.

  13. How to Assign Change or Remove a Drive Letter

    Procedure using Disk Management · 1. Open Command prompt, and then type diskpart · 2. At the DISKPART prompt, type list volume. · 3. At the

  14. Assign / remove drive letters with diskpart

    To assign a drive letter to a partition with Diskpart, we start “ diskpart ” with admin rights. Then we use “ list disk ” to display the drives.