slorelee / wimbuilder2

wimbuilder with new UI & new syntax (hta+bat+vbs+js)
470 stars 105 forks source link

不能用DISM挂载制作好的Boot.wim #58

Closed mashiro-mikage closed 2 years ago

mashiro-mikage commented 3 years ago

用wimbuilder2 构建了一个日文版的Boot.wim,制作完了之后发现开始菜单里的有乱码的快捷,想修改它。用DISM挂载Boot.wim的时候,DISM出错说不支持要求。用wimbuilder2 制作后是不是不能用DISM挂载?

slorelee commented 3 years ago

用wimbuilder2 制作后是不是不能用DISM挂载?

简单的修改配置或者替换文件用7z就可以。使用dism命令挂载修改也没有问题的。 你可以准备页面,boot.wim选择你制作的好的成品boot,wim,然后选项全部去掉, 会进行挂载提交,应该是正常的。

自己挂载失败的话,最好把你使用的完整命令,程序输出的错误信息直接写出来, 可能是命令打错,或者路径不对,cmd命令提示符权限不正确等原因。需要看到具体命令和dism的错误信息来判断。

mashiro-mikage commented 3 years ago

命令如下 dism /mount-image /imagefile:"D:\test\PE\Base\sources\boot.wim" /index:1 /mountdir:"d:\test\PE\mountdir"

DISM显示是

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Mounting image
[                           1.0%                           ]

Error: 50

