织梦CMS - 轻松建站从此开始!

abg欧博官网|登陆|游戏|

Change and Assign Drive Letter in Windows 10

时间:2025-12-21 07:30来源: 作者:admin 点击: 0 次
How to Change and Assign Drive Letter in Windows 10    Information By default, Windows 10 will automatically assign an available drive lette

Change and Assign Drive Letter in Windows 10

Change and Assign Drive Letter in Windows 10 How to Change and Assign Drive Letter in Windows 10
Published by Shawn BrinkCategory: Hardware & Drivers
07 Aug 2022

Designer Media Ltd

Change and Assign Drive Letter in Windows 10


How to Change and Assign Drive Letter in Windows 10


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 usually assigns the drive letters A and B for floppy drives, but they can still be used to manually assign to drives if wanted.

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 non-assigned drives are connected then the letters D onwards are allocated in turn.

If the assigned drive is not connected then Windows will give away its drive letter as part of these allocations.

If the drive with the assigned drive letter is connected later on then it will simply be allocated the next letter that happens to be available.


If you use multiple USB drives, then you may have noticed that the driver letter can sometimes be different each time you connect one.

If you like, you can change the drive letter of a drive to be any available drive letter you want instead of the driver letter automatically assigned by Windows. When you change the drive letter of a drive, it will assign letter to the drive that will not change on your PC unless you change it or possibly when you disconnect the drive. The assigned drive letters are stored in the registry per drive referenced by their volume ID like in . This doesn't set the drive letter in stone to the device.

See also: Change a drive letter | Microsoft Docs

This tutorial will show you different ways on how to change the drive letter of a drive to assign a permanent drive letter you want to the drive in Windows 10.

You must be signed in as an administrator to change or assign a drive letter.


For a Windows 11 version of this tutorial, see:

Change Drive Letter in Windows 11



Contents


To Change Drive Letter in Disk Management

To Change Drive Letter in Command Prompt

To Change Drive Letter in PowerShell

To Change Drive Letter in Registry Editor

To Change Drive Letter in Settings







OPTION ONE

To Change 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: "F") you want to add or change the drive letter, and click/tap on Change Drive Letter and Paths. (see screenshot below)


Change and Assign Drive Letter in Windows 10-change_drive_letter_in_disk_management-1.jpg


3 Click/tap on the Change button. (see screenshot below)

Click/tap on the Add button instead if the drive doesn't have a drive letter assigned to it.

Change and Assign Drive Letter in Windows 10-change_drive_letter_in_disk_management-2.jpg


4 Select (dot) Assign the following drive letter, select an available drive letter you want to assign, and click/tap on OK. (see screenshot below)


Change and Assign Drive Letter in Windows 10-change_drive_letter_in_disk_management-3.jpg


5 Click/tap on Yes to confirm. (see screenshot below)


Change and Assign Drive Letter in Windows 10-change_drive_letter_in_disk_management-4.jpg


6 When finished, you can close Disk Management if you like.







OPTION TWO

To Change Drive Letter in Command Prompt


1 Open an elevated command prompt.

2 Type diskpart into the elevated command prompt, and press Enter. (see screenshot below)

3 Type list volume into the elevated command prompt, and press Enter.

4 Make note of the volume number (ex: 5) for the drive letter (ex: "F") of the drive (volume) you want to change.

5 Type 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 above for the drive you want to change the drive letter of.

For example: select volume 5


6 Type the command below into the elevated command prompt, and press Enter.


assign letter=<new drive letter>

Substitute <new drive letter> in the command above with the actual new drive letter (ex: "G") you want to assign to the drive.

For example: assign 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.

Change and Assign Drive Letter in Windows 10-diskpart_assign_letter_command.jpg







OPTION THREE

To Change Drive Letter in PowerShell


1 Open an elevated PowerShell.

2 Type Get-Partition into the elevated PowerShell, and press Enter. (see screenshot below)

3 Make note of the drive letter (ex: "G") of the drive you want to change.

4 Type the command below into the elevated PowerShell, and press Enter.


Get-Partition -DriveLetter <current drive letter> | Set-Partition -NewDriveLetter <new drive letter>

Substitute <current drive letter> in the command above with the actual current drive letter (ex: "G") of the drive you want to change.

Substitute <new drive letter> in the command above with the actual new drive letter (ex: "F") you want to assign to the drive.

For example: Get-Partition -DriveLetter G | Set-Partition -NewDriveLetter F

If the new drive letter you assign is not available, you will get an error message indicating so in PowerShell. You will just need to repeat this step to assign an available drive letter.


5 When finished, you can close the elevated PowerShell if you like.

