Skip to content Skip to footer

隐藏 Windows 10 恢复分区的方法

浏览量: 798

我的电脑本身只有一个C盘。在前几天升级 Windows 10 RS4 之后,多出来一个D盘,是 Windows 的恢复工具所在的分区,带来一些困扰:

看着很不舒服。

重点是这个分区容量只有450MB,保存着415MB的恢复工具,剩余空间很少,所以Windows会经常提醒我硬盘剩余空间不足。

使用Windows的图形化磁盘管理工具不能隐藏该分区,因为它是系统关键分区。

所以接下来就试着解决此问题:

方法1(临时有效,不推荐)

只需运行 diskpart工具,remove letter=D 即可删掉D盘。但这个方法在重启后D盘还是会重新出现,所以不推荐。因为该问题是由于分区的隐藏属性丢失导致的,所以每次启动,Windows都会找到这个新的分区,并为其分配盘符供用户使用。

方法2(永久有效,推荐)

运行diskpart工具

选择磁盘:sel dis 0

列出磁盘上所有分区:list par

选择要设置的分区,在我电脑上是1号分区:sel par 1

查看分区详细信息:detail partition

可以看到该分区的“不分配盘符”这个属性丢失了,才导致它总是被系统显示出来:

DISKPART> detail partition

Partition 1

Type : de94bba4-06d1-4d40-a16a-bfd50179d6ac

Hidden : No

Required: Yes

Attrib : 0X0000000000000001

Offset in Bytes: 1048576

Volume ### Ltr Label Fs Type Size Status Info

---------- --- ----------- ----- ---------- ------- --------- --------

* Volume 3 D 恢复工具 NTFS Partition 450 MB Healthy Hidden

GPT分区的属性值可以运行 help gpt attributes 查看介绍。

运行属性设置命令将其属性设置为正确的值(为了保险起见,我增加了“不显示盘符”和“隐藏”这两个属性):gpt attributes=0xC000000000000001

DISKPART> GPT ATTRIBUTES=0xC000000000000001

DiskPart successfully assigned the attributes to the selected GPT partition.

再次查看该分区的属性值:

DISKPART> detail partition

Partition 1

Type : de94bba4-06d1-4d40-a16a-bfd50179d6ac

Hidden : Yes

Required: Yes

Attrib : 0XC000000000000001

Offset in Bytes: 1048576

Volume ### Ltr Label Fs Type Size Status Info

---------- --- ----------- ----- ---------- ------- --------- --------

* Volume 3 恢复工具 NTFS Partition 450 MB Healthy Hidden

重启Windows,该分区就不会再被显示出来了。

Copyright © 2088 U20世界杯_u20世界杯葡萄牙 - kwllb.com All Rights Reserved.
友情链接