如果您使用具有多个分区和硬盘的Windows计算机和设备,您可能需要隐藏特定分区。(Windows)稍后,您可能需要取消隐藏或重新启用它,以便再次使用它。如果您需要知道如何在Windows中隐藏和取消隐藏分区,请阅读本教程:
注意:(NOTE:)本指南在Windows 10、Windows 7 和 Windows 8.1 中的工作方式相同。这就是为什么为了简单起见,我们只使用在Windows 10中截取的屏幕截图。
如何使用磁盘管理在(Disk Management)Windows中隐藏(卸载)分区(Windows)
首先,您需要打开磁盘管理(Disk Management)。我们在本教程中描述了所有方法:在Windows(所有版本)中打开磁盘管理工具的 9 种方法。(Disk Management tool)适用于所有Windows版本的一种方法是在“("disk management")开始(Start)”附近的搜索框中(在Windows 10中)、在“开始”菜单的(Start Menu)搜索框中(search box)(在 Windows 7 中)或在“开始(Start)”屏幕上(在视窗 8.1)。
在“磁盘管理(Disk Management)”窗口中,确定要隐藏的分区。您可以在顶部的卷列表、底部的所有磁盘的图形表示中看到它。
右键单击或(Right-click or press)按住要隐藏(或卸载)的分区。在右键菜单中,选择“更改驱动器号和路径”。("Change Drive Letter and Paths.")
在“更改驱动器号和路径("Change Drive Letter and Paths)”窗口中,单击或点击删除(Remove)按钮。
系统会要求您确认是否要删除驱动器号(drive letter)。按是(Yes)。
系统会警告您该驱动器正在使用中。关闭(Close)您打开的所有应用程序和文件(apps and files),尤其是那些存储在您隐藏的驱动器上的应用程序和文件。然后,按是(Yes)。
该分区现在被隐藏(卸载),并且不再可以在Windows Explorer的文件资源管理器(File Explorer)中访问。Windows 会记住您在每次登录时所做的设置,并且该分区不再可供应用程序和用户使用,除非您选择取消隐藏或挂载它。您可以关闭磁盘管理(Disk Management)并恢复您的工作。
如何使用磁盘管理在(Disk Management)Windows中取消隐藏(挂载)分区(Windows)
当您希望分区再次可用时,您需要取消隐藏或重新挂载它。为此,请打开磁盘管理工具(Disk Management tool)。在顶部的卷列表或底部的磁盘列表中,找到隐藏分区并右键单击(partition and right-click)它。在有触摸的屏幕上,按住它。在显示的菜单中,选择“更改驱动器号和路径”。("Change Drive Letter and Paths.")
在打开的窗口中,按添加(Add)按钮。
“添加驱动器号或路径("Add Drive Letter or Path)”窗口打开。在这里,在右侧的下拉列表中选择要分配的驱动器号。(drive letter)然后,单击或点击(click or tap) OK。
该分区现在已安装并且对您的Windows 安装(Windows installation)上的所有用户和应用程序可见。
如何使用命令提示符在(Command Prompt)Windows中隐藏(卸载)分区(Windows)
您可以使用命令提示符执行与(Command Prompt)磁盘管理(Disk Management)相同的操作。以管理员身份打开CMD,然后键入命令mountvol Letter: /D并按Enter。
将Letter替换为要隐藏或卸载的分区的实际驱动器号。(drive letter)例如,要隐藏 G: 驱动器,您应该键入:mountvol G: /D并按Enter。
如果您想了解有关mountvol命令及其工作原理的更多信息,请阅读Microsoft的此文档:mountvol。
如何使用命令提示符在(Command Prompt)Windows中取消隐藏(挂载)分区(Windows)
当您希望该分区再次可用,以供日常使用时,您需要将其取消隐藏或重新挂载。为此,请以管理员身份打开命令提示符,键入命令(Command Prompt)mountvol /?并按Enter。这将显示有关mountvol命令及其参数的所有文档。
向下滚动,直到您看到(Scroll)VolumeName参数的所有可能值的列表,以及当前的挂载点。查找带有“ NO MOUNT POINTS ”文本的条目。这些条目代表隐藏(未安装)的分区,可以再次取消隐藏(安装)。
挂载分区类型:mountvol DriveLetter: VolumeName。文本DriveLetter应替换为您要用于分区的字母:D: E: F: 等等。确保(Make)您分配的驱动器号(drive letter)是空闲的且未被其他分区占用。VolumeName应替换为以"\?Volume{"开头的文本。写出完整且正确的值。输入此命令后,按Enter 键(Enter)执行。
您不会收到任何消息,您只会看到Windows中显示的分区,所有应用程序和用户(apps and users)都可以访问。
注意:(NOTE:)此方法的一个棘手部分是,在具有许多隐藏分区的Windows 计算机(Windows computer)上工作时,您不知道要挂载以供使用的分区的卷 ID 。(Volume ID)要确定要取消隐藏的隐藏分区的 ID,您需要打开Disk Management,访问该隐藏分区的属性,然后转到Security选项卡。您可以在“对象名称(Object name)”字段中看到 ID 。
你是如何在Windows中隐藏分区的?
现在您知道了在Windows(Windows)中隐藏和取消隐藏分区的两种方法。试用它们并在评论中与我们分享您喜欢的方法。您(Did)是否使用磁盘管理(Disk Management)或命令提示符(Command Prompt)?在下面发表评论,让我们讨论。
How to hide (or unhide) any partition, in Windows (all versions)
If you work with Windows computers and devices that have multіple partitions and hard disks, you may nеed to hide a pаrticular partitiоn. Latеr, you may need to unhide it or re-enable it back, sо that it can be used again. If you need to know how to hide and unhidе partitions in Windows, read this tutorial:
NOTE: This guide works the same in Windows 10, Windows 7, and Windows 8.1. That is why, for simplicity, we use screenshots taken only in Windows 10.
How to hide (unmount) a partition in Windows, using Disk Management
First, you need to open Disk Management. We described all the way to do that, in this tutorial: 9 ways to open the Disk Management tool in Windows (all versions). One method that works well in all Windows versions is to search for "disk management" in the search box near Start (in Windows 10), in the search box from the Start Menu (in Windows 7), or on the Start screen (in Windows 8.1).
In the Disk Management window, identify the partition that you want to hide. You can see it in the list of volumes on the top, on in the graphical representation of all your disks, on the bottom.
Right-click or press and hold the partition that you want to hide (or dismount). In the right-click menu, choose "Change Drive Letter and Paths."
In the "Change Drive Letter and Paths" window, click or tap the Remove button.
You are asked to confirm that you want to remove the drive letter. Press Yes.
You are warned that the drive is in use. Close any apps and files that you have opened, especially those that are stored on the drive that you are hiding. Then, press Yes.
The partition is now hidden (dismounted) and it is no longer accessible in File Explorer of Windows Explorer. Windows remembers the setting you just made, at each login and the partition is no longer available to apps and users unless you choose to unhide it or mount it. You can close Disk Management and resume your work.
How to unhide (mount) a partition in Windows, using Disk Management
When you want the partition available again, you need to unhide it or mount it again. To do that, open the Disk Management tool. In the list of volumes from the top, or in that of disks on the bottom, find the hidden partition and right-click on it. On a screen with touch, press and hold on it. In the menu that is shown, choose "Change Drive Letter and Paths."
In the window that opens, press the Add button.
The "Add Drive Letter or Path" window opens. Here, choose the drive letter that you want to assign, in the dropdown list on the right. Then, click or tap OK.
The partition is now mounted and visible to all users and apps on your Windows installation.
How to hide (unmount) a partition in Windows, using the Command Prompt
You can do the same things you did with Disk Management, using the Command Prompt. Open CMD as administrator, and type the command mountvol Letter: /D and press Enter.
Replace Letter with the actual drive letter of the partition that you want to hide or dismount. For example, to hide the G: drive, you should type: mountvol G: /D and press Enter.
If you would like to know more about the mountvol command and how it works, read this documentation from Microsoft: mountvol.
How to unhide (mount) a partition in Windows, using the Command Prompt
When you want the partition available again, for daily use, you need to unhide it or mount it again. To do that, open the Command Prompt as administrator, type the command mountvol /? and press Enter. This displays all the documentation about the mountvol command and its parameters.
Scroll down until you see a list of all the possible values for the VolumeName parameter, along with the current mount points. Look for the entries with the text "NO MOUNT POINTS." Those entries represent hidden (unmounted) partitions, which can be unhidden (mounted) again.
To mount a partition type: mountvol DriveLetter: VolumeName. The text DriveLetter should be replaced with the letter that you want to use for the partition: D: E: F: and so on. Make sure that you assign a drive letter that is free and not taken by other partitions. VolumeName should be replaced by the text which starts with "\?Volume{". Write the complete and correct value. After typing this command, press Enter to execute it.
You do not receive any messages you just see the partition displayed in Windows, accessible to all apps and users.
NOTE: One tricky part about this method is that, when working on a Windows computer with many hidden partitions, you do not know the Volume ID of the partition that you want to mount for use. To identify the ID of the hidden partition that you want to unhide, you need to open Disk Management, access the properties of that hidden partition, and go to the Security tab. There you see the ID in the Object name field.
How did you hide partitions in Windows?
Now you know two ways of hiding and unhiding partitions in Windows. Try them out and share with us in a comment the method that you prefer. Did you use Disk Management or the Command Prompt? Comment below and let's discuss.