在Windows 10中,每个驱动器都使用一个熟悉的名称来帮助您识别它。例如,保存操作系统(operating system)的驱动器称为Local Disk。同时,USB 记忆(USB memory)棒被命名为USB Drive。此外,网络驱动器和映射驱动器使用它们指向的位置作为它们的名称。尽管Windows 10为每个驱动器设置了默认名称,但您可能希望从计算机自定义驱动器以更轻松地识别它们。在本指南中,我们分享了五种在(share five)Windows 10中重命名所有类型驱动器的方法。让我们开始吧:
重要提示:(IMPORTANT:)本指南涵盖了Windows 10 PC 中映射驱动器、网络驱动器、闪存驱动器和磁盘分区的重命名。有些方法适用于所有类型的驱动器,有些方法仅适用于子集。对于每种方法,我们都会提到它适用的驱动器类型。在Windows 10中重命名驱动器时,其名称不能包含以下任何字符: / : * ? " < > |。本指南中共享的方法均不适用(guide work)于光驱,如蓝光(Blu-ray)驱动器或CD/DVD驱动器。
如何使用重命名选项重命名所有类型的驱动器(Rename option)
打开文件资源管理器并转到这台电脑(This PC)。在那里,您可以看到Windows 10(Windows 10)中存在的所有驱动器和网络位置。单击(Click)以选择要重命名的驱动器。然后,要访问重命名(Rename)选项,您可以单击或点击功能区上的计算机(Computer)选项卡,然后单击重命名(Rename)选项。
或者,您可以右键单击(或按住)您感兴趣的驱动器,然后在上下文菜单中选择重命名。(Rename)
最后,您还可以单击或点击要重命名的驱动器,然后按键盘上的F2键。无论您选择哪种方法进入此处,请为所选驱动器键入所需的新名称。按键盘(keyboard or click)上的Enter或单击或点击(Enter)文件资源管理器(File Explorer)窗口中空白区域的某处以应用它。
当您尝试重命名驱动器(如安装Windows 10的分区)时,您会收到以下消息:“拒绝访问 - 您需要提供管理员权限才能重命名此驱动器。” ("Access Denied - You will need to provide administrator permission to rename this drive.")如果您在Windows 10(Windows 10)中使用管理员帐户登录,请按Continue,您就完成了。否则,您还必须在显示的UAC 提示中输入另一个(UAC prompt)用户帐户(user account)的密码,该用户帐户是您 PC 上的管理员。
此方法适用于网络位置(映射驱动器)和存储驱动器,包括USB 闪存(USB flash)驱动器和外部硬盘。
(Rename)使用其属性重命名所有类型的驱动器
另一种适用于所有类型驱动器(从映射驱动器到分区和闪存驱动器)的方法是访问它们的属性(Properties)并从那里重命名它们。可以通过多种方式访问驱动器的属性。(Properties)最简单的是来自File Explorer。打开它并转到这台电脑(This PC)。然后,从“设备和驱动器”(Devices and drives")或“网络位置("Network locations)”中选择要重命名的驱动器。转到功能区上的“计算机(Computer)”选项卡,然后单击或点击“属性(Properties)”按钮。
另一种方法是右键单击或按住要重命名的驱动器,然后在上下文菜单中选择“属性”。(Properties)或者,您可以单击或点击驱动器,然后同时按键盘上的ALT+Enter
您还可以从其他地方访问驱动器的属性(Properties),例如Disk Management 或 Computer Management(Disk Management or Computer Management)。这些工具的警告是,您只能使用它们来重命名SSD 或 HDD(SSD or HDD)上的分区,以及连接到计算机的USB驱动器。让我们看看它是如何工作的:打开磁盘管理并右键单击(Disk Management and right-click)(或按住)要重命名的驱动器。然后,从上下文菜单中选择属性。(Properties)
如果您打开Computer Management,请转到Storage -> Disk Management,右键单击(或按住)要重命名的驱动器,然后选择Properties。
无论您如何进入要重命名的驱动器的“属性”窗口,请在“(Properties)常规(General)”选项卡中键入新名称,然后按“确定(OK)”或“应用(Apply)” 。
所选驱动器现在使用您输入的新名称重命名。
(Rename)使用命令提示符或 PowerShell中的驱动器(Command Prompt or PowerShell)号重命名所有驱动器
如果您要重命名的驱动器分配了一个字母(如USB 闪存(USB flash)驱动器),您可以使用简单的命令对其进行重命名。打开命令提示符(Command Prompt)或以管理员身份启动PowerShell ,然后输入以下命令: (PowerShell)label DriveLetter: NewName。例如,要将 I: drive 重命名为CITIZEN,我们输入:label I: CITIZEN。要执行命令,请按键盘上的Enter 。
还有另一个仅在Powershell中有效的类似命令:Set-Volume -DriveLetter Letter -NewFileSystemLabel "NewName"。要重命名 I: drive DIGITAL,我们输入以下命令:
设置卷 -DriveLetter I -NewFileSystemLabel "DIGITAL"(Set-Volume -DriveLetter I -NewFileSystemLabel "DIGITAL")
输入完命令后不要忘记按Enter 键(Enter)来执行它。当您转到文件资源管理器(File Explorer)时,您会看到驱动器已使用您之前输入的名称重命名。
注意:(NOTE:)此方法不适用于网络驱动器和映射驱动器,仅适用于存储驱动器。
如何使用现有名称从PowerShell重命名驱动器(PowerShell)
您可以启动PowerShell并使用另一个命令来帮助您使用现有名称重命名存储驱动器(storage drive)(闪存驱动器、外部硬盘、分区)。键入命令:Set-Volume -FileSystemLabel "DriveName" -NewFileSystemLabel "NewDriveName"。
例如,要将名为CITIZEN的驱动器重命名为Digital,我们编写:Set-Volume -FileSystemLabel "CITIZEN" -NewFileSystemLabel "Digital"。
按Enter 键(Enter)执行命令。当您转到File Explorer时,您会看到已重命名的驱动器。
如何使用Autorun.inf 文件(Autorun.inf file)重命名外部驱动器
此方法最适用于可移动驱动器,例如USB闪存驱动器和USB硬盘驱动器。但是,它也可用于 PC 的内部硬盘驱动器。当 Windows 10 安装驱动器时,它会检查其上是否存在名为autorun.inf的文件。该文件可以包含有关该驱动器名称和它使用的图标的信息。如果存在此类信息,Windows 10 将使用它在文件资源管理器(File Explorer)和任何其他位置显示驱动器。autorun.inf文件应该有一个条目label= " label="DriveName"。将 DriveName 替换(Replace DriveName)为您要使用的驱动器的名称。
我们在本教程中展示了如何创建autorun.inf文件并对其进行个性化设置:如何在Windows中为可移动驱动器设置自定义图标和标签(custom icon & label)。
您更喜欢哪种方法在Windows 10中重命名驱动器?
正如您在本指南中所见,在Windows 10(Windows 10)中有多种重命名驱动器的方法。不幸的是,并非所有这些都适用于所有类型的驱动器。某些方法可用于重命名网络驱动器和存储驱动器,而其他方法仅适用于存储驱动器。希望(Hopefully)我们的指南能够帮助您找到要重命名的驱动器类型所需的解决方案。如果您有任何问题或错误,请随时在下面的评论中分享。
5 ways to rename any drive in Windows 10
Іn Windows 10, every drive uses a familiar name that helps you identify it. For instance, the drive that holds the operating system is called Local Disk. At the same time, a USB memory stick is named USB Drive. Also, network drives and mapped drives use the locations they point to as their names. Although Windows 10 sets default names for every drive, you might want to customize the drives from your computer to recognize them more easily. In this guide, we share five ways to rename all types of drives in Windows 10. Let's get started:
IMPORTANT: This guide covers the renaming of mapped drives, network drives, flash drives, and disk partitions in your Windows 10 PC. Some methods work for all types of drives, others just for a subset. For each method, we mention the type of drive for which it works. When you rename a drive in Windows 10, its name cannot contain any of the following characters: / : * ? " < > |. None of the methods shared in this guide work for optical drives, like Blu-ray drives or CD/DVD drives.
How to rename all types of drives using the Rename option
Open File Explorer and go to This PC. There you see all the drives and network locations that exist in Windows 10. Click to select the drive that you want to rename. Then, to access the Rename option, you can click or tap the Computer tab on the ribbon, and then the Rename option.
Or, you can right-click (or press-and-hold) the drive that you are interested in, and then choose Rename in the contextual menu.
Finally, you can also click or tap on the drive that you want to rename, and then press the F2 key on your keyboard. No matter which method you chose to get here, type the new name that you want for the selected drive. Press Enter on your keyboard or click or tap somewhere in the empty space from the File Explorer window to apply it.
When you try to rename drives like the partition where Windows 10 is installed, you receive this message: "Access Denied - You will need to provide administrator permission to rename this drive." If you are logged with an account that is administrator in Windows 10, press Continue, and you are done. Otherwise, you also have to enter the password of another user account that is an administrator on your PC in the UAC prompt that is shown.
This method works both for network locations (mapped drives) and storage drives, including USB flash drives and external hard disks.
Rename all types of drives using their Properties
Another method that works for all types of drives, from mapped drives to partitions and flash drives, is to access their Properties and rename them from there. Accessing the Properties of a drive can be done in many ways. The easiest is from File Explorer. Open it and go to This PC. Then, select the drive that you want to rename from "Devices and drives" or "Network locations." Go to the Computer tab on the ribbon, and then click or tap the Properties button.
Another method is to right-click or press-and-hold on the drive that you want to rename and choose Properties in the contextual menu. Alternatively, you can click or tap on the drive and then press the ALT+Enter keys on your keyboard simultaneously.
You can also access the Properties of a drive from other places, like Disk Management or Computer Management. The caveat to these tools is that you can use them only to rename partitions on your SSD or HDD, and USB drives attached to your computer. Let's see how it works: Open Disk Management and right-click (or press-and-hold) the drive that you want to rename. Then,choose Properties from the contextual menu.
If you open Computer Management, go to Storage -> Disk Management, right-click (or press-and-hold) the drive that you want to rename, and choose Properties.
No matter how you got to the Properties window of the drive that you want to rename, type the new name in the General tab and press OK or Apply.
The selected drive is now renamed using the new name that you have entered.
Rename all drives with a drive letter from the Command Prompt or PowerShell
If the drive that you want to rename has a letter assigned (like a USB flash drive), you can rename it using a simple command. Open the Command Prompt or start PowerShell as an administrator, and enter this command: label DriveLetter: NewName. For example, to rename the I: drive to CITIZEN, we typed: label I: CITIZEN. To execute the command, press Enter on your keyboard.
There is another similar command which works only in Powershell: Set-Volume -DriveLetter Letter -NewFileSystemLabel "NewName". To rename the I: drive DIGITAL, we typed the following command:
Set-Volume -DriveLetter I -NewFileSystemLabel "DIGITAL"
Don't forget to press Enter when you are done typing in the command to execute it. When you go to File Explorer, you see that the drive was renamed using the name that you typed in earlier.
NOTE: This method doesn't work for network drives and mapped drives, only for storage drives.
How to rename drives from PowerShell using their existing names
You can start PowerShell and use another command that helps you rename a storage drive (flash drive, external hard disk, partition) using its existing name. Type the command: Set-Volume -FileSystemLabel "DriveName" -NewFileSystemLabel "NewDriveName".
For example, to rename a drive named CITIZEN into Digital, we wrote: Set-Volume -FileSystemLabel "CITIZEN" -NewFileSystemLabel "Digital".
Press Enter to execute the command. When you go to File Explorer, you see the drive renamed.
How to rename an external drive using an Autorun.inf file
This method works best for removable drives, like USB flash drives and USB hard drives. However, it can also be used for your PC's internal hard disk drives. When Windows 10 mounts a drive, it checks if a file called autorun.inf exists on it. This file can contain information about the name of that drive and the icon it uses. If such information is present, Windows 10 uses it to display the drive in File Explorer and in any other places. The autorun.inf file should have an entry label="DriveName". Replace DriveName with the name of the drive that you want to use.
We've shown how to create autorun.inf files and personalize them in this tutorial: How to set a custom icon & label for removable drives in Windows.
Which method do you prefer for renaming drives in Windows 10?
As you have seen in this guide, there are many ways to rename a drive in Windows 10. Unfortunately, not all of them work for all types of drives. Some methods can be used to rename network drives as well as storage drives, while others work only for storage drives. Hopefully, our guide has managed to help you find the solution you need for the type of drive that you want to rename. If you have any problems or errors, do not hesitate to share them in the comments below.