Change and Assign Drive Letter in Windows 10-change_drive_letter_in_powershell.png







OPTION FOUR

To Change Drive Letter in Registry Editor


1 Open Registry Editor (regedit.exe).

2 Navigate to the key below in the left pane of Registry Editor. (see screenshot below)


HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

Change and Assign Drive Letter in Windows 10-change_drive_letter_in_registry-1.jpg


3 In the right pane of the MountedDevices key, right click or press and hold on the binary (REG_BINARY) value (ex: "\DosDevices\G:") for the drive letter (ex: "G") of the drive you want to change, and click/tap on Rename. (see screenshot below)


Change and Assign Drive Letter in Windows 10-change_drive_letter_in_registry-2.jpg


4 Rename only the drive letter part of the binary (REG_BINARY) value (ex: "\DosDevices\G:") name with an available drive letter (ex: "\DosDevices\F:") you want for the drive instead, and press Enter to apply. (see screenshot below)


Change and Assign Drive Letter in Windows 10-change_drive_letter_in_registry-3.jpg


5 When finished, you can close Registry Editor.

6 Sign out and sign in, or restart the computer to apply.







OPTION FIVE

To Change Drive Letter in Settings


This option is only available starting with Windows 10 build 20197.


1 Open Settings, and click/tap on the System icon.

2 Click/tap on Storage on the left side, and click/tap on the Manage Disks and Volumes link on the right side. (see screenshot below)


Change and Assign Drive Letter in Windows 10-settings_manage_disks_and_volumes-1.jpg


3 Expand open the disk (ex: "Disk 2") that contains the volume you want to change the drive letter of. (see screenshot below)


Change and Assign Drive Letter in Windows 10-settings_manage_disks_and_volumes-2.png


4 Click/tap on the drive (ex: "F") you want to change the drive letter of, and click/tap on Properties. (see screenshot below)


Change and Assign Drive Letter in Windows 10-settings_manage_disks_and_volumes-3.png


5 Click/tap on the Change drive letter button under the Volume Data section. (see screenshot below)


Change and Assign Drive Letter in Windows 10-settings_change_drive_letter-1.png


6 Select a drive letter (ex: "G") you want in the drop menu, and click/tap on OK. (see screenshot below)


Change and Assign Drive Letter in Windows 10-settings_change_drive_letter-2.png


7 You can now close Settings if you like.



That's it,
Shawn


Related Tutorials


Windows 11 Tutorials




dalchina

Posts : 47,473 Win 10 Pro (22H2) (2nd PC is 22H2)

   New 26 Feb 2020


Hi Shawn, this tutorial's title includes 'assign' a letter- actually it's only about changing it, as pointed out by the poster when I quoted it:


Could I suggest it include the case of an unformatted drive to which a letter is assigned for the first time? Thanks!

You need to have JavaScript enabled so that you can use this ...

Computer Type: Laptop
System Manufacturer/Model Number: PC Specialist custom laptop Cosmos IV
OS: Win 10 Pro (22H2) (2nd PC is 22H2)
CPU: i3 Dual Core Processor i3-6100H
Memory: 16GB HyperX IMPACT 1600MHz SODIMM DDR3
Graphics Card: NVIDIA GeForce GT 940M
Monitor(s) Displays: 15.6" Matte Full HD IPS LED Widescreen
Screen Resolution: 1920x1080
Hard Drives: 256GB SAMSUNG SM951 M.2 1TB SERIAL ATA II 2.5" HARD DRIVE WITH 8MB CACHE
Internet Speed: 38MB/s
Browser: Firefox, Chrome
Antivirus: Avast

Computer Type: Laptop
System Manufacturer/Model Number: Lenovo T440s
OS: Win 10 Pro, 22H2
Memory: 8Gb
Screen Resolution: 1600x900
Hard Drives: 256Gb SSD
Browser: Firefox, Chrome
Other Info: 3cell battery internal, 6 cell removable

Quote

Quote


Brink

Posts : 75,880 64-bit Windows 11 Pro for Workstations Thread Starter

   New 26 Feb 2020


dalchina said:

Hi Shawn, this tutorial's title includes 'assign' a letter- actually it's only about changing it, as pointed out by the poster when I quoted it:


Could I suggest it include the case of an unformatted drive to which a letter is assigned for the first time? Thanks!

Hey mate,



I have added an assign option to the command in step 5 option 3 of the tutorial below when formatting the drive to help.

You need to have JavaScript enabled so that you can use this ...

