How to use the diskpart utility to assign and remove drive letters

This post will demonstrate 2 tools for assigning a drive letter in Windows 11, 10,8,7. You can change drive letter with Windows Diskpart or a users-friendly software – AOMEI Partition Assistant.

By Cherry / Last Updated March 17, 2022

Windows OS users know that they have two amazing tools for managing the disks and partitions–Disk Management and Diskpart. The Disk Management tool in Windows gives you an easy-to-use graphical interface that can manage disk only with mouse-clicking. While Diskpart is a tool that you can manage your disk or partition on the command prompt quickly. To assign letter to drive, you can use both Disk Management and Diskpart. If you want to change the drive letter quickly, the Diskpart utility makes it easy.

Assign drive letter with CMD

To assign, change, or remove a drive letter, you can use the Windows interface of Disk Management, or use the command line on the prompt of Diskpart. Diskpart is a built-in tool that you can use to manage your hard drive, like format disk partition, create partition, delete partition, etc. well, how to assign drive letter with Diskpart?

Step 1. To use a command line, you need to open the command line first. Click Start, type “cmd” at the search box, and right-click the program, select “Run as Administrator”, or press “WIN+R”, type “cmd” and press Enter. Then, type “diskpart” to start.

Step 2. Type list volume and press Enter. Here you should know the number of the simple volume whose drive letter you want to assign, change, or remove.

How to use the diskpart utility to assign and remove drive letters

Step 3. Select volume n and press Enter. Here you can select the volume whose drive letter you want to assign, change, or remove.

How to use the diskpart utility to assign and remove drive letters

Step 4. Then, if you want to assign or change the drive letter, type “assign letter=R”.

How to use the diskpart utility to assign and remove drive letters

If you want to remove the drive letter, type “remove letter=R”.

How to use the diskpart utility to assign and remove drive letters

Therefore, you have already assigned, changed, or removed a drive letter. And you can type list volume to see the details.

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. Thus, Diskpart may have a little bit complex. Fortunately, there is another easier and simpler way, which could save a lot of steps.

Easier to assign drive letter with AOMEI Partition Assistant

AOMEI Partition Assistant Standard is a great powerful partition manager where you assign drive letter with an easy-to-use graphical interface. Since AOMEI Partition Assistant 5.8 Edition released, it added the partassist.exe utility, which you can use to manage disk and partition with command line. To assign drive letter with partassit.exe, here are the steps you can follow.

Step 1. Install AOMEI Partition Assistant to your computer. Open the command prompt by clicking Start, typing “cmd”, and right-clicking the program, then selecting “Run as Administrator”, or pressing “WIN+R”, typing “cmd” and press Enter. Then, type “cd C: \Program Files \AOMEI Partition Assistant Standard Edition 5.8”, press Enter. To assign a drive letter, you can use the parameters “ partassist.exe /hd:0 /setletter:0 /letter:F”. Here, we take an example for assigning a drive letter to a hidden volume.

Step 2. Type: partassist.exe /list. Press Enter. It will list all disks on your computer.

Step 3. Type: partassist.exe /list:1, then press Enter, it will show you all the volumes on disk 1.

Step 4. Type: partassist.exe /hd:1 /fmt:H /fs:fat32 /label:xbox

How to use the diskpart utility to assign and remove drive letters

Press Enter, and wait till the progress reaches 100%. Actually, you can also use this syntax to change drive letter for other volumes. But if you want to remove a drive letter, you can use the following parameters:

Remove a drive letter, type: partassist.exe /hd:0 /setletter:0 /letter:*

How to assign drive letter with GUI interface?

AOMEI Partition Assistant provides you another way to assign drive letter much easier. that is using GUI. people can assign drive letter or remove drive letter without Diskpart command nor Partition Assistant command line.

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

How to use the diskpart utility to assign and remove drive letters

>Then, select a drive letter for the drive.

How to use the diskpart utility to assign and remove drive letters

>Click Apply to submit the task.

How to use the diskpart utility to assign and remove drive letters

AOMEI Partition Assistant supports almost all Windows operating systems, like Windows 11, 10, 8, 7. It has many editions for different OSes. The AOMEI Partition Assistant Server edition is for Windows Server 2003/2008(R)/2012(R); the Standard and Professional edition is for Windows PC OS, like Windows XP/Vista/7/8/8.1/10/11. Both Diskpart and AOMEI Partition Assistant can manage disk with command line, but AOMEI is more flexible and easier, and simpler.

Note: Although the system drive letter can be changed, do not do it because that would make the system unable to boot.

Lowell Heddings
How to use the diskpart utility to assign and remove drive lettersLowell Heddings
Founder and CEO

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.

How to use the diskpart utility to assign and remove drive letters

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.

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.

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.

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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

  • › How to Remove Write Protection on Windows 10
  • › Why SMS Needs to Die
  • › Why Do Clear Phone Cases Turn Yellow?
  • › What Does XD Mean, and How Do You Use It?
  • › 5 Fonts You Should Stop Using (and Better Alternatives)
  • › How to Restore Taskbar Labels on Windows 11
  • › The Worst Thing About Samsung Phones Is Samsung Software

How to use the diskpart utility to assign and remove drive letters Lowell Heddings
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 Full Bio »

Share This :

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.

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:

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

How to use the diskpart utility to assign and remove drive letters

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.

When Command Prompt pops up, run the diskpart command.

How to use the diskpart utility to assign and remove drive letters

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

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

Has this article been helpful for your request?
(3 votes, average: 3.67 out of 5)

How to use the diskpart utility to assign and remove drive letters

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.

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.

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.

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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.

How to use the diskpart utility to assign and remove drive letters

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

More stories

3 Tools to Make Your Mac’s Hardware Work Better in Windows with Boot Camp

Windows runs well in Boot Camp on a Mac — mostly. Battery life is below what you’d experience in OS X, the trackpad isn’t as smooth, and the keyboard layout is weird. The tools below can help.

What Are Mirrorless Cameras, and Are They Better than Normal DSLRs?

Recently, popular photographer Trey Ratcliff said he’s done buying DSLR cameras because mirrorless cameras are the future. Let’s take a look at what these cameras are, and see if Trey is onto something, or just full of hot air.

Play Your Android Games and Videos on the TV with Google Chromecast

