Microsoft KB Archive/891373

= Your image may be corrupted when you try to un-mount it with the ADS Imgmount command-line tool =

Article ID: 891373

Article Last Modified on 2/8/2007

-

APPLIES TO


 * Microsoft Windows Server Automated Deployment Services 1.0

-





SYMPTOMS
When you un-mount an image by using the Microsoft Automated Deployment Services (ADS) Imgmount command-line tool, the image may be corrupted. This scenario occurs when you un-mount an image after you perform some write operations on the image.

Note You can perform write operations on an image after it is mounted with the Imgmount tool. The image must be mounted with read and write access.



CAUSE
The Imgmount tool uses resources from kernel-mode paged pool memory. If there is an acute shortage of paged pool memory during the mounting or un-mounting process, write operations may not be completed successfully. Therefore, when the image is un-mounted, the cluster map within the image may not be updated.



WORKAROUND
To work around this issue, back up the image before you mount the image with read and write access.

To recover a corrupted image, you can mount the image with read-only access and then run the ADS Imgdeploy command-line tool locally to generate a fixed image file. To do this, type the following commands at a command prompt. Press ENTER after each command.

imgmount /m /d:l .img

imgdeploy /c /u l: .img &quot; &quot;



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce this behavior
 On a computer with lots of free space, use the Imgdeploy tool to capture a large volume. (This computer is Computer A.) To do this, type the following at a command prompt, and then press ENTER:

imgdeploy /C L: C:\ .img &quot; &quot;

 Install the ADS volume tool on a computer with relatively low physical memory. (This computer is Computer B.) Copy the .img file from Computer A to Computer B. On Computer B, use the Imgmount tool to mount an image file with read and write access. To do this, type the following at a command prompt, and then press ENTER:

imgmount /M /W .img

 Write on the mounted file until physical memory is exhausted, and then try to un-mount the image. The failure will now occur.</li></ol>

<div class="references_section">