大多数Windows用户都关心他们的私人数据。我们打算使用加密软件或使用Windows内置加密工具隐藏或锁定文件夹或文件,以保护我们的机密数据。但是,当您有许多需要加密或隐藏的文件或文件夹时,加密每个文件或文件夹并不是一个好主意,相反,您可以做的是将所有机密数据转移到特定驱动器(分区) 然后完全隐藏该驱动器以保护您的私人数据。
隐藏特定驱动器后,任何人都看不到它,因此除了您之外,没有人可以访问该驱动器。但是在隐藏驱动器以确保它不包含除您的私人数据之外的任何其他文件或文件夹之前,您希望被隐藏。磁盘驱动器将从文件资源管理器(File Explorer)中隐藏,但您仍然可以使用文件资源管理(File Explorer)器中的命令提示符或地址栏访问该驱动器。
但是使用这种方法隐藏驱动器并不会阻止用户访问磁盘管理来查看或更改驱动器特性。其他用户仍然可以使用专门为此目的制作的第 3 方程序访问您的隐藏驱动器。无论如何(Anyway),不要浪费任何时间,让我们在下面列出的教程的帮助下看看如何在Windows 10中隐藏(Windows 10)驱动器。(Drive)
如何在 Windows 10 中隐藏驱动器
确保 创建一个还原点(create a restore point) 以防万一出现问题。
方法 1:如何使用磁盘管理在 Windows 10 中隐藏驱动器(Method 1: How to Hide a Drive in Windows 10 using Disk Management)
1. 按 Windows 键 + R 然后键入diskmgmt.msc并按 Enter 打开磁盘管理。(Disk Management.)
2.右键单击要隐藏的驱动器,然后选择“(drive)更改驱动器号和路径(Change Drive Letters and Paths)”。
3. 现在选择驱动器号,然后单击删除按钮。(Remove button.)
4. 如果要求确认,请选择是继续。(Yes to continue.)
5. 现在再次右键单击上面的驱动器,然后选择“更改驱动器号和路径(Change Drive Letters and Paths)”。
6. 选择驱动器,然后单击添加按钮。( Add button.)
7. 接下来,选择“安装在以下空 NTFS 文件夹中(Mount in the following empty NTFS folder)”选项,然后单击浏览( Browse)按钮。
8. 导航到要隐藏驱动器的位置,例如C:\Program File\Drive ,然后单击确定。
注意:(Note:) 确保(Make)该文件夹位于您在上面指定的位置,或者您可以单击“新建文件夹”(New Folder)按钮从对话框本身创建文件夹。
9. 按Windows Key + E打开文件资源管理器(File Explorer),然后导航到上面安装驱动器的位置。(navigate to the above location where you have mounted the drive.)
10. 现在右键单击(right-click)挂载点(mount point)(在本例中为Drive文件夹),然后选择Properties。
11. 确保选择常规(General)选项卡,然后在属性(Attributes)复选标记“隐藏(Hidden)”下。
12. 单击应用,然后勾选“仅将更改应用到此文件夹(Apply changes to this folder only)”,然后单击确定。
13. 正确执行上述步骤后,驱动器将不再显示。
注意:(Note:)确保选中“文件夹选项”下的“(Folder Options)不显示隐藏文件、文件夹或驱动器(Don’t Show hidden files, folders, or drives)”选项。
使用磁盘管理取消隐藏驱动器(Unhide the drive using Disk Management)
1. 按 Windows 键 + R 然后键入diskmgmt.msc并按 Enter 打开磁盘管理。(Disk Management.)
2.右键单击您隐藏的驱动器(drive),然后选择“更改驱动器号和路径(Change Drive Letters and Paths)”。
3. 现在选择驱动器号,然后单击删除按钮。( the Remove button.)
4. 如果要求确认,请选择是(Yes)继续。
5. 现在再次右键单击上面的驱动器,然后选择“更改驱动器号和路径(Change Drive Letters and Paths)”。
6. 选择驱动器,然后单击添加按钮。( Add button.)
7.接下来,选择“分配以下驱动器(Assign the following drive letter)号”选项,选择一个新的驱动器号,然后单击“确定”。(OK.)
8. 单击应用,然后单击确定。(OK.)
方法 2:如何通过删除驱动器号在 Windows 10 中隐藏驱动器(Method 2: How to Hide a Drive in Windows 10 by removing the drive letter)
如果您使用此方法,您将无法访问驱动器,直到您撤消下面列出的步骤。
1. 按 Windows 键 + R 然后键入diskmgmt.msc并按 Enter 打开磁盘管理。(Disk Management.)
2.右键单击要隐藏的驱动器,然后选择“(drive)更改驱动器号和路径(Change Drive Letters and Paths)”。
3. 现在选择驱动器号,然后单击删除按钮。(Remove button.)
4. 如果要求确认,请选择是继续。(Yes to continue.)
这将成功地向所有用户隐藏驱动器,包括您,要取消隐藏驱动器,您需要按照以下步骤操作:
1.再次(Again)打开磁盘管理(Disk Management),然后右键单击您隐藏的驱动器并选择“更改驱动器号和路径(Change Drive Letters and Paths)”。
2. 选择驱动器,然后单击添加按钮。( Add button.)
3.接下来,选择“分配以下驱动器(Assign the following drive letter)号”选项,选择 一个新的驱动器( a new drive letter)号,然后单击“确定”。
4. 单击应用,然后单击确定。(OK.)
方法 3:如何使用注册表编辑器在 Windows 10 中隐藏驱动器(Method 3: How to Hide a Drive in Windows 10 using Registry Editor)
1. 按 Windows 键 + R 然后键入regedit并按 Enter 打开注册表编辑器。(Registry Editor.)
2. 导航到以下注册表(Registry)项:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
3. 右键单击资源管理器(Explorer),然后选择新建(New)并单击DWORD(32 位)值。( DWORD (32-bit) Value.)
4. 将此新创建的DWORD命名为NoDrives,然后按 Enter。
5. 现在双击NoDrives DWORD以根据以下内容更改其值:
只需确保选择十进制(Decimal),然后使用下表中的任何值低估数据。
Drive Letter |
Decimal Value Data |
Show all drives |
0 |
A |
1 |
B |
2 |
C |
4 |
D |
8 |
E |
16 |
F |
32 |
G |
64 |
H |
128 |
I |
256 |
J |
512 |
K |
1024 |
L |
2048 |
M |
4096 |
N |
8192 |
O |
16384 |
P |
32768 |
Q |
65536 |
R |
131072 |
S |
262144 |
T |
524288 |
U |
1048576 |
V |
2097152 |
W |
4194304 |
X |
8388608 |
Y |
16777216 |
Z |
33554432 |
Hide all drives |
67108863 |
6. 您可以隐藏单个驱动器或驱动器组合(single drive or combination of drives),隐藏单个驱动器(前驱动器 F)在 NoDrives 的值数据字段下输入 32(enter 32 under value data field of NoDrives)(确保在Base下选择(Base)Decimal(Decima) l )单击 OK。要隐藏驱动器组合(前驱动器 D 和 F),您需要添加驱动器的十进制数字 (8+32),这意味着您需要在值数据字段下输入 24。
7. 单击确定(OK),然后关闭注册表编辑器。
8. 重新启动您的 PC 以保存更改。
重新启动后,您将无法再看到您隐藏的驱动器,但您仍然可以使用文件资源管理器(File Explorer)中的指定路径访问它。要取消隐藏驱动器,请右键单击NoDrives DWORD并选择Delete。
方法 4:如何使用组策略编辑器在 Windows 10 中隐藏驱动器(Method 4: How to Hide a Drive in Windows 10 using Group Policy Editor)
注意:(Note:)此方法不适用于Windows 10 家庭(Home)版用户,因为它仅适用于Windows 10 专业版(Pro)、教育(Education)版和企业(Enterprise)版用户。
1. 按 Windows 键 + R 然后键入gpedit.msc并按 Enter。
2. 导航到以下路径:
User Configuration > Administrative Templates > Windows Components > File Explorer
3.确保选择文件资源管理器(File Explorer)而不是在右侧窗口中双击“在我的电脑中隐藏这些指定的驱动器(Hide these specified drives in My Computer)”策略。
4. 选择启用(Enabled),然后在选项下,选择所需的驱动器组合或从下拉菜单中选择限制所有驱动选项。(Restrict)
5. 单击应用,然后单击确定。(OK.)
6. 重新启动您的 PC 以保存更改。
使用上述方法只会从文件资源管理器(File Explorer)中删除驱动器图标,您仍然可以使用文件资源管理器(File Explorer)的地址栏访问驱动器。此外,无法在上述列表中添加更多驱动器组合。要取消隐藏驱动器,请为“在我的电脑(My Computer)中隐藏这些指定的驱动器”策略选择未配置。(Configured)
方法 5:如何使用命令提示符在 Windows 10 中隐藏驱动器(Method 5: How to Hide a Drive in Windows 10 using Command Prompt)
1.打开命令提示符(Command Prompt)。用户可以通过搜索“cmd”然后按 Enter 来执行此步骤。
2.一一键入以下命令,然后在每个命令后按Enter:
diskpart
list volume(记下要为其隐藏驱动器的卷号)
select volume #(将#替换为您上面记下的数字)
删除字母drive_letter(remove letter drive_letter)(将(Replace)drive_letter替换为您想要的实际驱动器号使用例如:删除字母 H)
3. 按 Enter 后,您将看到消息“ Diskpart 成功删除了驱动器号或挂载点(Diskpart successfully removed the drive letter or mount point)”。这将成功隐藏您的驱动器,如果您想取消隐藏驱动器,请使用以下命令:
diskpart
list volume(记下要取消隐藏驱动器的卷号)
select volume #(将#替换为您上面记下的数字)
分配字母drive_letter(assign letter drive_letter)(将(Replace)drive_letter替换为您想要的实际驱动器号使用例如分配字母 H)
受到推崇的:(Recommended:)
就是这样,您已经成功学习了如何在 Windows 10 中隐藏驱动器,(How to Hide a Drive in Windows 10)但如果您对本教程仍有任何疑问,请随时在评论部分提出。
How to Hide a Drive in Windows 10
Most of the Windows userѕ are concerned about their private data. We intend to either hide or lock the folder or file υsing encryption software or using Windows inbυilt encryption tools to protеct oυr confidential data. But when you have many files or folders which needs to be encrypted or hidden then it’s not a good idea to encrypt each & every file or folder, instead what you can do is that you can shift all your confidential data to a partiсular drive (partition) then hide that drive altоgether to protect your private data.
Once you hide the particular drive, it will not be visible to anyone, and hence no one will be able to access the drive, except you. But before making the drive hidden to make sure it doesn’t contain any other files or folders except your private data, you want to be hidden. The disk drive would be hidden from File Explorer, but you will still be able to access the drive using the command prompt or address bar in the File Explorer.
But using this method to hide drive doesn’t prevent users from accessing disk management to view or change the drive characteristics. Other users can still access your hidden drive using 3rd party programs specifically made for this purpose. Anyway, without wasting any time, let’s see How to Hide a Drive in Windows 10 with the help of the below-listed tutorial.
How to Hide a Drive in Windows 10
Make sure to create a restore point just in case something goes wrong.
Method 1: How to Hide a Drive in Windows 10 using Disk Management
1. Press Windows Key + R then type diskmgmt.msc and hit Enter to open Disk Management.
2. Right-click on the drive you want to hide then select “Change Drive Letters and Paths“.
3. Now select the drive letter then click on the Remove button.
4. If asked for confirmation, select Yes to continue.
5. Now again right-click on the above drive then select “Change Drive Letters and Paths“.
6. Select the drive, then click the Add button.
7. Next, select “Mount in the following empty NTFS folder” option then click Browse button.
8. Navigate to the location where you want to hide your drive, for example, C:\Program File\Drive then click OK.
Note: Make sure the folder is present in the location you specified above or you can click on the New Folder button to create the folder from the dialog box itself.
9. Press Windows Key + E to open File Explorer then navigate to the above location where you have mounted the drive.
10. Now right-click on the mount point (which will be the Drive folder in this example) then select Properties.
11. Make sure to select General tab then under Attributes checkmark “Hidden“.
12. Click Apply then checkmark “Apply changes to this folder only” and click OK.
13. Once you have followed the above steps properly, then the drive will no longer be shown.
Note: Make sure “Don’t Show hidden files, folders, or drives” option is checked under Folder Options.
Unhide the drive using Disk Management
1. Press Windows Key + R then type diskmgmt.msc and hit Enter to open Disk Management.
2. Right-click on the drive you have hidden then select “Change Drive Letters and Paths“.
3. Now select the drive letter then click on the Remove button.
4. If asked for confirmation, select Yes to continue.
5. Now again right-click on the above drive then select “Change Drive Letters and Paths“.
6. Select the drive, then click the Add button.
7. Next, select “Assign the following drive letter” option, select a new drive letter and click OK.
8. Click Apply, followed by OK.
Method 2: How to Hide a Drive in Windows 10 by removing the drive letter
If you use this method, you won’t be able to access the drive until you undo the below-listed steps.
1. Press Windows Key + R then type diskmgmt.msc and hit Enter to open Disk Management.
2. Right-click on the drive you want to hide then select “Change Drive Letters and Paths“.
3. Now select the drive letter then click on the Remove button.
4. If asked for confirmation, select Yes to continue.
This will successfully hide the drive from all users, including you, to unhide the drive you need to follow these steps:
1. Again open Disk Management then right-click on the drive you have hidden and select “Change Drive Letters and Paths“.
2. Select the drive, then click the Add button.
3. Next, select “Assign the following drive letter” option, select a new drive letter and click OK.
4. Click Apply, followed by OK.
Method 3: How to Hide a Drive in Windows 10 using Registry Editor
1. Press Windows Key + R then type regedit and hit Enter to open Registry Editor.
2. Navigate to the following Registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
3. Right-click on Explorer then select New and click on DWORD (32-bit) Value.
4. Name this newly created DWORD as NoDrives and hit Enter.
5. Now double-click on NoDrives DWORD to change its value according to:
Just make sure to select Decimal then undervalue data using any value from the below-listed table.
Drive Letter |
Decimal Value Data |
Show all drives |
0 |
A |
1 |
B |
2 |
C |
4 |
D |
8 |
E |
16 |
F |
32 |
G |
64 |
H |
128 |
I |
256 |
J |
512 |
K |
1024 |
L |
2048 |
M |
4096 |
N |
8192 |
O |
16384 |
P |
32768 |
Q |
65536 |
R |
131072 |
S |
262144 |
T |
524288 |
U |
1048576 |
V |
2097152 |
W |
4194304 |
X |
8388608 |
Y |
16777216 |
Z |
33554432 |
Hide all drives |
67108863 |
6. You can either hide a single drive or combination of drives, to hide a single drive (ex-drive F) enter 32 under value data field of NoDrives (make sure that Decimal is selected under Base) click OK. To hide a combination of drives (ex-drive D & F) you need to add the decimal numbers for the drive (8+32) which means you need to enter 24 under the value data field.
7. Click OK then close the Registry Editor.
8. Reboot your PC to save changes.
After the reboot, you will no longer be able to see the drive which you have hidden, but you would still be able to access it by using the specified path in the File Explorer. To unhide the drive right-click on the NoDrives DWORD and select Delete.
Method 4: How to Hide a Drive in Windows 10 using Group Policy Editor
Note: This method won’t work for Windows 10 Home edition users as it will only for Windows 10 Pro, Education, and Enterprise edition users.
1. Press Windows Key + R then type gpedit.msc and hit Enter.
2. Navigate to the following path:
User Configuration > Administrative Templates > Windows Components > File Explorer
3. Make sure to select File Explorer than in right window double-click on “Hide these specified drives in My Computer” policy.
4. Select Enabled then under Options, select the drive combinations you want or select the Restrict all-driving option from the drop-down menu.
5. Click Apply, followed by OK.
6. Restart your PC to save changes.
Using the above method will only remove the drive icon from File Explorer, you would still be able to access the drive using the File Explorer’s address bar. Also, there is no way to add more drive combination to the above list. To unhide the drive select Not Configured for the “Hide these specified drives in My Computer” policy.
Method 5: How to Hide a Drive in Windows 10 using Command Prompt
1. Open Command Prompt. The user can perform this step by searching for ‘cmd’ and then press Enter.
2. Type the following command one by one and hit Enter after each:
diskpart
list volume (Note down the number of the volume for which you want to hide the drive for)
select volume # (Replace the # with the number which you noted above)
remove letter drive_letter (Replace drive_letter with actual drive letter which you want to use for example: remove letter H)
3. Once you hit Enter, you will see the message “Diskpart successfully removed the drive letter or mount point“. This will successfully hide your drive, and in case, you want to unhide the drive use the following commands:
diskpart
list volume (Note down the number of the volume for which you want to unhide the drive for)
select volume # (Replace the # with the number which you noted above)
assign letter drive_letter (Replace drive_letter with actual drive letter which you want to use for example assign letter H)
Recommended:
That’s it you have successfully learned How to Hide a Drive in Windows 10 but if you still have any questions regarding this tutorial then feel free to ask them in the comment’s section.