There’s a lot you can do with the Google Chromecast but did you know you can cast your screen from your Android phone or tablet to any Chromecast-equipped display? It’s easy, and we’re going to tell you how to do it.

All Those “Seals of Approval” on Websites Don’t Really Mean Anything

You’ll see badges like “Norton Secured,” “Microsoft Certified Partner,” and “BBB Accredited Business” all over the web — especially when downloading software. You shouldn’t blindly trust a website that displays such badges — they’re just images anyone can copy and paste.

How to Make Your Own Windows Registry Hacks

Over the years, we’ve created many Registry hacks to customize and tweak your Windows computer. Today we’re going to give you the keys to making your own registry hack files that you can use on any computer.

Should I Disable the Page File if My Computer Has a Lot of RAM?

If you have a computer with a hefty amount of RAM, would you gain any benefits from disabling the page file or should you just leave well enough alone? Today’s SuperUser Q&A discusses the topic to help satisfy a reader’s curiosity.

Geek Trivia: The Only Puppet In The World With The Rank Of “General” Is?

Think you know the answer? Click through to see if you’re right!

How to Quickly Create a Text File Using the Command Line in Linux

If you’re a keyboard person, a lot of things can be accomplished simply using the command line. For example, there are a few easy-to-use methods for creating text files, should you need to do so.

7 Reasons to Use a Third-Party DNS Service

Your Internet service provider runs DNS servers for you, but you don’t have to use them. You can use third-party DNS servers instead, which offer a variety of features that your ISP probably doesn’t.

How to use the diskpart utility to assign and remove drive letters

Diskpart is one of the most powerful Windows command line utilities which first appeared in Windows XP. Diskpart is mainly used by Windows administrators to manage tasks like partition management, formatting, creating, re-sizing and getting a detailed information regarding the hard disk or other removable disks attached to the computer. Even though you have a built-in GUI application called Disk Management utility in Windows, Diskpart is much more flexible and works well in a server environment where you need to set up some advanced features like RAID.

Note: This post isn’t intended for beginners, and doing something wrong while using Diskpart utility may cause drive failures and data losses, so make sure that you have a good backup before continuing. You have been warned.

Assign Drive Letter Using Diskpart

Assigning a new drive letter to a partition or removable device using Diskpart is really easy. First, search for the command prompt in the Start menu, right click on it and select the option “Run as administrator.” If you are using Windows 8, press “Win + X” to open the power user menu and select the option “Command Prompt (Admin).”

How to use the diskpart utility to assign and remove drive letters

The above action will open the command prompt window with administrative rights. Here enter the following command to start the Diskpart utility.

How to use the diskpart utility to assign and remove drive letters

The next step is to list all the volumes in your computer so that you can clearly see all the volume numbers and drive letters of your hard disk partitions and any other removable devices. Use the command below to list all the volumes.

How to use the diskpart utility to assign and remove drive letters

Once the Diskpart utility lists all the volumes, take a note of the volume number of the drive you want to assign a new drive letter. In my case, I’m trying to assign a new drive letter to the drive I:\ , so my volume number is 7 . Now execute the following command to select the volume while replacing the # symbol with an actual volume number.

How to use the diskpart utility to assign and remove drive letters

Once the volume is selected, use the following command to assign a new drive letter. Don’t forget to replace the letter “V” with the drive letter you want to assign.

How to use the diskpart utility to assign and remove drive letters

That’s all there is to do; you have successfully changed or re-assigned a new drive letter to a partition or a removable drive in Windows. In fact, if you open the Windows explorer, you can see that the change is reflected immediately.

Remove Drive Letter using Diskpart

Before moving any further, removing or un-assigning drive letter will effectively hide the drive or partition from plain sight, i.e. you cannot see that drive in the Windows explorer. To remove a drive letter, follow the above steps 1 through 4 and then use the below command to remove the drive letter of a drive or partition. Don’t forget to replace the letter “I” with the actual drive letter.

How to use the diskpart utility to assign and remove drive letters

As soon as you have done that, Diskpart will remove the drive letter for that volume. If you list the volumes again, you will see that the drive you just interacted with will have no drive letter next to it.

How to use the diskpart utility to assign and remove drive letters

Moreover, if you navigate to the Windows explorer, you will see that the drive which got un-assigned isn’t listed anymore. But again, always be careful while you are messing around with Diskpart utility; it may cause irrecoverable data loss if used incorrectly.

Hopefully that helps, and do comment below if you face any problems while following the steps or to simply share your thoughts.

Organizations require virtualization systems that not only support different types of applications but also simplify IT .

Virtualization brings cost benefits and saves time for IT teams that oversee ROBOs. Effective implementation requires cloud-based.

Admins often evaluate Xen vs. KVM as open source options. The main factors to consider in a primary hypervisor are organizational.

Meet AWS outages head on by learning how to build a multi-region architecture that achieves resiliency in the event of disaster.

To achieve high availability and fault tolerance in AWS, IT admins must first understand the differences between the two models.

Amazon ECS and EKS are similar, but their differences are enough to set them apart for AWS users. Learn which best fits your .

Good database design is a must to meet processing needs in SQL Server systems. In a webinar, consultant Koen Verbeeck offered .

SQL Server databases can be moved to the Azure cloud in several different ways. Here’s what you’ll get from each of the options .

In this book excerpt, you’ll learn LEFT OUTER JOIN vs. RIGHT OUTER JOIN techniques and find various examples for creating SQL .

IT admins considering a migration to Windows 11 should learn how the features of the Enterprise edition can benefit their .

The latest Windows 11 developer build lets people open multiple folders in the file management app. The feature is supposed to .

Desktop administrators should look for Windows 10’s native security features and architecture to establish a baseline of desktop .

Folder redirection can support a virtual desktop environment with roaming profiles by providing users with consistency when it .

People running VMware’s virtual desktop on Samsung’s smartphones and tablets can access Windows on both the device and an .

Organizations with virtual desktops should plan out their profile management strategy, and one key component is profile .

How to use the diskpart utility to assign and remove drive letters

On Windows 10, when connecting a removable storage device or an internal hard drive, the system detects and assigns a drive letter automatically to make it usable. However, when reconnecting an external drive (such as a USB flash drive or SD or microSD cards), the system can end up assigning a different letter, which can be annoying.

