简体   繁体   English

如何防止磁盘分区显示在Windows资源管理器中?

[英]How do I prevent a disk partition from being shown in Windows Explorer?

Assuming I have a 100GB drive and I want to put reinstallation software using 1GB. 假设我有一个100GB的驱动器,并且我想使用1GB的空间安装重新安装软件。 I would like that 1GB to he hidden - not from users but from the OS. 我想给他隐藏1GB内存-不是从用户而是从操作系统。 Assuming Windows XP and later. 假设使用Windows XP及更高版本。 Is there a series of API calls I can use to do that? 我可以使用一系列API调用来做到这一点吗? What other techniques are there to 'hide' a portion of a hard drive? 还有什么其他技术可以“隐藏”硬盘的一部分?

Simply assign the hidden flag to that partition. 只需将隐藏标志分配给该分区。 gparted does that quite well. gparted做得很好。

Alternately change its type to compaq diag. 或者将其类型更改为compaq diag。

If it is GPT style disk, you can change GPT type GUID to OEM GUID. 如果是GPT样式磁盘,则可以将GPT类型GUID更改为OEM GUID。 That will make that partition hidden from all the disk tools (Explorer, Disk Mgr etc). 这将使该分区对所有磁盘工具(Explorer,Disk Mgr等)隐藏。

From the first google search for "hide a drive in Windows" 从第一个谷歌搜索“在Windows中隐藏驱动器”

How to hide a drive in Windows XP: 如何在Windows XP中隐藏驱动器:

  1. Click Start -> Run type regedit in the box and click OK 单击开始->运行,在框中键入regedit,然后单击确定。
  2. Navigate to: 导航:

      HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\ Explorer 
  3. From the menu, navigate to Edit -> New -> DWORD Value 从菜单中,导航至“编辑”->“新建”->“ DWORD值”

  4. Name the New Value NoDrives 命名新值NoDrives
  5. Next, Right click NoDrives and select Modify, now check the Decimal option and under Value Data enter a decimal value for the drive you would like to hide. 接下来,右键单击NoDrives并选择Modify,现在选中Decimal选项,然后在Value Data下输入要隐藏的驱动器的十进制值。 For example to hide C you would enter 4. See the list below for more values: * A=1 * B=2 * C=4 * D=8 * E=16 * F=32 * G=64 * H=128 * I=256 例如,要隐藏C,您将输入4。有关更多值,请参见下面的列表:* A = 1 * B = 2 * C = 4 * D = 8 * E = 16 * F = 32 * G = 64 * H = 128 *我= 256

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM