Salta al contenuto principale

Got into trouble with DISM GU|

Thread needs solution

I was trying to edit "startnet" when I ran into permissive problems when trying to save the file.  I now have a problem running DISM GUI, and it gives the following message, and won't mount the wim file.:

 

Command line that ran is dism.exe /Mount-WIM /WimFile:"E:\sources\boot.wim" /index:1 /MountDir:"C:\Mount"

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Error: 0xc1420127

The specified image in the specified wim is already mounted for read/write access.

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

 

 

0 Users found this helpful

That happens from time to time with Windows ADK and DISM commands.  Sometimes it happens if you're accessing a file in the mount (or it's still copied) and go to unmount, but the file is in use.  Other times, if you don't close out the DISM command session cleanly it can happen.  Othertimes, it just happens.

This should help

https://www.msigeek.com/2635/unmount-and-clean-up-a-wim-image-using-dep…

Cleaning up all Mounted Wim Images

This operation will search for all the stale or corrupted files in your machine and clean it up! – (from an elevated command prompt, run the following command)

dism /cleanup-wim

The /Cleanup-Wim command is only used if there is any issue with the mount points, that means when any of the mounted images are shown as in the “Invalid” state.  You can run the cleanup command to delete these abandoned resources at the corrupted mount points.  There is no need to run the cleanup command every time when you are done with servicing the mounted images, but only when you run the /get-mountedwiminfo command and found that there are some mounted images showing the “Invalid” status. (as shown in the first screenshot in this article)

Thank you so much, the cleanup command seemed to work.

Unfortunately the net use command inserted in the startnet command didn't seem to work.  I see a big Acronis MVP logo, so I know it's booting off the usb stick but I can't find the dos screen that showed me the progress of the command file.  It was handy to see what's going on.  I don't see a path to my NAS so I'm pretty sure it's not configured correctly.

Correct, remember in the other post, if you're using the Acronis MVP builder, don't put the command in startnet.cmd

The MVP builder is using a winpeshl.ini which is a more intuitive startup method for the other embedded tools if you're using the advanced MVP builder.  Instead of putting your command in start.net..

1) put it in goodies.bat (that would be my recommendation)

or

2) edit winpeshl.ini and put it between

[LaunchApps]
wpeinit.exe
"X:\Windows\System32\goodies.bat"
your regular startnet command would go here  (anywhere before launchbar is fine, but here is ideal)
"X:\Program Files\LaunchBar\LaunchBar.exe" X:\Program Files\LaunchBar\LaunchBar.txt

Just to clarify, goodies.bat and winpeinshl.ini can both be edited with notepad and live in the MVP tool folder.  You can modify them before you create the WinPE and it will become part of the WinPE at build, instead of after the build, like you've had to do with startnet.cmd in the past.

MVP_ATIPEBuilder_v72\Other\goodies.bat

or 

MVP_ATIPEBuilder_v72\Other\winpeshl.ini

Yes I was going to ask where and when I should edit the goodies.bat file. 

Since I have to fix startnet.cmd file with DISM GUI & Notepad anyway, I might as well modify goodies.bat.   I assume I simply enter the same "net use" DOS command in goodies.bat that I mistakenly entered in startnet.cmd

Am I still mounting boot.wim to find the goodies.bat file ?

Just a word about WinPE. If winpeshl.ini is included, startnet.cmd is ignored.

The Basic version 5.9 of MVP_ATIBuilder does not include winpeshl.ini. Therefore, if you use version 5.9, you need to make your modification to startnet.cmd. If you use the Advanced version 7.2 of MVP_ATIBuilder, winpeshl.ini is included. You need to make your modifications in either goodie.bat or winpeshl.ini. You don't need to mount boot.wim to make the changes to version 7.2. These files are found in the Other folder and can be modified before the build process.

[quote=Mustang]

Just a word about WinPE. If winpeshl.ini is included, startnet.cmd is ignored.

The Basic version 5.9 of MVP_ATIBuilder does not include winpeshl.ini. Therefore, if you use version 5.9, you need to make your modification to startnet.cmd. If you use the Advanced version 7.2 of MVP_ATIBuilder, winpeshl.ini is included. You need to make your modifications in either goodie.bat or winpeshl.ini. You don't need to mount boot.wim to make the changes to version 7.2. These files are found in the Other folder and can be modified before the build process.

[ c/quote]

Thank you for the clarification.  It is probably easier to edit the goodies.bat file.  Unfortunately I'm not sure of the exact format to be used in the goodies.bat file.  My command to be entered is :

net use S: "\\xxx.xxx.0.x\home\Acronis Backups Acer" Password /user:admin

You should be able to put in in goodies.bat exactly as you have it.

Well I put my "net use" command in goodies.bat, created the Rescue Media and stored on my USB stick.  Unfortunately when I boot off the USB stick I don't see the path to my NAS under This PC. 

 

I mounted the boot.wim file and confirmed that the modified goodies.bat was present in the windows\system32 directory

Minus any usernames or passwords (replace witches x's) paste your full goodies bat code here please.

I have the winpeshl.ini method currently in use, but it doesn't seem to work either.

[LaunchApps]
wpeinit.exe
"X:\Windows\System32\goodies.bat"
net use s: "\\192.168.0.xx\home\Acronis Backups ACER" xxxxxxxxxxx /user:admin
"X:\Program Files\LaunchBar\LaunchBar.exe" X:\Program Files\LaunchBar\LaunchBar.txt

 

I haven't had a chance to test yet and have not been close to a computer much of yesterday and probably not much of today.  I suspect that the network is not fully initialized where startnet is doing it after the network is fully initialzied.  Try this.

add to the winpeshl.ini

[LaunchApps]
wpeinit.exe
InitializeNetwork
"X:\Windows\System32\goodies.bat"

 

and in the goodies.bat...

X:\Windows\System32\net.exe, "use s: "\\192.168.0.xx\home\Acronis Backups ACER" xxxxxxxxxxx /user:admin"

It was the timing.  I used the basic version so I would get the DOS window.  I typed in the "net use" command manually and it worked, so I figured time was the enemy.  I looked back at our first dialog about getting winpe to work and sure enough you had suggested using the "ping -n 10 127.0.0.1" to introduce some time delay.  It worked.

 

Sorry for all the trouble.  I haven't actually pushed the Recover button yet but the S: drive is there.  A message pops up about not having  authentication when I select S: drive, but it may be because Acronis Recover GUI was started before the S: drive was mapped.  I selected to continue and it let me select the backup file but I'm confussed as to what to do next, I don't see any buttons to push in the Acronis Recovery GUI.

Yeah, timing is key with WinPE as the order of some of the background sources can take a bit longer than it does for the script to go through and execute each itme since int's desinged to run quickly, 1 right after tht other.  Try closing acronis and launching it again.  You can re-launch it through command prompt by navigating to 

x:\program files\Acronis\TrueImageHome\trueimage.exe

FYI, try the advanced mode MVP builder at some point - I think you'll like it better.  I know the background command prompt doesn't popup automatically.  However, there is full file explorer support and you can easily access the command prompt from the shell tools. 

Also, A43 is in the shell lauchbar and if you ever need to manually connect to a network share, the options is built directly into A43 file explorer.