If you want to see the same drive letter on a particular device, you can manually assign a permanent letter to any drive connected to your computer, and on Windows 10, you can do this in at least three different ways, using Disk Management, Command Prompt, or PowerShell.

Using this approach will prevent Windows 10 from assigning a new letter or trying to set a letter already in use, which can cause conflicts. Also, it helps to select a drive letter that makes more sense to you.

In this Windows 10 guide, we walk you through several methods to manually assign a permanent letter to a drive, as long as you’re connecting the drive to the same device and the letter isn’t already in use.

How to assign a drive letter using Disk Management

To manage drive letters with the Disk Management tool, use these steps:

  1. Open Start.
  2. Search for Create and format hard disk partitions and click the top result to open the Disk Management experience.

Right-click the drive and select the Change Drive Letter and Paths option.

How to use the diskpart utility to assign and remove drive letters

Click the Change button.

How to use the diskpart utility to assign and remove drive letters

Use the drop-down menu to assign a new drive letter.

How to use the diskpart utility to assign and remove drive letters

Quick tip: To avoid the system trying to assign the same letter to another drive, it’s a good idea to start adding letters in backward order. For instance, instead of using D, E or F, it better to start with Z, Y or X when assigning a new letter.

Once you complete these steps, the drive will permanently retain the assigned letter, even after reconnecting it. However, if you connect the drive to another device, it may receive a different letter.

How to assign a drive letter using Command Prompt

While the easiest way to assign a new drive letter is to use Disk Management, you can also use DiskPart in Command Prompt to perform the same task.

To assign a drive letter using Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the result, and then select the Run as administrator option.

Type the following command to start DiskPart and press Enter:

Type the following command to list all the available volumes and press Enter:

Type the following command to select the volume (drive) to assign a new letter and press Enter:

select volume 3

In the command, make sure to change “3” to the number that represents the drive on your device.

Type the following command to assign a new drive letter, and press Enter:

How to use the diskpart utility to assign and remove drive letters

The command assigns the letter “Z” to the drive assuming it’s available. However, you need to make sure to change the letter for the one that you want to use.

After completing these steps, similar to Disk Management, every time you reconnect the storage to the same device, Windows 10 should assign the same letter automatically.

How to assign a drive letter using PowerShell

Alternatively, you can also use PowerShell to change a drive letter on Windows 10 using these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the result, and then select the Run as administrator option.

Type the following command to list the available drives and press Enter:

Type the following command to assign a permanent letter to the drive and press Enter:

Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter Z

How to use the diskpart utility to assign and remove drive letters

In the command, make sure to change “1” to the number that represents the drive that you want to modify, and change “Z” for the new letter that you want to use.

Once you complete the steps, the drive will be accessible through File Explorer using the letter that you assigned, and Windows 10 won’t try to change it.

Updated March 7, 2019: We revised this guide to make sure it’s current with the latest version of Windows 10.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

How to use the diskpart utility to assign and remove drive letters

Re-live the best of Windows Phone’s early days in this new video podcast

Grab a coffee and listen to this podcast with some Microsoft employees who worked on the original iteration of Windows Phone 7. Learn about what worked, what they liked, and what made that OS so darn special.

How to use the diskpart utility to assign and remove drive letters

Report: Microsoft is leading on climate pledges, beating Apple, Google

Microsoft is beating out its major tech rivals in climate transparency, according to a thorough report from As You Sow.

How to use the diskpart utility to assign and remove drive letters

Dynabook’s Tecra A40-K and A50-K business laptops get a refresh for 2022

Dynabook’s laptop lineup continues its refresh trend with two new Tecra laptops. The A40-K and A50-K are both workhorses with modern performance and features.

How to use the diskpart utility to assign and remove drive letters

Check out these must-have Windows apps for Super Bowl LVI

Super Bowl LVI is finally here. To make sure you get the best experience for the big game, make sure to grab these apps for Windows 11 and Windows 10.

Windows assigns drive letters to internal and external hard drives, optical drives, Flash memory cards and other devices automatically when it recognizes them.

The main reason for that is that it allows users of the system to interact with the devices directly; it would certainly be inconvenient if users had to assign drive letters to new devices manually, or even each time devices get connected.

Sometimes, however, you may not want drive letters assigned to devices automatically or at all. A common scenario is a partition of a different operating system that you don’t want to access; another, that encrypted drives or partitions don’t require a drive letter until they are mounted as you can’t interact with the unmounted drives.

Remove drive letters using Disk Management

How to use the diskpart utility to assign and remove drive letters

All versions and editions of Windows include the Disk Management tool. Disk Management is the primary tool of the Windows operating system for managing drives and other storage devices. It provides options to add, change or remove drive letters, shrink or extend volumes, or attach virtual hard drives.

Windows supports quite a few ways to launch the Disk Management tool; the most convenient options in my opinion are the following two:

  1. Use Windows-R to open the runbox, type diskmgmt.msc and hit the Enter-key on the keyboard.
  2. Use the Windows-X menu and select Disk Management. (Windows 8 and newer only)

The Disk Management interface may take a moment to load. It lists all available volumes and disks in its interface on start, and you may interact with the volume listing or the visual representation of each disk.

I find it easier to work with the disk list in the lower half of the Disk Management interface, but any action available there is also available in the volume listing.

Disk Management lists disks, partitions, and drive letters. It is easy to spot partitions with drive letters and those without.

To interact with a partition right-click on it in the Disk Management interface.

How to use the diskpart utility to assign and remove drive letters

A right-click displays the context menu. You may use it to execute all supported operations; select “change drive letter and paths. ” in this case to remove the drive letter from the partition.

Disk Management lists assigned drive letters of the volume in a new window when you select the option. The interface lists options to add, change or remove the drive letter.

To remove it, select it and then the remove button to execute the action.

How to use the diskpart utility to assign and remove drive letters

Disk Management displays a warning prompt when you select remove:

Some programs that rely on drive letters might not run correctly. Are you sure you want to remove this drive letter?

Removal is not an issue if the volume is not used but it may cause issues if it is used by programs, for instance for data storage. Select yes to continue with the execution or no to cancel it.

Disk Management closes the prompt automatically and visualizes the change in its interface. If you selected remove, the drive letter should no longer be attached to the volume. The change is reflected in Explorer and other file browsers as well.

You may add drive letters to volumes using the same step by step guide. The only difference is that you need to select add and pick one of the available drive letters.

