How to Remove a Drive Letter in Windows 10
Also, to reparation USB hard drive, you may need to delete the existing partitions and then create new partitions with the desired partition size and file system. MiniTool Partition Wizard Free makes it easy for you to delete partition.
By default, Windows 10 will automatically assign an available drive letter to any connected internal and external storage devices.
Windows progresses through the alphabet from A to Z to assign available drive letters to devices as connected.
- Windows reserves the drive letters A and B for floppy drives.
- The drive letter C can only be used for the drive Windows is installed on. If you multi boot operating systems, the currently running Windows will always show its drive letter as C.
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'.
This tutorial will show you different ways to remove a drive letter in Windows 10.
You must be signed in as an administrator to remove a drive letter.
- Option One: To Remove Drive Letter in Disk Management
- Option Two: To Remove Drive Letter in Command Prompt using Diskpart
- Option Three: To Remove Drive Letter in Command Prompt using Mountvol
- Option Four: To Remove Drive Letter in PowerShell
- Option Five: Remove Drive Letters of Previously Connected Drives and Disks using DiskPart > automount Command
- Option Six: Remove Drive Letters of Previously Connected Drives and Disks using mountvol Command
To Remove Drive Letter in Disk Management
1. Press the Win+R keys to open Run, type diskmgmt.msc into Run, and click/tap on OK to open Disk Management.
2. 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. (see screenshot below)
3. Click/tap on the Remove button. (see screenshot below)
4. Click/tap on Yes to confirm. (see screenshot below)
5. When finished, you can close Disk Management if you like.
To Remove Drive Letter in Command Prompt
1. Open an elevated command prompt.
2. Enter diskpart into the elevated command prompt, and press Enter. (see screenshot below)
3. Enter list volume into the elevated command prompt, and press Enter.
4. Make note of the volume number (ex: 5) for the drive letter (ex: 'G') you want to remove.
5. Enter the command below into the elevated command prompt, and press Enter.
select volume <volume number>
Substitute <volume number> in the command above with the actual volume number (ex: '5') from step 4 above for the drive letter (ex: 'G') you want to remove.
For example: select volume 5
6. Enter the command below into the elevated command prompt, and press Enter.
remove letter=<drive letter>
Substitute <drive letter> in the command above with the actual drive letter (ex: 'G') you want to remove.
For example: remove letter=G
If the new drive letter you assign is not available, you will get an error message indicating so in the command prompt. You will just need to repeat this step to assign an available drive letter.
7. When finished, you can close the elevated command prompt if you like.
To Remove Drive Letter in Command Prompt
1. Open an elevated command prompt.
2. Type the command below into the elevated command prompt, and press Enter. (see screenshot below)
mountvol<Drive Letter>: /d
Substitute <Drive Letter> in the command above with the actual drive letter (ex: 'G') you want to remove.
For example:
mountvol G: /d
3. When finished, you can close the elevated command prompt if you like.
To Remove Drive Letter in PowerShell
1. Open an elevated PowerShell.
2. Enter Get-Partition into the elevated PowerShell, and press Enter. (see screenshot below)
3. Make note of the disk number (ex: '1') and PartitionNumber (ex: '3') for the DriveLetter (ex: 'G') you want to remove.
The disks will be listed in numerical order starting with '0' at the top.
4. Enter the command below into the elevated PowerShell, and press Enter to verify the disk number (ex: '1') is correct for the drive letter (ex: 'G') you want to remove.
Get-Disk<disk number> | Get-Partition
Substitute <disk number> in the command above with the actual disk number (ex: '1') from step 3 above for the drive letter (ex: 'G') you want to remove.
For example: Get-Disk 1 | Get-Partition
5. Enter the command below into the elevated PowerShell, and press Enter to verify the disk number (ex: '1') is correct for the drive letter (ex: 'G') you want to remove.
Remove-PartitionAccessPath -DiskNumber <disk number> -PartitionNumber <partition number> -Accesspath <drive letter>:
Substitute <disk number> in the command above with the actual disk number (ex: '1') from step 3 and verified in step 4 above for the drive letter (ex: 'G') you want to remove.
Substitute <partition number> in the command above with the actual PartitionNumber (ex: '3') from step 3 for the drive letter (ex: 'G') you want to remove.
Substitute <drive letter> in the command above with the actual DriveLetter (ex: 'G') from step 3 above you want to remove.
For example: Remove-PartitionAccessPath -DiskNumber 1 -PartitionNumber 3 -Accesspath G:
6. When finished, you can close the elevated PowerShell if you like.
Remove Drive Letters of Previously Connected Drives and Disks using DiskPart > automount Command
1. Open an elevated command prompt.
2. Type diskpart into the elevated command prompt, and press Enter. (see screenshot below)
3. Type automount scrub into the elevated command prompt, and press Enter.
4. Close the elevated command prompt.
5.Restart the computer to apply.
Remove Drive Letters of Previously Connected Drives and Disks using mountvol Command
1. Open an elevated command prompt.
2. Type mountvol /r into the elevated command prompt, and press Enter. (see screenshot below)
3. Close the elevated command prompt.
4.Restart the computer to apply.
That's it,
Shawn
RECOMMENDED: Click here to fix Windows errors and improve PC performance
Do you want to partition your USB drive using the built-in Disk Management tool in Windows 10? Want to create multiple partitions on a USB drive? Here is how to partition a USB drive in Creators Update and above versions of Windows 10.
In Windows 10 Anniversary Update and earlier versions of Windows 10, Windows would not allow users to partition USB drives from Disk Management. While it has always been possible to create multiple partitions on internal drives via Disk Management, partitioning USB drive was not possible.
We had to either use the Command Prompt or third-party software to create additional partitions on a USB drive.
With Windows 10 Creators Update (v1703), Windows 10 allows users to partition USB drives. The only condition is that the USB drive must be formatted in NTFS to partition it.
In this guide, we will see how to partition your USB drive in Windows 10 from Disk Management without using the Command Prompt or third-party software.
To partition your USB drive on Windows 10
IMPORTANT: Back up all data from the USB drive to another location before proceeding further to avoid data loss.
Step 1: First of all, connect your USB drive to a PC running Windows 10 Creators Update (v1703) or above version of Windows 10. Back up all data to another drive.
Step 2: Open up This PC. Right-click on the USB drive which you want to partition and then click Properties. Check if the USB drive is formatted in NTFS. If yes, you should see NTFS next to File system as shown in the picture below.
If the USB drive is formatted in FAT or FAT 32, right-click on the USB drive again (in This PC), click Format. Choose NTFS from File System drop-down box and then click Start button. Click OK button when you see the warning dialog to format the USB drive in NTFS. Once done, you will see “Format complete” message.
Step 3:Right-click on the Start button on the taskbar. Click Disk Management to open the same.
Step 4: In the Disk Management window, right-click on the USB drive and then click Shrink Volume option. This action will open Shrink dialog. If the USB flash drive is formatted in FAT, the Shrink Volume option doesn’t appear.
Step 5: In the “Enter the amount of space to shrink in MB” field, type in the amount in MB that you want to use for creating a new partition on the USB drive. For instance, on a 16 GB drive, if you want to create two partitions of about 8 GB, then shrink the drive by about 7000 MB.
Click Shrink button. The action will create unallocated space on your USB drive.
Step 6: Now, right-click on the newly created unallocated space on USB, and then click New Simple Volume option. Make sure that you are right-clicking on the unallocated space of USB drive only.
Step 7: Once New Simple Volume Wizard appears on screen, click Next button.
Step 8: In this step, you need to specify the size for the new volume or partition. If you want to use all unallocated space to create a partition (two partitions on USB drive), go ahead and click Next button. But if you want to create two or more partitions from the available unallocated space, reduce the Simple volume size.
Click Next button.
Step 9: Choose a drive letter for the new partition on the USB. Click Next button.
Step 10: Finally, click Next button to create a new partition on the USB drive. Click Finish button to close the wizard.
You should now see two partitions on USB drive in File Explorer as well as in Disk Management.
To delete partitions
IMPORTANT: This will erase all data on the USB drive. Please back up your data to another drive before deleting partitions.
Step 1: Open up Disk Management.
Step 2:Right-click on one of the partitions on the USB drive, and click Delete Volume to create unallocated space. Do this step for all partitions on the USB drive. Please make sure that the partition or volume you are deleting is on the USB drive, and there is no data on the USB.
Step 3: Now, right-click on the unallocated space on the USB drive, click New Simple Volume, click Next, click Next again (don’t change Simple volume size), click Next once again, choose file system as NTFS and finally, click Next again. That’s it!
Also check out our how to shrink or extend partitions in Windows 10 guide.