The request is not supported.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
C:\WINDOWS\Logs\DISM\dism.log ``` 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect 2021-09-14 02:37:41, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2021-09-14 02:37:41, Info DISM DISM Manager: PID=6268 TID=4388 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession 2021-09-14 02:37:41, Info DISM DISM.EXE: 2021-09-14 02:37:41, Info DISM DISM.EXE: <----- Starting Dism.exe session -----> 2021-09-14 02:37:41, Info DISM DISM.EXE: 2021-09-14 02:37:41, Info DISM DISM.EXE: Host machine information: OS Version=10.0.19043, Running architecture=amd64, Number of processors=8 2021-09-14 02:37:41, Info DISM DISM.EXE: Dism.exe version: 10.0.19041.844 2021-09-14 02:37:41, Info DISM DISM.EXE: Executing command line: dism /mount-image /imagefile:"D:\test\PE\Base\sources\boot.wim" /index:1 /mountdir:"d:\test\PE\mountdir" 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Connecting to the provider located at C:\WINDOWS\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2021-09-14 02:37:41, Warning DISM DISM Provider Store: PID=6268 TID=4388 Failed to load the provider: C:\WINDOWS\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Connecting to the provider located at C:\WINDOWS\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Connecting to the provider located at C:\WINDOWS\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Connecting to the provider located at C:\WINDOWS\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2021-09-14 02:37:41, Info DISM DISM Provider Store: PID=6268 TID=4388 Connecting to the provider located at C:\WINDOWS\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2021-09-14 02:37:41, Warning DISM DISM Provider Store: PID=6268 TID=4388 Failed to load the provider: C:\WINDOWS\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2021-09-14 02:37:41, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table. 2021-09-14 02:37:41, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider 2021-09-14 02:37:41, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager 2021-09-14 02:37:41, Info DISM DISM.EXE: Attempting to add the commands from provider: FfuManager 2021-09-14 02:37:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: FfuManager. 2021-09-14 02:37:41, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager 2021-09-14 02:37:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager. 2021-09-14 02:37:41, Info DISM DISM.EXE: Attempting to add the commands from provider: VHDManager 2021-09-14 02:37:41, Info DISM DISM.EXE: Attempting to add the commands from provider: GenericImagingManager 2021-09-14 02:37:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager. 2021-09-14 02:37:41, Info DISM DISM Imaging Provider: PID=6268 TID=4388 WIM image specified - CGenericImagingManager::GetImageInfoCollection [6268] Mounting new image. Wim: [D:\test\PE\Base\sources\boot.wim] Image Index: [1] Mount Path: [d:\test\PE\mountdir] [6268] [0x80070032] EnableShortnamesOnApplyTarget:(545): The request is not supported. [6268] [0x80070032] WIMSetFileShortName:(615): The request is not supported. [6268] [0xd00000bb] WimImageSetInformationFile:(2366) [6268] [0xc144012e] 2021-09-14 02:37:42, Error DISM DISM WIM Provider: PID=6268 [RestoreHardlink:(556) -> setting hardlink failed] d:\test\PE\mountdir\Windows\System32\kdnet_uart16550.dll (HRESULT=0x80070032) - CWimManager::WimProviderMsgLogCallback [6268] [0xd00000bb] RestoreHardlinks:(735) [6268] [0xd00000bb] RestoreFileMetadata:(192) [6268] [0xc144012e] 2021-09-14 02:37:42, Error DISM DISM WIM Provider: PID=6268 [RestoreFileMetadata:(196) -> RestoreFileMetadata: RestoreHardlinks failed] d:\test\PE\mountdir\Windows\System32\kdnet_uart16550.dll (HRESULT=0x80070032) - CWimManager::WimProviderMsgLogCallback [6268] [0xd00000bb] RestoreRefNode:(1723) [6268] [0xc144012e] 2021-09-14 02:37:42, Error DISM DISM WIM Provider: PID=6268 d:\test\PE\mountdir\Windows\System32\kdnet_uart16550.dll (HRESULT=0x80070032) - CWimManager::WimProviderMsgLogCallback [6268] [0xd00000bb] RestoreRefNodeCallback:(1885) [6268] [0xd00000bb] ProcessWimQueueNode:(98) [6268] [0xd00000bb] DequeueWimData:(304) [6268] [0xd00000bb] ImageWorkerThread:(250) [6268] [0xd00000bb] GetImageErrorCode:(2837) [6268] [0xd00000bb] GetImageErrorCode:(2837) [6268] [0xd00000bb] ImageWorkerThread:(198) [6268] [0xd00000bb] RestoreFileNodeList:(2051) [6268] [0xd00000bb] RestoreFilesCallback:(3970) [6268] [0xd00000bb] EnumImageDataEntries:(1053) [6268] [0xd00000bb] RestoreAllData:(1103) [6268] [0xd00000bb] WIMApplyImageInternal:(777) [6268] [0x80070032] ImageStubMountDirectory:(985): The request is not supported. [6268] [0x80070032] WIMMountImageHandle:(1284): The request is not supported. [6268] [0x80004005] DeleteAndRestoreDirectory:(335): Unspecified error [6268] [0xc1420117] DeleteAndRestoreDirectory:(336) [6268] [0xc1420117] RestoreMountDirectory:(404) [6268] [0xc1420117] WIMMountImageHandle:(1337) 2021-09-14 02:37:50, Error DISM DISM WIM Provider: PID=6268 TID=4388 "Failed to mount the image." - CWimImageInfo::Mount(hr:0x80070032) 2021-09-14 02:37:51, Error DISM DISM Imaging Provider: PID=6268 TID=4388 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:832 - CGenericImagingManager::InternalOpMount(hr:0x80070032) 2021-09-14 02:37:51, Error DISM DISM Imaging Provider: PID=6268 TID=4388 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:745 - CGenericImagingManager::InternalCmdMount(hr:0x80070032) 2021-09-14 02:37:51, Error DISM DISM Imaging Provider: PID=6268 TID=4388 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070032) 2021-09-14 02:37:51, Info DISM DISM.EXE: Image session has been closed. Reboot required=no. 2021-09-14 02:37:51, Info DISM DISM.EXE: 2021-09-14 02:37:51, Info DISM DISM.EXE: <----- Ending Dism.exe session -----> 2021-09-14 02:37:51, Info DISM DISM.EXE: 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Disconnecting Provider: FfuManager - CDISMProviderStore::Internal_DisconnectProvider 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Disconnecting Provider: VHDManager - CDISMProviderStore::Internal_DisconnectProvider 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Disconnecting Provider: GenericImagingManager - CDISMProviderStore::Internal_DisconnectProvider 2021-09-14 02:37:51, Info DISM DISM Provider Store: PID=6268 TID=4388 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider ```
slorelee commented 2 years ago

看着命令没错。你试试能不能直接挂载boot.wim或者winre.wim?

你用的ISO版本号发一下。看能不能重现。看日志是你的dism处理硬链接文件失败了。

选择默认预设构建试试,不要精简。或者更换下中文的ISO源。先找下是所有的都不行,还是和镜像及选项有关系。

mashiro-mikage commented 2 years ago

谢谢回答,我找到原因了。 忘记了D盘是用ReFS格式化的。在ReFS里好像不能用DISM来挂载。 把D盘重新格式化为NTFS后挂载没问题了。