Removing drive letters using the command prompt

How to use the diskpart utility to assign and remove drive letters

You need elevated rights to remove a drive letter using the command prompt:

  1. Tap on the Windows-key to display the Start Menu.
  2. Type cmd.exe, hold down the Shift-key and Ctrl-key, and select the item from the list of results.
  3. Confirm the UAC prompt.

You can use the command mountvol to interact with volumes. A good starting point is the command mountvol /? which lists all supported parameters and all volumes similar to the listing that you get when you run the Disk Management interface.

Use the /D parameter to remove a drive letter from the selected volume. The command mountvol d: /D removes the drive letter from volume D:

Use the command mountvol d: VolumeName To reassign a drive letter. VolumeName begins with \\ and all available volumes are listed when you run mountvol /?.

Applies to: Windows Server 2022, Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, and Windows Server 2008 R2, Windows Server 2008

The diskpart command interpreter helps you manage your computer’s drives (disks, partitions, volumes, or virtual hard disks).

Before you can use diskpart commands, you must first list, and then select an object to give it focus. After an object has focus, any diskpart commands that you type will act on that object.

List available objects

You can list the available objects and determine an object’s number or drive letter by using:

list disk – Displays all the disks on the computer.

list volume – Displays all the volumes on the computer.

list partition – Displays the partitions on the disk that has focus on the computer.

list vdisk – Displays all the virtual disks on the computer.

After you run the list commands, an asterisk (*) appears next to the object with focus.

Determine focus

When you select an object, the focus remains on that object until you select a different object. For example, if the focus is set on disk 0 and you select volume 8 on disk 2, the focus shifts from disk 0 to disk 2, volume 8.

Some commands automatically change the focus. For example, when you create a new partition, the focus automatically switches to the new partition.

You can only give focus to a partition on the selected disk. After a partition has focus, the related volume (if any) also has focus. After a volume has focus, the related disk and partition also have focus if the volume maps to a single specific partition. If this isn’t the case, focus on the disk and partition is lost.

Syntax

To start the diskpart command interpreter, at the command prompt type:

You must be in your local Administrators group, or a group with similar permissions, to run diskpart.

Parameters

You can run the following commands from the Diskpart command interpreter:

How to use the diskpart utility to assign and remove drive letters

  • This article will walk through the steps of using the Microsoft Diskpart Erase utility to Clean the disk of a previous partition and format, including any data on the drive. This command takes only a few minutes to complete.
  • This article covers Diskpart Erasing a 3TB or larger drive that has a Master Boot Record (MBR) Partition table, which is thereby limiting its capacity to 2TB. However, this article also applies to any scenario where a Diskpart Erase of an entire disk is necessary.
  • For more information regarding drives over 2TB and GPT/MBR partition tables please see the following articles.
  1. To determine the disk number assigned to the 3TB+ MBR partitioned drive follow the steps below.
    1. From the Start menu right click on Computer which will provide a drop down menu. (If you are on Windows 8 or 8.1 move your mouse to the bottom left hand corner of the desktop screen and right click. Then select Disk Management).
    2. Choose Manage.
    3. Select Disk Management (listed under Storage).
    4. Look for the drive that is identified as the 3TB drive (2794GB). The properties window shows that the partition table on the drive is MBR . Important: note the Disk number (such as Disk 1).

    On Windows 8 move your mouse to the bottom left hand corner of the desktop screen and right click. Select Command Prompt (Admin) from the pop-up menu.
    How to use the diskpart utility to assign and remove drive letters

    A list of disks will appear in a text format. You will return to the diskpart prompt. Step one verified that Disk 1 is the 3TB drive. Warning: Diskpart Erase/Clean will permanently erase/destroy all data on the selected drive. Please be certain that you are erasing the correct disk.

    Windows OS users know that they have two amazing tools for managing the disks and partitions–Disk Management and Diskpart. The Disk Management tool in Windows gives you an easy-to-use graphical interface which can manage disk only with mouse-clicking. While Diskpart is a tool that you can manage your disk or partition on the command prompt quickly. To assign letter to drive, you can use both Disk Management and Diskpart. If you want to change the drive letter quickly, the Diskpart utility makes it easy.

    Assign drive letter with CMD

    To assign, change, or remove a drive letter, you can use the Windows interface of Disk Management, or use the command line on the prompt of Diskpart. How to assign drive letter with Diskpart?

    Step1. To use a command line, you need to open the command line first. Click Start, type “cmd” at the search box and right click the program, select “Run as Administrator”, or press “WIN+R”, type “cmd” and press Enter. Then, type “diskpart” to start.

    Step2. Type list volume and press Enter. Here you should know the number of the simple volume whose drive letter you want to assign, change, or remove.

    Step3. Select volume n and press Enter. Here you can select the volume whose drive letter you want to assign, change, or remove.

    Step4. Then, if you want to assign or change the drive letter, type “assign letter=R”.

    If you want to remove the drive letter, type “remove letter=R”.

    Therefore, you have already assign, change, or remove a drive letter. And you can type list volume to see the details.

    Actually, you may assign drive letter when you create a new one. For that, you need to create partition first. After create 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. Thus, Diskpart may have a little bit complex. Fortunately, there is another easier and simpler way, which could save a lot of steps.

    Prior to Windows 8/Server 2008 the Diskpart utility used a different syntax.

    When setting up a new drive, create in this order: Create Partition, Format drive, Assign drive letter.

    The diskpart commands can be placed in a text file (one command per line) and used as an input file to diskpart.exe:

    When selecting a volume or partition, you can use either the number or drive letter or the mount point path.

    The Windows GUI interface can also be used to assign a mount-point folder path to a drive. In Disk Manager , right-click the partition or volume, and click Change Drive Letter and Paths , then click Add and then type the path to an empty folder on an NTFS volume.

    The Windows Recovery Console, includes a simplified DISKPART command. It only provides functionality for adding and deleting partitions, but not for setting an active partition.

    Always back up the hard disk before running diskpart.

    The default SAN policy in Windows Server 2008 / R2 is now VDS_SP_OFFLINE_SHARED for all non boot SAN disks.
    This means that the disks will be offline at server startup (even if the drive contains a paging file).

    This Disk Management error message indicates that the drive is offline:

    “the disk is offline because of policy set by an administrator”.

    Query the current SAN policy to see if it is Offline Shared

    DISKPART.EXE
    DISKPART> san
    SAN Policy : Offline Shared

    To manually bring the disks online:
    Computer Management > Storage > Disk Management , right-click the disk and choose Online .

    If these are not part of a cluster, than an alternative is to make a SAN policy change, select the offline disk, clear its readonly flag and bring it online:

    How to use the diskpart utility to assign and remove drive letters

    Diskpart is a command-line tool in Windows system that allows you to manage your disks and partitions. This post introduces how to change drive letter with CMD in Windows 10, namely, by using Diskpart CMD tool. MiniTool software provides users a free disk partition manager, data recovery software, system backup and restore software, etc.

    If you want, you can change drive letter for a drive with CMD (Command Prompt) in Windows 10. This post includes detailed guides for how to use Diskpart command-line tool to change driver letter in CMD.

    How to Change Drive Letter with CMD in Windows 10

    Diskpart is a Windows built-in CMD tool that lets you easily manage hard drive and change drive letter. To change or assign drive letter in CMD, you can firstly open Diskpart utility in Command Prompt. Check the steps below.

    Step 1. Open CMD in Windows 10

    You can press Windows + R, type cmd, and press Ctrl + Shift + Enter to open elevated Command Prompt.

    Step 2. Open Diskpart tool

    In Command Prompt window, you can type diskpart command, and press Enter. This will open the Diskpart command-line utility.

    Step 3. Change drive letter CMD

    Next you can type the command line below to change drive letter in Command Prompt in Windows 10. Remember to press Enter after typing each command line.

    • list volume (this command will list all available volumes detected by your computer)
    • select volume * (replace “*” with the exact volume number of the target partition)
    • assign letter=* (replace “*” with the preferred drive letter like “F”)

    How to use the diskpart utility to assign and remove drive letters

    After you change or assign a drive letter for a drive or device, Windows will display the same letter automatically next time you reconnect the device to your computer.

    If you want to remove the drive letter of a specific drive, you can type remove letter=* command and press Enter. Still, replace “*” with the exact drive letter of the target drive.

    How to Change Drive Letter Using PowerShell

    Some Windows 10 users might find that Command Prompt is missing from Win + X menu, and instead, it shows Windows PowerShell. Windows PowerShell can do most things that Command Prompt does. Alternatively, you can also use Windows PowerShell to change drive letter in Windows 10.

    Step 1. Press Windows + X, and choose Windows PowerShell (Admin) to run Windows PowerShell utility as administrator.

    Step 2. Next type get-disk command and press Enter to list all available drives the computer detected.

    Step 3. Then you can type the command: Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter F, and press Enter to assign a new drive letter. You should change “*” with the actual disk number of target drive, and replace “F” with the new drive letter you’d like to assign to the drive.

    How to use the diskpart utility to assign and remove drive letters

    MiniTool Partition Wizard – Professional Free Disk Partition Manager

    Instead of using CMD or PowerShell to change drive letter for a drive in Windows 10, you can also utilize third-party free disk partition manager like MiniTool Partition Wizard to easily change drive letter and manage disk partitions on Windows 10.

    MiniTool Partition Wizard let you easily create/delete/extend/resize/format/wipe partitions, convert partitions formats, migrate OS, clone disk, test hard drive speed, analyze hard drive space usage, check and fix disk errors, and more.

    How to use the diskpart utility to assign and remove drive letters

    Conclusion

    By following the detailed guides above, you can easily change drive letter with CMD (Command Prompt), PowerShell or MiniTool Partitioon Wizard on Windows 10.

    • Facebook
    • Twitter
    • Linkedin
    • Reddit

    ABOUT THE AUTHOR

    Position: Columnist

    Alisa is a professional English editor with 4-year experience. She loves writing and focuses on sharing detailed solutions and thoughts for computer problems, data recovery & backup, digital gadgets, tech news, etc. Through her articles, users can always easily get related problems solved and find what they want. In spare time, she likes basketball, badminton, tennis, cycling, running, and singing. She is very funny and energetic in life, and always brings friends lots of laughs.

    I n this tutorial, we are going to see how to assign a drive letter in CMD. To assign a letter to a drive such as an external hard drive or a USB flash drive, there is a tool called Diskpart that makes drive letter assignment faster.

    In order to assign a drive letter, we will use Diskpart command prompt which also allows you to create a partition, delete a partition, and format a partition, etc. Well, how to assign a drive letter with Diskpart?

    How To Assign Letter To A Drive In CMD

    Step 1: There are two ways to open the command line. Click on the Start menu, type CMD in the search box, then right-click on it and select Run as administrator. Or press WIN + R, type CMD, and press Enter.

    How to use the diskpart utility to assign and remove drive letters

    Type diskpart in CMD to start it.

    How to use the diskpart utility to assign and remove drive letters

    Step 2: Type list volume and press Enter.

    How to use the diskpart utility to assign and remove drive letters

    Step 3: Type Select volume n and press Enter. Here you need to know the number of the volume whose drive letter you want to assign.

    How to use the diskpart utility to assign and remove drive letters

    Step 4: Finally, type assign letter=R to assign or change the drive letter.

    How to use the diskpart utility to assign and remove drive letters

    Step 5: You can check if the drive letter was changed as shown on the following screenshot.

    How to use the diskpart utility to assign and remove drive letters

    If you want to remove the drive letter, type remove letter=R.

    How to use the diskpart utility to assign and remove drive letters

    Now you can successfully assign, change or delete a drive letter. And you can type volume to see the details.

    [wbcr_php_snippet title=”GetPreviousPost” category_id= “5792”]

    How to use the diskpart utility to assign and remove drive letters

    • How To Get MAC Address In CMD

    You May Also Like

    How to use the diskpart utility to assign and remove drive letters

    How to Create a Website Shortcut on Desktop In Windows 10

    How to use the diskpart utility to assign and remove drive letters

    How to Enable Autocorrect and Predictive Text in Windows 10

    How to use the diskpart utility to assign and remove drive letters

    How to Create Local User Account using PowerShell in Windows 10

    Leave a Reply Cancel reply

    Recent Posts

    How to use the diskpart utility to assign and remove drive letters

    What is a Web Worker in JavaScript?

    In this tutorial, we are going to see What is a Web Worker in JavaScript? Web Worker allows us to

    A drive letter is a single letter character A to Z assigned to a computer drive or drive partition. Drive name and drive letter are two ways to identify drives in Windows 10 File Explorer.

    If you cannot see the drive letter of one or more drives in File Explorer, it might be because File Explorer is configured to hide drive letters, or the drive does not have a drive letter.

    Table of Contents

    Show Or Hide Drive Letter

    Step 1: First, open the Folder Options. There are many ways to open Folder Options in Windows 10. You can open File Explorer and click the File menu, and then click Change folder and search options.

    How to use the diskpart utility to assign and remove drive letters

    Step 2: Then, click the View tab, and check the box of Show drive letters option to show the drive letters. Uncheck the option if you want to hide the drive letters.

    How to use the diskpart utility to assign and remove drive letters

    Step 3: Finally, click the Apply button to save the changes.

    After doing the above steps, if the drive letter still does not appear to a specific drive or partition, it may be because the drive or partition is not assigned to it. Therefore, you need to assign or remove the drive letter.

    Assign Drive Letter

    Assign Drive Letter Using Disk Management

    Step 1: Type Disk Management in Start search box and press Enter to open Disk Management.

    Step 2: Then, right-click the drive, which doesn’t have a drive letter, or you want to assign a drive letter for. And then, choose “Change Drive Letter and Paths” option.

    How to use the diskpart utility to assign and remove drive letters

    Step 3: Click the Change button and select a different letter to replace the current one from the drop-down box.

    How to use the diskpart utility to assign and remove drive letters

    Step 4: Click the Remove if you need to remove the drive letter.

    Assign Drive Letter Using PowerShell

    Using PowerShell is another easy way to assign the drive letters.

    Step 1: Type PowerShell in the Start search box and select Run as Administrator option. Then click Yes when a confirmation window appears.

    Step 2: Type in “Get-Disk” and press Enter to list available drivers.

    How to use the diskpart utility to assign and remove drive letters

    Step 3: Then type in the following command and press Enter.

    Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter R

    Assign Drive Letter Using CMD

    You can also use Diskpart in Command Prompt to change the drive letter in Windows 10.

    Step 1: First, type in “CMD” in the Start search field and select Run as Administrator option. Then click Yes when a confirmation window pops up.

    Step 2: Type in “diskpart” and press Enter. Then type in the “list volume” command and press Enter.

    How to use the diskpart utility to assign and remove drive letters

    Tip: Here, you should know the number of the simple volume for which you want to change, remove, or assign a drive letter.

    Step 3: Type in “select volume 2” and press Enter to select the drive or volume to assign the drive letter.

    Step 4: Then type in “assign letter=G”, and press Enter.

    How to use the diskpart utility to assign and remove drive letters

    It is not recommended to change or remove the drive letters of drives where you install programs. If the drive letter of a drive where you install Windows 10 has been changed, the program may not start.

    Final Words!

    After following the above methods, you can easily show, hide and assign drive letter in Windows. Thus, do not hesitate to have a try.

    By default, Windows 10 automatically assigns the drive letter available to all connected internal and external storage devices. This guide will show you various ways to delete drive letter in Windows 10.

    By default, Windows 10 automatically assigns the drive letter available to all connected internal and external storage devices.

    1. Windows progresses through the alphabet from A to Z to assign available drive letters to connected devices.
    2. Windows stores A and B characters for floppy drives, but you can still manually assign them to another drive.
    3. The letter C can only be used for the drive on which Windows is installed. If you have multiple operating systems booting, the currently running Windows will always display its drive letter as C.
    4. If you delete a drive letter from a volume, partition, or volume, it will no longer be available to display as a drive in File Explorer “This PC”.

    This guide will show you various ways to delete drive letter in Windows 10.

    Note: You must be logged in as an administrator to delete the drive letter.

    Delete the drive letter in Command Prompt with Mountvol

    1. Open Command Prompt with admin rights.

    2. Enter the command below into the Command Prompt with admin rights and press Enter .

    Replace the above command with the actual drive letter (for example, “G”) you want to delete.

    4. When done, you can close the Command Prompt with admin rights if desired.

    Delete the drive letter in PowerShell

    1. Open PowerShell with admin rights.

    2. Enter Get-Partition into PowerShell and press Enter .

    3. Note the disk number (e.g. “1”) and PartitionNumber (eg “3”) for DriveLetter (eg “G”) you want to delete.

    The drives will be listed in numerical order starting with “0” at the top.

    4. Enter the command below into PowerShell with admin rights and press Enter to verify that the drive number (eg “1”) is correct with the drive letter (eg “G”) you want to delete.

    Replace in the above command with the actual drive number (eg “1”) from step 3 above for the drive letter (eg “G”) you want to delete.

    5. Enter the command below into PowerShell and press Enter to verify that the drive number (eg “1”) is correct with the drive letter (eg “G”) you want to delete.

    1. Replace in the above command with the actual drive number (for example, “1”) from step 3 and be verified in step 4 above for the drive letter (eg “G”) you want to delete.
    2. Replace in the above command with the actual PartitionNumber (e.g. “3”) from step 3 for the drive letter (e.g. “G”) you want to delete.
    3. Replace in the above command with the actual DriveLetter (e.g. “G”) from step 3 above that you want to delete.

    6. When done, you can close PowerShell if you like.

    How to use the diskpart utility to assign and remove drive lettersDelete the drive letter in PowerShell

    Delete the drive letter and the previously connected drive by using the DiskPart> automount command

    1. Open a Command Prompt with admin rights.

    2. Type Diskpart into Command Prompt as admin and press Enter .

    3. Type automount scrub into Command Prompt and press Enter .

    4. Close Command Prompt.

    5. Restart the computer to apply the changes.

    Delete the drive letter and the drive that was previously connected using the mountvol command

    1. Open a Command Prompt with admin rights.

    2. Type mountvol / r into the Command Prompt as admin and press Enter .

    3. Close Command Prompt.

    4. Restart the computer to apply the changes.

    In addition, you can delete drive letters using Disk Management and Diskpart. Refer to the following 2 articles for details:

    We all love to hide our personal data, and while you can lock folder and keep uploading to online storage, how about hiding the complete partition? While it may feel overkill, but if you have tons of files you don’t want anybody to access, then this is the best method to follow. In this post, we will show how you can show or hide drive partitions using Command Prompt.

    Unhide or Hide Hard Drive Partition using Command Prompt

    While there are multiple ways to hide drive partitions, in this post, we are specifically sharing how to do it from the Command Prompt. We are using the Diskpart tool, which also offers a command-line interface. Before going ahead, stay warned that Diskpart is a powerful tool that offers complete management of drive, and it includes the option to delete the partitions as well. While hiding doesn’t delete and you can always bring them back, use it carefully.

    Basic Diskpart Command

    • diskpart – Opens Diskpart console
    • list volume – Displays all the volumes on the computer.
    • select volume #number – Selects the partition you want to hide
    • remove letter #driveletter – Removes drive letter of the selected volume
    • assign letter #driveletter – Assigns drive letter to the selected volume

    Follow the steps to hide or show drive partition.

    Open Command Prompt with admin permissions. You can do so by typing CMD in the Run prompt (Win + R), followed by pressing Shift + Enter together. You will get the UAC prompt; make sure to choose yes from the pop-up window.

    How to use the diskpart utility to assign and remove drive letters

    Type the following command, and press the Enter key to launch the Diskpart console.

    The text in the Command Prompt, which was displaying the path, will be replaced by “Diskpart>” Next, type the following to list all the partitions which you can see using File Explorer.

    Open File Explorer, go to This PC and match it with what you see here. In the Diskpart tool result, the Lable column will match with the exact name you see on the computer. It might cut short the name because of the limit but gives you a fair idea. You can also identify the disk with the drive letter.

    How to use the diskpart utility to assign and remove drive letters

    To do any operation on a particular drive, here we are going to hide it, you need to select the drive or partition. Let’s assume I want to hide the “D” partition with the label Backup. First, we will have to select the Volume and then operate on the drive. The backup partition has label Volume 2. Execute the following as per your computer to select the drive which you want to hide.

    How to use the diskpart utility to assign and remove drive letters

    By design, if a partition doesn’t have a drive letter assigned, it will not be accessible. If you remember, when you format a drive, it is always assigned a drive letter at the end. Now you know the reason. Execute the command to remove the drive letter, which, in my case, is D.

    Once the execution completes, you should receive a success message. Double-check with File Explorer, and it will not be available from anywhere. Technically, the partition has been dismounted.

    To bring back the partition, you will need to mount it again and assign the drive letter again. You can always assign any drive letter which is not assigned to anyone else. If you are doing it after some time, then follow the complete list, else just the last one is enough.

    How to use the diskpart utility to assign and remove drive letters

    To exit the diskpart tool, type exit, and you will get back to the command prompt as usual.

    I hope the post helped you hide drive partitions using the command prompt.

    Date: September 11, 2020 Tags: Hard Drive

    Related Posts

    How to use the diskpart utility to assign and remove drive letters

    Enter current volume label for drive C; How do I find the label?

    How to use the diskpart utility to assign and remove drive letters

    DiskPart error, Data error cyclic redundancy check

    How to use the diskpart utility to assign and remove drive letters

    How to Sync Two External Hard Drives in Windows 11/10

    [email protected]

    Ashish is a veteran Windows, and Xbox user who excels in writing tips, tricks, and features on it to improve your day to day experience with your devices.

    Mount a drive in a folder

    Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

    You can use Disk Management to mount (make a drive accessible) in a folder rather than a drive letter if you want. This makes the drive appear as just another folder. You can mount drives only in empty folders on basic or dynamic NTFS volumes.

    Mounting a drive in an empty folder

    [!NOTE] You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.

    To mount a drive in an empty folder by using the Windows interface

    1. In Disk Manager, right-click the partition or volume that has the folder in which you want to mount the drive.
    2. Click Change Drive Letter and Paths and then click Add.
    3. Click Mount in the following empty NTFS folder.
    4. Type the path to an empty folder on an NTFS volume, or click Browse to locate it.

    To mount a drive in an empty folder using a command line

    Open a command prompt and type diskpart .

    At the DISKPART prompt, type list volume , making note of the volume number you want to assign the path to.

    At the DISKPART prompt, type select volume , specifying the volume number that you want to assign the path to.

    At the DISKPART prompt, type assign [mount=] .

    To remove a mount point

    To remove the mount point so that the drive is no longer accessible via a folder:

    Here you can select the volume whose drive letter you want to assign, change, or remove. Step 4. Then, if you want to assign or change the drive letter, type “assign letter=R”. If you want to remove the drive letter, type “remove letter=R”.

    How do I remove a drive letter in CMD?

    Using a command line

    1. Open Command Prompt.
    2. Type: diskpart.
    3. At the DISKPART prompt, type: list volume.
    4. At the DISKPART prompt, type: select volume n.
    5. At the DISKPART prompt, type one of the following: assign letter=L.
    6. remove letter=L. Where L is the drive letter you want to remove.

    How do I get rid of phantom drive letter?

    Here is a more detailed set of instructions.

    1. Open the Command Prompt.
    2. Type diskpart (enter)
    3. Type list volume (enter) This will show the volumes and phantom drive letters.
    4. Type select volume=0 naming the target volume (use the number shown on your screen!)
    5. type remove letter=x (enter) where x is the actual drive letter.

    What happens when you remove a drive letter?

    If you remove the drive letter from a volume, partition, or disk, it will no longer be available to show as a drive in File Explorer “This PC”.

    How do I remove unwanted drives?

    To delete a partition (or volume) with Disk Management, use these steps:

    1. Open Start.
    2. Search for Disk Management.
    3. Select the drive with the partition you want to remove.
    4. Right-click (only) the partition you want to remove and select the Delete Volume option.
    5. Click the Yes button to confirm all the data will be erased.

    Can I change the drive letter of my boot drive?

    The drive letter for the system volume or boot partition (usually drive C) cannot be modified or changed. Any letter between C and Z can be assigned to a hard disk drive, CD drive, DVD drive, portable external hard disk drive, or USB flash memory key drive.

    How do I remove unnecessary data from C drive?

    Right-click your main hard drive (usually the C: drive) and select Properties. Click the Disk Cleanup button and you’ll see a list of items that can be removed, including temporary files and more. For even more options, click Clean up system files. Tick the categories you want to remove, then click OK > Delete Files.

    Can I have 2 C drives?

    You can’t have multiple drives with the same letter. Windows sets the boot drive as C so which one you boot to will be C.

    How to assign 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.

    Can a diskpart command be used to remove a drive?

    If no drive letter or mount point is specified, DiskPart removes the first drive letter or mount point it encounters. The command can be used to change the drive letter associated with a removable drive. You cannot remove the drive letter on a system, boot, or paging volume.

    How to remove GPT protective partition in command prompt?

    How to remove GPT protective partition? 1 1. Type cmd in the search box and then run as administartor.. 2 2. Type diskpart in the command prompt and hit Enter. 3 3. Type the following commands in order and press Enter after each one.

    How can I remove GPT from my hard drive?

    Now, go to Disk Management and right click on the target disk, select “Properties” > “Volume”, and then, you’ll find the disk is in MBR. Before using Diskpart to remove GPT, we have to back up data first because everything will be cleared in “clean”.

    Diskpart is a Windows* CLI utility that can be used to manage the storage devices. To clean the drive and create a new primary partition, follow the steps below:

    1. Open the Command Prompt as Administrator.
    2. Run the command diskpart
    3. Run the command list disk to see all storage devices currently connected and recognized in the system.
    4. Run the command select disk to select the desired drive.​​​​​​ Use the index number associated to the drive, for example select disk 2 .
    5. Run the command clean all to remove the partitions and data from the drive.
    6. Run the command create partition primary to create a partition of the full size of the drive.
    7. Run the command format override fs=NTFS label= to set the file system and volume label. Use the label of your preference for the volume.
    8. Run the command list volume to see all volumes in the available storage devices.
    9. Run the command select volume to select the newly labeled volume. Use the index number associated to the proper volume, for example select volume 3 .
    10. Run the command assign letter= to assign a new letter to the volume. Use the letter of your preference for the volume, for example assign letter=D .
    11. Run one more time the command list volume to see the new letter assigned to the new volume.

    More details about Diskpart and other available options in this utility can be found in the following sites:

    To Remove Drive Letter in Disk Management Press the Win + R keys to open Run, type diskmgmt.

    Right click or press and hold on the drive (ex: “G”) you want to remove the drive letter of, and click/tap on Change Drive Letter and Paths.

    Click/tap on the Remove button.

    Click/tap on Yes to confirm.

    (More items…•May 1, 2018.

    How do I assign and remove a drive letter using Diskpart

    Using a command lineOpen Command Prompt.Type: diskpart.At the DISKPART prompt, type: list volume. … At the DISKPART prompt, type: select volume n. … At the DISKPART prompt, type one of the following: assign letter=L. … remove letter=L. Where L is the drive letter you want to remove.Feb 21, 2016

    How do I remove phantom drive letters

    Here is a more detailed set of instructions.Open the Command Prompt.Type diskpart (enter)Type list volume (enter) This will show the volumes and phantom drive letters.Type select volume=0 naming the target volume (use the number shown on your screen!) … type remove letter=x (enter) where x is the actual drive letter.Mar 7, 2017

    Why does my hard drive have 2 letters

    Thankfully, there’s usually a simple solution. This is almost always the result of either a user or program having created a virtual drive that maps to your real drive. … The virtual drive doesn’t show up in the Disk Management tool (because it isn’t a real drive), but you can remove it using the Command Prompt.

    How do I remove a mapped drive that no longer exists

    To delete a drive mapping toward a network location, right-click (or press-and-hold) on it and select Disconnect. To remove a drive mapping towards a network folder or FTP site, right-click (or press-and-hold) on it and select Delete. The deleted mapped drives then stop showing.

    How do I undo a Subst command

    3. Type “subst x: /d”, replacing “x:” with the drive letter you want to remove.

    How do I get rid of ghost drives

    How to Remove Ghost or Phantom Hard Drive in Windows 10?Run command prompt as administrator;Then type the commands in turn: diskpart. list volume (here shows you the list which volume has letter) select volume X (X is a volume number when you want to remove) … If that works, restart to check if it is solved.Dec 23, 2020

    How do I delete unused drive letters in Windows 10

    Open File Explorer, click the View tab from the ribbon toolbar and then click Options. In the Folder Options window, select the View tab. Under the Advanced settings, uncheck the “Show drive letters” option and click OK. You’ll find the drive letters of all your partitions are disappeared.

    How do I remove ghost files from Windows 10

    How to Remove Deleted Ghost FilesSystem Corruption. Click on the “Start” button. Select “Run”. … Delete Locked Ghost Files Before Bootup. Write down the location and name of the ghost file in question. … Unlocking Files Using “msconfig” Hold down the Windows key and press “R”. … Unlocking Files Using “regedit” Hold down the Windows key and press “R”.

    Why are some drive letters not available

    Why would a certain drive letter become unavailable? If you find a certain drive letter missing from the list of available drive letters in Disk Management, it could be caused by: You have permanently assigned drive letter for an external hard drive, so the letter is reserved for the drive although it is removed.

    How do I get rid of BD ROM drives

    Re: Several non-existant BD-ROM drives in Computer Then try going to Device Manager, and look under CD/DVD/BD-ROM Drives. They should be listed there and you should be able to right-click and uninstall them.

    How do I force a drive letter to eject

    To remove a drive letter in Windows 10, do the following.Press the Win + X keys together.In the menu, select Disk Management.In Disk Management, right-click on the partition whose drive letter you would like to change. … In the next dialog, click on the Remove… … Confirm the operation.Mar 30, 2018

    What is a Phantom Drive

    The Phantom Drive is a Kryptonian engine that is capable of accessing black holes by folding space as Kal-El indicated to travel vast distances across the universe almost instantly by passing through the Phantom Zone.

    How do I get rid of a drive

    To delete a partition (or volume) with Disk Management, use these steps:Open Start.Search for Disk Management.Select the drive with the partition you want to remove.Right-click (only) the partition you want to remove and select the Delete Volume option. … Click the Yes button to confirm all the data will be erased.Dec 11, 2020

    Why can’t I change drive letter and paths

    The change drive letter and paths option greyed out can occur for a few reasons: The volume is not formatted in FAT or NTFS. The drive is write-protected. There are bad sectors on the disk.

    Can I remove drive letter from system reserved partition

    In the Windows that opens, right click on the ‘System Reserved’ partition in the lower pane and select ‘Change Drive Letter and Paths..’ 3. In the dialog that opens, click the ‘Remove’ button.