Is the first partition you can't obtain a lock on, is it a hidden/diagnostic type partition (e.g., restore partition - Hit F11 to restore)? IMAGEW needs to have exclusive access to the drive it is imaging. No other process can be accessing it. Something is accessing the partition, thus the error. What type of machine?
I have a problem when I try to restore the second partition in the first partition (Vista is installed in the first partition).
I use a Dell Optiplex 745
Thanks a lot for your support.
So what is on the second partition? Sorry not familiar with Dells as we are an HP shop. And just to be clear you are NOT just trying to run imagew in a hot Vista session (Vista Running correct.
second partition is an NTFS partition and contains only my vista image.I try to create a script or template that take my image in the second partition(D:) and restore my image in the first partition (C:).Both partitions are not hidden.
Thanks a lot.
imagew.exe /RN /O d:\immagine.img looks strange to me since /R should have a HD number or partition number. Also the Image Capture use /U which is no compression???
Try imagew.exe /R0N /C f:\<image Name>.img for restores.
I would also not use /u since uncompressed images would be rather large, and capture command line I wouild try
\imagew.exe /C0 d:\immagine.img
The error message is from ImageW and indicates that there is something accessing the drive. It can't backup a live drive without Phylock loaded. Phylock allows for hot backups in live windows sessions, however, since you are using Windows PE it should not be necessary.
Error: "Unable to obtain a lock on drive C "
You are in WinPE when this occurs, right? Tell me you are not still running Vista when you try to restore the image.
I'm assuming you are in Windows PE when you perform the restore? If you are, get the log file from ldmain\log and post it here.
I have seen an unusual issue when restoring images where I got a similar error. Do you know if the exit code is 68? When I got this error it was when I was provisioning, but I think it still applies. I was getting error 68 every time.
What I had to do was insert an ldsleep command to wait 2-3 minutes. When I did that, the problem went away. After you PXE boot into WinPE, don't touch the machine for about 5 minutes. Then launch the imaging script. This should tell you if it's a timing issue like the one I experienced.
No, Vista is running when I launch my script. Is this the problem?How can I do to go in win PE through the script and after launch my script?
PS:When I store image in second partition Vista is running.
Thakns a lot for your patience.
Yes see mine and the other posts about running Vista! This can been done using phylock but is not supported by LANDesk. Also the image is considered dirty and should not be used for replication, only backup.
And just to be clear you are NOT just trying to run imagew in a hot Vista session (Vista Running correct.
You cannot image over the operating system that is currently running. That is why you have to boot to a Pre-execution Environment or PE such as Windows PE.
In the Console we have a Wizard that creates an OS Deployment script. The first part checks if you are in Windows and if so, reboots you to WinPE. You can also PXE Boot to WinPE.
Create an OS Deployment script...there is a GUI for that and examine what is does.
You are doing an advanced configuration of OSD and it doesn't appear you know the basics yet. You really need to read this document.
Especially the Appendixes that cover the OS Deployment script.
Once you understand the default configured OS Deployment script, you will be ready to move on and customize your own OS Deployment script.
I must work with about 100 workstations so I must use a package to store and restore the image that is stored in the second partition.
I'm thinking to use a script with imagew but I don't know to load winPE enviroment through the script or Provisioning template.
Can you help me?
Thank you for your support.
Thak you for your support