Computer Type: PC/Desktop
System Manufacturer/Model Number: Custom self built
OS: 64-bit Windows 11 Pro for Workstations
CPU: Intel i7-8700K 5 GHz
Motherboard: ASUS ROG Maximus XI Formula Z390
Memory: 64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
Graphics Card: ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card: Integrated Digital Audio (S/PDIF)
Monitor(s) Displays: 2 x Samsung Odyssey G75 27"
Screen Resolution: 2560x1440
Keyboard: Logitech wireless K800
Mouse: Logitech MX Master 3
PSU: Seasonic Prime Titanium 850W
Case: Thermaltake Core P3 wall mounted
Cooling: Corsair Hydro H115i
Hard Drives: 1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, TerraMaster F8 SSD Plus NAS
Internet Speed: 2 Gbps Download and 35 Mbps Upload
Browser: Google Chrome
Antivirus: Windows Defender and Malwarebytes Premium
Other Info: Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, CyberPower CP1500PFCLCD, Galaxy S23 Plus phone

View my PC Album

Computer Type: Laptop
System Manufacturer/Model Number: HP Spectre x360 2in1
OS: 64-bit Windows 10 Pro build 21390
CPU: i7-1065G7 3.9 GHz
Memory: 16 GB LPDDR4-3200
Graphics Card: Intel Iris Plus
Sound Card: Intel SST
Monitor(s) Displays: 13.3" 4K UWVA AMOLED multitouch
Screen Resolution: 3840 x 2160
Hard Drives: 512 GB PCIe NVMe M.2 SSD
Browser: Google Chrome
Antivirus: Windows Defender and Malwarebytes Premium

Quote

Quote


Brink

Posts : 75,880 64-bit Windows 11 Pro for Workstations Thread Starter

   New 21 Aug 2020


Tutorial updated to add to change drive letter in Settings.

You need to have JavaScript enabled so that you can use this ...

Computer Type: PC/Desktop
System Manufacturer/Model Number: Custom self built
OS: 64-bit Windows 11 Pro for Workstations
CPU: Intel i7-8700K 5 GHz
Motherboard: ASUS ROG Maximus XI Formula Z390
Memory: 64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
Graphics Card: ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card: Integrated Digital Audio (S/PDIF)
Monitor(s) Displays: 2 x Samsung Odyssey G75 27"
Screen Resolution: 2560x1440
Keyboard: Logitech wireless K800
Mouse: Logitech MX Master 3
PSU: Seasonic Prime Titanium 850W
Case: Thermaltake Core P3 wall mounted
Cooling: Corsair Hydro H115i
Hard Drives: 1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, TerraMaster F8 SSD Plus NAS
Internet Speed: 2 Gbps Download and 35 Mbps Upload
Browser: Google Chrome
Antivirus: Windows Defender and Malwarebytes Premium
Other Info: Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, CyberPower CP1500PFCLCD, Galaxy S23 Plus phone

View my PC Album

Computer Type: Laptop
System Manufacturer/Model Number: HP Spectre x360 2in1
OS: 64-bit Windows 10 Pro build 21390
CPU: i7-1065G7 3.9 GHz
Memory: 16 GB LPDDR4-3200
Graphics Card: Intel Iris Plus
Sound Card: Intel SST
Monitor(s) Displays: 13.3" 4K UWVA AMOLED multitouch
Screen Resolution: 3840 x 2160
Hard Drives: 512 GB PCIe NVMe M.2 SSD
Browser: Google Chrome
Antivirus: Windows Defender and Malwarebytes Premium

Quote

Quote


VinceB

Posts : 136 Windows 10 Home x64 vers. 10.0 19045 Build 19045

   New 18 Dec 2020


Hi Brink:

I currently have two USB external drives connected to USB ports on the front panel of my desktop:


Seagate Backup Plus Drive (F:); 6 TB HDD

WD-My Passsport (G:); 2 TB HDD



I have just used Option 1 to change the drive letter assignment from (I:) to (G:) for the WD external USB HDD drive.
In the tutorial is says:
"When you change the drive letter of a drive, it will assign a permanent letter to the drive that will not change on your PC unless you change it."

I wonder if I understand that correctly? If I do, then with this new knowledge, I plan to affix a physical label next to the USB port that is currently in use as Drive (G:), then I can rely on it always being identified and accessed as Drive (G:) (until I change it again).

So, I think physical labels affixed adjacent to each USB port will help me in the future when I have thumb drives attached, etc.

Do you see any reason why I should not go ahead with my plan?




You need to have JavaScript enabled so that you can use this ...

