Best Practices for Using Sysprep with NTFS Volumes (240126)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q240126

SUMMARY

You can use the System Preparation tool (Sysprep) for Windows to prepare a working Windows installation to be cloned. After you run Sysprep, you can use third-party disk-duplication software to create and apply the images. Depending on the third-party software you use to create and apply the images, you may be able to shrink or increase the disk image to fit the size of the target disk. For example, the image may have been created using a 12-GB disk but be applied to an 8-GB disk.

MORE INFORMATION

Applying an image created on a larger disk to a smaller disk is not recommended when you are using the NTFS file system because NTFS keeps information in its own metafiles about the size of the volume and location of its NTFS metadata. Allowing the disk-imaging software to extend or shrink the volume may compromise the NTFS file system's integrity. When you are using Sysprep with NTFS volumes in environments in which the drive sizes may differ, use the following method:
  1. Create your image using a partition/volume less than or equal in size to the smallest hard disk installed in the target computers.
  2. After you run Sysprep and the image is created (using whichever disk-imaging software you want), do not let the imaging software extend the volume when applying the image to the target computer. Check the documentation included with the disk-imaging software for information on how to prevent this.
  3. Modify the Sysprep.inf file to use the ExtendOemPartition key in the [Unattended] section to extend the partition to the full size of the target disk or the extra size (in megabytes) that you want.

    Values:

    ExtendOemPartition = 0 (do not extend)
    ExtendOemPartition = 1 (extend to the end of the disk)
    ExtendOemPartition = number_in_megabytes (extend the volume this many megabytes in size)

When the duplicated disk is placed in a computer and turned on, the volume is extended by Windows Setup to the size you specified in the Sysprep.inf answer file. This allows Windows to update the NTFS metafile information to reflect the correct volume size and maintain file system integrity.

For additional information about using Sysprep with Windows, click the article number below to view the article in the Microsoft Knowledge Base:

216937 Windows 2000 System Preparation Tool and Answer File Usage


Modification Type:MajorLast Reviewed:11/13/2003
Keywords:kbenv kbinfo KB240126