更改驱动器号Change a drive letter

适用于: Windows 10、Windows 8.1、Windows 7、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012Applies To: Windows 10, Windows 8.1, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

如果你不喜欢某个驱动器的驱动器号,或者某个驱动器尚未分配驱动器号,可以使用磁盘管理来更改或分配驱动器号。If you don't like the drive letter assigned to a drive, or if you've got a drive that doesn't yet have a drive letter, you can use Disk Management to change it. 若要改为将驱动器装载到空文件夹,从而使其显示为文件夹,请参阅将驱动器安装在文件夹中To instead to mount the drive in an empty folder so that it appears as just another folder, see Mount a drive in a folder.

重要

如果更改驱动器号的驱动器中安装了 Windows 或应用,在运行或查找该驱动器时,应用可能会遇到问题。If you change the drive letter of a drive where Windows or apps are installed, apps might have trouble running or finding that drive. 出于此原因,我们建议不要更改安装了 Windows 或应用的驱动器的驱动器号。For this reason we suggest that you don't change the drive letter of a drive on which Windows or apps are installed.

下面是更改驱动器号的方法:Here's how to change the drive letter:

  1. 使用管理员权限打开磁盘管理。Open Disk Management with administrator permissions. 为此,选择并按住(或右键单击)“开始”按钮,然后选择“磁盘管理”。To do so, select and hold (or right-click) the Start button, and then select Disk Management.

  2. 在“磁盘管理”中,选择并按住(或右键单击)要更改或添加驱动器号的卷,然后选择“更改驱动器号和路径”。In Disk Management, select and hold (or right-click) the volume for which you want to change or add a drive letter, and then select Change Drive Letter and Paths.

    显示了驱动器的磁盘管理

    提示

    如果“更改驱动器号和路径”选项未显示或灰显,则可能表示该卷尚未准备好设置驱动器号。如果驱动器尚未分配并需要初始化,则可能会出现这种情况。If you don't see the Change Drive Letter and Paths option or it's grayed out, it's possible the volume isn't ready to receive a drive letter, which can be the case if the drive is unallocated and needs to be initialized. 或者,可能表示该卷不可访问。EFI 系统分区和恢复分区存在这种情况。Or, maybe it's not meant to be accessed, which is the case of EFI system partitions and recovery partitions. 如果确认已使用可访问的驱动器号格式化了该卷,但依旧无法更改它,则很遗憾,本主题可能帮不到你,我们建议联系 Microsoft 或电脑制造商来获得更多帮助。If you've confirmed that you have a formatted volume with a drive letter that you can access and you still can't change it, unfortunately this topic probably can't help you, so we suggest contacting Microsoft or the manufacturer of your PC for more help.

  3. 若要更改驱动器号,请选择“更改”。To change the drive letter, select Change. 若要添加驱动器号(如果驱动器没有驱动器号),请选择“添加”。To add a drive letter if the drive doesn't already have one, select Add.

    “更改驱动器号和路径”对话框

  4. 选择新的驱动器号,选择“确定”,然后在出现有关依赖于该驱动器号的程序可能无法正常运行的提示时选择“是”。 Select the new drive letter, select OK, and then select Yes when prompted about how programs that rely on the drive letter might not run correctly.

    显示更改驱动器号的“更改驱动器号和路径”对话框