zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Recovery分区阻挡了扩展卷

扩展 分区 Recovery 阻挡
2023-06-13 09:15:03 时间

Recovery分区阻挡了扩展卷

这种场景有很多帖子,Google去搜关键词:

Extend Volume Blocked by a Recovery Partition

那些帖子大多繁琐(是把recovery分区改造到C分区后再删掉recovery分区然后再扩展),最简单快捷的就是删除recovery分区然后extend(纯命令行用diskpart extend扩展卷可参考https://www.disktool.cn/jiaocheng/extend-c-drive.html

如果不想缺失recovery功能,大致的改造思路是这样:

禁用recovery

给recovery分区搞个盘符

把里面的全部目录和文件原封不动复制到C盘下(说白了就是换个根目录)

然后启用recovery

然后删除recovery分区

然后即可给C盘扩展卷

如果是在云上,要正常使用recovery模式,还得给recovery的winre.wim集成虚拟化驱动,可参考https://cloud.tencent.com/developer/article/1998997

reagentc /disable

md c:\Recovery\WinRE

xcopy e:\Recovery\WindowsRE\Winre.wim c:\Recovery\WinRE /h

reagentc /setreimage /path c:\Recovery\WinRE /target C:\Windows

reagentc /enable