在Windows(Windows)中您很可能必须执行几次的任务是更改外部硬盘驱动器、映射网络驱动器(mapped network drive)或DVD驱动器的驱动器号。有时,当您插入USB闪存驱动器时,它不会自动获得分配给它的驱动器号,并且它可能不会显示在您的计算机上。
在这些类型的情况下,您必须更改设备的驱动器号,它通常会立即弹出。在本文中,我将向您展示如何使用GUI以及通过命令提示符更改这些设备的驱动器号。
(Change Drive Letter)通过磁盘管理(Disk Management)更改驱动器号
您可以通过右键单击桌面上的计算机(Computer)或此 PC(This PC)图标并选择管理(Manage)或单击开始(Start)并键入diskmgmt.msc在(diskmgmt.msc)Windows PC上打开磁盘管理。
您将在顶部看到卷列表,在底部看到磁盘和分区。任何具有驱动器号的分区都将显示在白色区域中。如果您连接了USB驱动器并看到它列出,但它没有驱动器号,您现在可以分配一个。
要分配或更改磁盘或分区的驱动器号,只需右键单击它并选择更改驱动器号和路径(Change Drive Letter and Paths)。
将弹出一个窗口,其中包含当前驱动器号(如果有的话)和几个选项。在这里,您要单击Change。
接下来,您将从下拉列表中选择新的驱动器号。您可以从字母 A 到 Z 中进行选择。
就是这样。单击“确定(Click OK)”关闭所有对话框,驱动器现在应该在Windows中显示新的驱动器号。如果您在使用GUI界面时遇到问题,或者您只是觉得使用命令提示符更舒服,请阅读以下有关如何使用 diskpart 的说明。
使用 DiskPart 分配驱动器号
如果您需要通过命令提示符更改或分配驱动器号,则必须使用 diskpart 命令。我写了一些关于如何使用 diskpart(how to use diskpart)的文章,这对于许多磁盘管理任务非常有用。
要开始,请在Windows(Windows)中打开管理员命令提示符,方法是单击Start,输入CMD,然后右键单击并选择Run as Administrator。
现在输入以下命令,每个命令后跟Enter键。
diskpart
list volume
select volume x
assign letter=x
在上面(Above),您将 x 替换为列表中与您要更改的驱动器相对应的卷号以及您要分配给该驱动器的字母。以下是我为外部USB驱动器运行的命令:
您还会注意到,在Type列下,外部驱动器将显示为Removable。这是在选择卷之前进行检查的好方法。您还可以通过查看大小并查看“信息(Info)”列来确定哪个驱动器是正确的。就我而言,第 0 卷是系统分区,所以我不想意外地弄乱它。
总的来说,这是一个相当简单的过程,希望您不会遇到任何问题。但是,有时事情无法正常工作。以下(Below)是一些可能的原因。
疑难解答无法在 Windows中(Windows)更改驱动器号(Change Drive Letter)
我看到的一个问题是“更改驱动器号”(Change Drive Letter)选项只是变灰了。这可能有几个原因。主要原因之一是卷未格式化为FAT或NTFS格式。例如,如果您从Mac计算机附加磁盘,则除非您将驱动器格式化为兼容格式,否则您将无法更改驱动器号。
另一个原因是驱动器是否设置为只读。如果是这样,您必须谷歌更改驱动器以允许读/写访问的步骤。
此外,如果您不需要相关卷上的任何数据,一个简单的解决方案是删除通常不会变灰的卷。删除卷后,您可以再次右键单击并创建一个新的简单卷。现在您将能够更改驱动器号。
请(Make)务必阅读我关于如何在 Windows 中隐藏驱动器(hide drive in Windows)以及如何将文件夹映射到 Windows 中的(map a folder to a drive letter)驱动器(Windows)号的其他提示。如果您有任何问题,请随时发表评论。享受!
How to Change a Drive Letter in Windows
A task уou will most likely have to perform a few times in Windows is changіng the drive letter for an external hard drive, mapped network drive, or DVD drive. Sometimes when you plug in a USB flash drive, it doesn’t automatically get a drive letter assigned to it and it may not show up on your computer.
In those types of cases, you have to change the drive letter for the device and it will normally pop right up. In this article, I’ll show you how to change the drive letter for these devices using the GUI and also via the command prompt.
Change Drive Letter via Disk Management
You can open disk management on a Windows PC by either right-clicking on the Computer or This PC icon on the desktop and choosing Manage or by clicking on Start and typing in diskmgmt.msc.
You’ll see a list of volumes at the top and the disks and partitions at the bottom. Any partition that has a drive letter will be shown in the white area. If you connected a USB drive and you see it listed, but it doesn’t have a drive letter, you can now assign one.
To assign or change the drive letter for a disk or partition, simply right-click on it and choose Change Drive Letter and Paths.
A window will pop up with the current drive letter, if there is one, and a couple of options. Here you want to click on Change.
Next, you will choose the new drive letter from the dropdown list. You can pick from the letters A to Z.
That’s about it. Click OK to close out all the dialogs and the drive should now show up in Windows with the new drive letter. If you’re having issues using the GUI interface or you simply feel more comfortable using the command prompt, read the instructions below on how to use diskpart.
Use DiskPart to Assign Drive Letter
If you need to change or assign a drive letter via the command prompt, you have to use the diskpart command. I’ve written a bit on how to use diskpart, which is really useful for many disk management tasks.
To get started, open an administrator command prompt in Windows by clicking on Start, typing in CMD and then right-clicking and choosing Run as Administrator.
Now type in the following commands, each followed by the Enter key.
diskpart
list volume
select volume x
assign letter=x
Above, you’ll replace x with the volume number in the list that corresponds to the drive you want to change and with the letter you want to assign to the drive. Here are the commands I ran for an external USB drive:
You’ll also notice that under the Type column, external drives will show up as Removable. That’s a good way to check before you select a volume. You can also figure out which drive is correct by looking at the size and also looking at the Info column. Volume 0 in my case is the system partition, so I wouldn’t want to mess with that by accident.
Overall, it’s a fairly simple process and hopefully you won’t run into any problems. There are times, however, when things don’t work properly. Below are some possible reasons.
Troubleshoot Can’t Change Drive Letter in Windows
One problem that I have seen is that the Change Drive Letter option is simply greyed out. This can occur for a few reasons. One of the main reasons is the volume is not formatted in FAT or NTFS format. For example, if you are attaching a disk from a Mac computer, you will not be able to change the drive letter unless you format the drive into a compatible format.
Another reason is if the drive is set to read-only. If so, you’ll have to Google the steps to change the drive to allow read/write access.
Also, if you don’t need any of the data on the volume in question, a simple solution is to delete the volume, which is normally never greyed out. Once you delete the volume, you can right-click again and create a new simple volume. Now you will be able to change the drive letter.
Make sure to read my other tips on how to hide drive in Windows and how to map a folder to a drive letter in Windows. If you have any questions, feel free to comment. Enjoy!