如何复制 WINPE 设置。DISM 中的目录更改错误

如何复制 WINPE 设置。DISM 中的目录更改错误

我正在尝试将修改后的 WINPE USB 闪存驱动器复制到 ISO。以下是我目前采取的步骤:

  1. 安装 USB 驱动器,从中复制所有文件,然后卸载驱动器
  2. 使用 copype 在 C:\ 上创建新的 amd64 WINPE 基础
  3. 安装新的 amd64 WinPE 基础
  4. 将 USB 文件复制到安装基座
  5. 卸下底座
  6. 创建 iso。

但是在步骤 4 中,将 USB 文件复制到安装基座会导致以下错误:

C:\> dism /Unmount-Image /MountDir:"C:\WinPE_ISO_Mount" /commit

Deployment Image Servicing and Management tool
Version: 10.0.18362.1


Error: 0xc142011e

The mount directory of the specified image has changed.  All the files in this image will be extracted, and this image cannot be commited.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

我找不到任何关于该错误的文档,但经过测试,我发现如果我手动进行更改,卸载将会成功。查看 DISM 日志后,您可以阅读这里我发现了以下几行:

[19704] ImageUnmarshallHandle: Reconstituting wim at E:\sources\boot.wim.
[19704] [0x80070002] FIOReadFileIntoBuffer:(1381): The system cannot find the file specified.
[19704] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
[19704] ImageUnmarshallHandle: Reconstituting wim at E:\sources\boot.wim.
[19704] [0x80070002] FIOOpenStreamById:(1312): The system cannot find the file specified.
[19704] [0xc142011e] ImageRebuildFromImageHandle:(1745)
[19704] [0xc142011e] WIMCommitImageHandle:(1382)

似乎通过从 USB 驱动器复制文件,它现在认为它属于 USB 驱动器。是否有人知道哪个文件告诉 DISM 路径从哪里挂载,所以我不能将它们包含在副本中?

这与以下问题不同:从命令提示符创建可启动 ISO 文件正如在那个问题中我谈论的是创建可启动 iso 和不可启动 iso 时的错误。这里我谈论的是 DISM 的错误。

相关内容