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”)
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.
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.
By following the detailed guides above, you can easily change drive letter with CMD (Command Prompt), PowerShell or MiniTool Partitioon Wizard on Windows 10.
User Comments :Post Comment