Computer Type: PC/Desktop
System Manufacturer/Model Number: DELL XPS 8700
OS: Windows 10 Home x64 vers. 10.0 19045 Build 19045
CPU: i7-4770 CPU @ 3.40 GHz, 4 core, 8 logical processors
Memory: 12GB
Graphics Card: GeForce GT 635 NVIDIA compatible, 1 GB RAM
Sound Card: Realtec High Definition Audio and NVIDIA High Definition Audio
Monitor(s) Displays: DELL 23 inch and DELL 19 inch are connected.
Screen Resolution: 1920 x 1080 x 60 Hertz.
Keyboard: Microsoft USB Keyboard, Model 1878 (29 April 2020)
Mouse: DELL, USB
Case: Tower
Hard Drives: 1 TB internal (ST1000DM003-1CH162, NTFS), 2 TB USB (WD My Passport, NTFS) 6 TB USB (Seagate hub Plus, NTFS)
Internet Speed: Verizon FiOS
Browser: Chrome; IE
Antivirus: Windows Defender
Other Info: HP8600 Pro Officejet All-in-One, network wired

Quote

Quote


dalchina

Posts : 47,473 Win 10 Pro (22H2) (2nd PC is 22H2)

   New 18 Dec 2020


It's the drive that's identified as, say, G: - unless...
a. you already have G: in use
b. you have subsequently assigned G: to a different drive

Recommendation- choose a drive letter late in the alphabet.

You need to have JavaScript enabled so that you can use this ...

Computer Type: Laptop
System Manufacturer/Model Number: PC Specialist custom laptop Cosmos IV
OS: Win 10 Pro (22H2) (2nd PC is 22H2)
CPU: i3 Dual Core Processor i3-6100H
Memory: 16GB HyperX IMPACT 1600MHz SODIMM DDR3
Graphics Card: NVIDIA GeForce GT 940M
Monitor(s) Displays: 15.6" Matte Full HD IPS LED Widescreen
Screen Resolution: 1920x1080
Hard Drives: 256GB SAMSUNG SM951 M.2 1TB SERIAL ATA II 2.5" HARD DRIVE WITH 8MB CACHE
Internet Speed: 38MB/s
Browser: Firefox, Chrome
Antivirus: Avast

Computer Type: Laptop
System Manufacturer/Model Number: Lenovo T440s
OS: Win 10 Pro, 22H2
Memory: 8Gb
Screen Resolution: 1600x900
Hard Drives: 256Gb SSD
Browser: Firefox, Chrome
Other Info: 3cell battery internal, 6 cell removable

Quote

Quote


VinceB

Posts : 136 Windows 10 Home x64 vers. 10.0 19045 Build 19045

   New 11 Mar 2021

Assignment of "Static" Drive Letters


dalchina said:

It's the drive that's identified as, say, G: - unless...
a. you already have G: in use
b. you have subsequently assigned G: to a different drive

Recommendation- choose a drive letter late in the alphabet.

Hi dalchina:

Thanks for your info.

Please tell me the reasoning behind your recommendation. I have already affixed drive letter labels on the desktop cabinet, but can redo them, if necessary.


I have used drive letters D: thru J: ; not all have been assigned a static drive letter as yet.

D: is DVD R/W drive

E: is Memory card

F: and G: are front panel USB ports used for USB external HDDs

H: and I: are USB ports housed within the Seagate (F:) cabinet

J: and K: are top panel USB ports



I would appreciate your suggestion.



You need to have JavaScript enabled so that you can use this ...

Computer Type: PC/Desktop
System Manufacturer/Model Number: DELL XPS 8700
OS: Windows 10 Home x64 vers. 10.0 19045 Build 19045
CPU: i7-4770 CPU @ 3.40 GHz, 4 core, 8 logical processors
Memory: 12GB
Graphics Card: GeForce GT 635 NVIDIA compatible, 1 GB RAM
Sound Card: Realtec High Definition Audio and NVIDIA High Definition Audio
Monitor(s) Displays: DELL 23 inch and DELL 19 inch are connected.
Screen Resolution: 1920 x 1080 x 60 Hertz.
Keyboard: Microsoft USB Keyboard, Model 1878 (29 April 2020)
Mouse: DELL, USB
Case: Tower
Hard Drives: 1 TB internal (ST1000DM003-1CH162, NTFS), 2 TB USB (WD My Passport, NTFS) 6 TB USB (Seagate hub Plus, NTFS)
Internet Speed: Verizon FiOS
Browser: Chrome; IE
Antivirus: Windows Defender
Other Info: HP8600 Pro Officejet All-in-One, network wired

Quote

Quote


dalchina

Posts : 47,473 Win 10 Pro (22H2) (2nd PC is 22H2)

   New 11 Mar 2021


Imagine you have several USB devices that you might plug in. You have one backup drive that you must allocate to a given drive letter for the backup to work.

