{"id":10117,"date":"2019-07-02T05:37:51","date_gmt":"2019-07-02T00:07:51","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=10117"},"modified":"2023-08-02T20:35:09","modified_gmt":"2023-08-02T15:05:09","slug":"windows-auto-assign-same-drive-letter-usb-external-drive","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/windows-auto-assign-same-drive-letter-usb-external-drive\/","title":{"rendered":"How to Assign the Same Drive Letter for USB Drive in Windows"},"content":{"rendered":"<p>When you insert a USB flash drive, external hard disk, or an SD card, Windows allots the first available drive letter. If drives C, D, E are already used, when you insert an external drive, it allocates drive letter F: for the external drive.<\/p>\n<p>If you&#8217;re wondering how to assign the same drive letter for an external drive, then this article has the info you need.<!--more--><\/p>\n<h2>Assign the Same Drive Letter for USB Drive in Windows<\/h2>\n<p>Windows has a big limitation wherein it can&#8217;t reserve a drive letter for a specific external drive. The first available drive letter is assigned for new drives.<\/p>\n<p>In some cases, you may prefer the same drive letter for a particular USB drive &#8212; e.g., for backup purposes. For instance, your <a href=\"https:\/\/www.winhelponline.com\/blog\/compare-two-directories-files-find-differences\/#sync_robocopy\">RoboCopy backup batch<\/a> file may be hardwired for a specific drive letter, and you want to retain the drive letter for your backup USB drive.<\/p>\n<p>There is a workaround for this issue. Use Disk Management and assign a distant drive letter &#8212; e.g., <code>R:\\<\/code>. This is done because Windows will avoid using the reserved drive letter unless it runs out of drive letters.<\/p>\n<ol>\n<li>Launch Disk Management console (<code>diskmgmt.msc<\/code>)<\/li>\n<li>Right-click on the external drive, and click Change drive letters and paths&#8230;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10119\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/same-drive-letter-usb-drive-windows-1.png\" alt=\"assign same drive letter for a external drive - windows\" width=\"699\" height=\"282\" \/><\/li>\n<li>Click on the <strong>Change<\/strong> button, and choose a distant drive letter from the list, and click OK.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10118\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/same-drive-letter-usb-drive-windows-2.png\" alt=\"assign same drive letter for a external drive - windows\" width=\"699\" height=\"423\" \/><\/li>\n<li>Click <strong>Yes<\/strong> when you see the message <em><strong>Some programs that rely on drive letters might not run correctly. Do you want to continue?<\/strong><\/em><\/li>\n<\/ol>\n<p>This reassigns the drive letter for the external drive.<\/p>\n<p>Windows remembers the drive letter selection by writing to the following registry key:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\SYSTEM\\MountedDevices<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10121\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/same-drive-letter-usb-drive-windows-3.png\" alt=\"assign same drive letter for a external drive - windows\" width=\"702\" height=\"165\" \/><\/p>\n<p>The <code>\\DosDevices\\R:<\/code> REG_BINARY value, in this example, stores the disk name and identifier.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10122\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/same-drive-letter-usb-drive-windows-4.png\" alt=\"assign same drive letter for a external drive - windows\" width=\"601\" height=\"321\" \/><\/p>\n<p>The Device ID can also be read by right-clicking on the drive in Device Manager and choosing Properties. The Details tab has all the info.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10120\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/same-drive-letter-usb-drive-windows-5.png\" alt=\"assign same drive letter for a external drive - windows\" width=\"400\" height=\"238\" \/><\/p>\n<p>So, when you insert the same drive later, Windows assigns the same drive letter but only if it&#8217;s available &#8212; i.e., if it&#8217;s not already assigned to any other drive.<\/p>\n<h3>Change drive letter via the registry<\/h3>\n<p>To change the drive letter via the registry instead of using Disk Management, use these steps:<\/p>\n<ol>\n<li>First, completely <a href=\"https:\/\/www.winhelponline.com\/blog\/automatically-backup-registry-hives-windows-10\/\">backup the Windows Registry<\/a>\u00a0or create a <a href=\"https:\/\/www.winhelponline.com\/blog\/create-restore-protection-point-rollback-windows\/\">Restore Point<\/a>.<\/li>\n<li>Connect the external drive to the system and note down the drive letter assigned by the system. Let&#8217;s say it&#8217;s <code>G:<\/code><\/li>\n<li>Now, safely eject the external drive.<\/li>\n<li>Launch the Registry Editor (<code>regedit.exe<\/code>)<\/li>\n<li>Go to the <code>MountedDevices<\/code> registry branch below:\n<pre>HKEY_LOCAL_MACHINE\\SYSTEM\\MountedDevices<\/pre>\n<\/li>\n<li>Rename the <code>\\DosDevices\\G:<\/code> value to <code>\\DosDevices\\R:<\/code><\/li>\n<li>Exit the Registry Editor.<\/li>\n<\/ol>\n<p>Next time when you connect the same drive, Windows assigns it the <code>R:<\/code> drive letter if it&#8217;s free.<\/p>\n<h2>USB Drive Letter Manager (USBDLM)<\/h2>\n<p><a href=\"https:\/\/www.uwe-sieber.de\/usbdlm_e.html\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">USB Drive Letter Manager<\/a> (USBDLM) is a third-party program that runs as a Windows service that controls the Windows&#8217; drive letter assignment for USB drives. Running as a service makes it independent of the logged-on user&#8217;s privileges, so there is no need to give the users the privilege to change drive letters. It automatically solves conflicts between USB drives and network or subst drives of the currently logged-on user.<\/p>\n<p>Using USBDLM, you can define new default letters for USB drives and much more. This tool can assign drive letters based on the device identifier, volume label, disk size, and other parameters. The configuration can be done using .INI file or via the registry.<\/p>\n<p>Here are <strong>some examples<\/strong> of what USBDLM is capable of doing:<\/p>\n<p><strong>Card Readers<\/strong><\/p>\n<p>The typical 20-in-1 card reader eats one drive letter for each of its slots, whether you insert the cards or not. USBDLM can remove the reader&#8217;s drive letters until a media is inserted.<\/p>\n<pre>[Settings]\r\nNoMediaNoLetter=1<\/pre>\n<p>USBDLM assigns then a drive letter as configured. If you need different drive letters for a multi-slot card reader, then use the criterion &#8220;DeviceType&#8221; in a DriveLetters section (MSCR is short for MultiSlotCardReader):<\/p>\n<pre>[DriveLetters]\r\nDeviceType=MSCR\r\nLetters=R,W<\/pre>\n<p><strong>Network drive letters<\/strong><\/p>\n<p>You can prevent Windows from mounting local drives to certain letters by putting them into the section <code>NetworkLetters<\/code>. This is especially useful for letters of network shares which Windows may assign to USB drives while booting. Do not configure drive letters other than the network, subst, and TrueCrypt drives here!<\/p>\n<pre>[NetworkLetters]\r\nLetters=F,G,Z<\/pre>\n<p>Letters configured in the section <code>[NetworkLetters]<\/code> won&#8217;t be assigned for local drives.<\/p>\n<p><strong>Drive Letters depending on Criteria<\/strong><\/p>\n<pre>[DriveLetters]\r\nDeviceID=USB\\VID_067B&amp;PID_2517\r\nDeviceID=USB\\VID_1234&amp;PID_5678\r\nLetter=X\r\nLetter=Y<\/pre>\n<p>This section is used if a drive with either DeviceID <code>USB\\VID_067B&amp;PID_2517 or USB\\VID_1234&amp;PID_5678<\/code> is attached. The drive then gets assigned <code>X:<\/code> if available, otherwise <code>Y:<\/code>. If both are in use, then the first free letter is assigned.<\/p>\n<p>The DeviceID can be determined using the <code>USBDriveInfo.exe<\/code> companion tool present in the same folder as USBDLM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10123\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/usb-drive-info.png\" alt=\"assign same drive letter for a external drive - windows\" width=\"700\" height=\"360\" \/><\/p>\n<p>Likewise, there are 23 or more criteria supported by this tool. Full details are available on the <a href=\"https:\/\/www.uwe-sieber.de\/usbdlm_help_e.html\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">USBDLM help page<\/a>. Some of the most useful criteria are volume label, volume serial number, disk size, presence of a particular directory or file, username, OS version, etc.<\/p>\n<p>USBDLM is an excellent drive letter management tool. But the entire manual must be thoroughly read to configure the INI file as per your requirements. Once done, it&#8217;s a breeze!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you insert a USB flash drive, external hard disk, or an SD card, Windows allots the first available drive letter. If drives C, D, E are already used, when you insert an external drive, it allocates drive letter F: for the external drive. If you&#8217;re wondering how to assign the same drive letter for &#8230; <a title=\"How to Assign the Same Drive Letter for USB Drive in Windows\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/windows-auto-assign-same-drive-letter-usb-external-drive\/\" aria-label=\"Read more about How to Assign the Same Drive Letter for USB Drive in Windows\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[6,7],"tags":[441],"class_list":["post-10117","post","type-post","status-publish","format-standard","hentry","category-utilities","category-windows","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":24037,"url":"https:\/\/www.winhelponline.com\/blog\/delete-volume-greyed-usb-diskmgmt\/","url_meta":{"origin":10117,"position":0},"title":"&#8220;Delete Volume&#8221; Grayed Out for USB Drives in Disk Management","author":"Ramesh","date":"May 13, 2021","format":false,"excerpt":"In the Disk Management console, the \"Delete Volume\" option may be dimmed out in the right-click menu for USB flash drives. So, users may be wondering how to remove one or more partitions in the external USB drives. Cause The \"Delete Volume\" option may be missing if the page file\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"delete volume grayed out for usb drives - diskpart","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/usb-diskpart-partition-delete-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/usb-diskpart-partition-delete-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/usb-diskpart-partition-delete-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":6438,"url":"https:\/\/www.winhelponline.com\/blog\/media-creation-tool-0x80004005-0xa001a-error-usb\/","url_meta":{"origin":10117,"position":1},"title":"[Fix] Media Creation Tool Error 0x80004005 &#8211; 0xA001A","author":"Ramesh","date":"August 7, 2018","format":false,"excerpt":"When you use the Media Creation Tool to create a bootable USB Windows 10 setup disk, error 0x80004005 - 0xA001A\u00a0occurs during the process. Precisely, the error happens after the ISO download is complete, and during the 'creating media' stage when it nears 50%.\u00a0 Here is the full error message: There\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"media creation tool error 0x80004005 - 0xA001A","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/mct-error-0x80004005-0xA001A.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/mct-error-0x80004005-0xA001A.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/mct-error-0x80004005-0xA001A.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":955,"url":"https:\/\/www.winhelponline.com\/blog\/windows-iso-to-usb-dvd-tool-bootable-media\/","url_meta":{"origin":10117,"position":2},"title":"How to Create Bootable USB Disk from ISO","author":"Ramesh","date":"November 3, 2009","format":false,"excerpt":"This article explains the different methods to create a bootable USB Windows Setup disk from a Windows 10 or 11 ISO image. Follow one of the three methods in this article to create a USB Windows Setup Disk from the Windows ISO. Create USB Bootable Windows Setup Disk from ISO:\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"rufus create usb setup disk from windows 10 or 11 iso","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/11\/rufus-iso-to-usb-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":18487,"url":"https:\/\/www.winhelponline.com\/blog\/problem-ejecting-usb-mass-storage-device-currently-in-use\/","url_meta":{"origin":10117,"position":3},"title":"Problem Ejecting USB Mass Storage Device Currently In Use","author":"Ramesh","date":"September 10, 2020","format":false,"excerpt":"USB devices, including external USB hard drives, are meant to be hot-pluggable -- you can plug or unplug them when Windows is running. However, some processes may have a lock on the files in your external hard disk and won't release them that easily. This prevents you from ejecting the\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"problem ejecting usb device","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/09\/usb-drive-eject-6.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3577,"url":"https:\/\/www.winhelponline.com\/blog\/change-drive-icons-custom-ico-windows\/","url_meta":{"origin":10117,"position":4},"title":"How to Change Drive Icons With Custom .ICO Files in Windows?","author":"Ramesh","date":"July 28, 2016","format":false,"excerpt":"Summary: This post tells you how to customize drive icons using autorun.inf, for fixed drives as well as removable disk drives. This method applies to any version of Windows, including Windows 10. If you use multiple external drives or have multiple partitions in your hard disk each for storing different\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"change drive icons custom ico file","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/drive-icons-customize-autorun-inf-0.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/drive-icons-customize-autorun-inf-0.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/drive-icons-customize-autorun-inf-0.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":9086,"url":"https:\/\/www.winhelponline.com\/blog\/what-is-system-volume-information-can-i-delete\/","url_meta":{"origin":10117,"position":5},"title":"What is System Volume Information and Can I Delete the Folder","author":"Ramesh","date":"May 7, 2019","format":false,"excerpt":"The System Volume Information folder is a hidden and protected folder located at the root of every drive or partition. It's even found on your SD card, USB pen drive, and external hard disk if you have connected them to your Windows computer earlier. It's is not a virus or\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"what is system volume information folder, and can i delete it","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/svi-folder-system-drive-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/svi-folder-system-drive-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/svi-folder-system-drive-2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/svi-folder-system-drive-2.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/10117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=10117"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/10117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=10117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=10117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=10117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}