If you allocate it the next available drive letter, next time you have something else plugged in it will take that letter.

Then you plug in your backup drive, and it's not allocated the drive letter your backup expects.
Then you get an error message.

Instead, allocate your backup drive say X
You would have to plug in a lot of other devices for X not to be available.

QED

You need to have JavaScript enabled so that you can use this ...

Computer Type: Laptop
System Manufacturer/Model Number: PC Specialist custom laptop Cosmos IV
OS: Win 10 Pro (22H2) (2nd PC is 22H2)
CPU: i3 Dual Core Processor i3-6100H
Memory: 16GB HyperX IMPACT 1600MHz SODIMM DDR3
Graphics Card: NVIDIA GeForce GT 940M
Monitor(s) Displays: 15.6" Matte Full HD IPS LED Widescreen
Screen Resolution: 1920x1080
Hard Drives: 256GB SAMSUNG SM951 M.2 1TB SERIAL ATA II 2.5" HARD DRIVE WITH 8MB CACHE
Internet Speed: 38MB/s
Browser: Firefox, Chrome
Antivirus: Avast

Computer Type: Laptop
System Manufacturer/Model Number: Lenovo T440s
OS: Win 10 Pro, 22H2
Memory: 8Gb
Screen Resolution: 1600x900
Hard Drives: 256Gb SSD
Browser: Firefox, Chrome
Other Info: 3cell battery internal, 6 cell removable

Quote

Quote


VinceB

Posts : 136 Windows 10 Home x64 vers. 10.0 19045 Build 19045

   New 13 Mar 2021


OK, and thanks Dalchina.

With the knowledge that "When you change the drive letter of a drive, it will assign a permanent letter to the drive that will not change on your PC unless you change it." I plan to configure each USB port with a "static" (my word) drive letter (as identified by the adjacent label) using Option 1 of the aforementioned tutorial.

This approach shall allow me to feel very confident that whenever a USB device is connected to any specific USB port the label correctly identifies the assigned WIN10 drive, for reference in apps, etc.

Stay well.


You need to have JavaScript enabled so that you can use this ...

Computer Type: PC/Desktop
System Manufacturer/Model Number: DELL XPS 8700
OS: Windows 10 Home x64 vers. 10.0 19045 Build 19045
CPU: i7-4770 CPU @ 3.40 GHz, 4 core, 8 logical processors
Memory: 12GB
Graphics Card: GeForce GT 635 NVIDIA compatible, 1 GB RAM
Sound Card: Realtec High Definition Audio and NVIDIA High Definition Audio
Monitor(s) Displays: DELL 23 inch and DELL 19 inch are connected.
Screen Resolution: 1920 x 1080 x 60 Hertz.
Keyboard: Microsoft USB Keyboard, Model 1878 (29 April 2020)
Mouse: DELL, USB
Case: Tower
Hard Drives: 1 TB internal (ST1000DM003-1CH162, NTFS), 2 TB USB (WD My Passport, NTFS) 6 TB USB (Seagate hub Plus, NTFS)
Internet Speed: Verizon FiOS
Browser: Chrome; IE
Antivirus: Windows Defender
Other Info: HP8600 Pro Officejet All-in-One, network wired

Quote

Quote


Try3

Posts : 17,698 Windows 10 Home x64 Version 22H2 Build 19045.6575

   New 13 Mar 2021


VinceB said:

With the knowledge that "When you change the drive letter of a drive, it will assign a permanent letter to the drive that will not change on your PC unless you change it." I plan to configure each USB port with a "static" (my word) drive letter (as identified by the adjacent label) using Option 1 of the aforementioned tutorial.
This approach shall allow me to feel very confident that whenever a USB device is connected to any specific USB port the label correctly identifies the assigned WIN10 drive, for reference in apps, etc.

Not quite.

Assigned drive letters apply to the drives themselves not to the port through which they are connected.
- If you assign a particular drive to F: then it will be F: whichever of your connections you plug it into.
- If you plug a different drive into the same connection, its drive letter will be entirely independent of your F: assignment

Denis

You need to have JavaScript enabled so that you can use this ...

Computer Type: Laptop
System Manufacturer/Model Number: Dell Inspiron 7779; HP Pavilion TP01-0026na desktop; Chuwi Hi10 Pro
OS: Windows 10 Home x64 Version 22H2 Build 19045.6575
Internet Speed: 4G, AX WISP router and AX phone hotspot
Browser: Firefox, some use of Edge
Antivirus: Defender

Quote

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-12-21 13:12 最后登录:2025-12-21 13:12
栏目列表
推荐内容