Vista Modularization and Hardware Independent Disk Imaging

written by: Sandra Rouane; article published: year 2007, month 02;



In: Categories » Computers and technology » Windows Vista » Vista Modularization and Hardware Independent Disk Imaging

Microsoft reengineered the basic architectural framework of the Windows operating system so that it uses independent units of programming logic called modules and provides a selective capability to customize Windows Vista by swapping out modules. In this modular architecture, system components, device drivers, and language packs are all created as modules, and so are service packs and updates.

Understanding Modules and Disk Images

The benefits of a modular architecture are far-reaching. Thanks to modularization, when you need to add device drives, language packs, or service packs or make other updates, you can more easily introduce these new components because you are simply adding new modules to the system. When you need to update or remove an existing component, you can do so without impacting the system as a whole—the changes affect only the related module or modules for that component. Because language packs are separate modular components from the operating system itself, you don’t need a separate image for each language used in your organization, thereby reducing the total number of disk images large organizations need to maintain.

Microsoft reengineered the basic distribution format of the Windows operating system so that it uses a hardware-independent image-file format. The new imaging format is called Windows Imaging Format (WIM), and Windows Vista is distributed using this format. Thanks to WIM, Microsoft can ship a single binary to all of its customers around the world: one binary format for 32-bit architectures and one binary format for 64-bit architectures. WIM allows you to store multiple images in one file and significantly reduces image size by using a combination of compression and single-instance storage. With compression, the total size of the image file is reduced in much the same way as Zip compression reduces the size of files. With single-instance storage, the disk image contains only one physical copy of a file for each instance of that file in the disk image. This substantially reduces the size of the image because there are no duplicate files.

WIM allows administrators to modify and maintain disk images offline, which means that administrators can add or remove optional components and drivers or perform updates without having to create a new image. Administrators can also mount images as folders and work with them in much the same way as any other folder, making it easier to update files within images. For example, you can mount an image and then use Windows Explorer to update or remove files as necessary. The ease with which you can update disk images and the removal of the requirement to have multiple hardware-specific disk images greatly reduces deployment complexity and costs.

Tip 

The new image-based operating system setup also makes upgrades easier and more reliable. Thanks to WIM, upgrading to Windows Vista essentially means that Setup performs a clean installation of the operating system followed by a migration of user settings, documents, and applications from the earlier version of Windows.

Creating and Managing Disk Images

At a high level, deploying Windows Vista with imaging requires the following procedures:

  1. Creating the configuration to be deployed.

  2. Preparing the system for capture.

  3. Capturing the image.

  4. Maintaining the image as necessary.

  5. Applying the image.

Creating the Configuration to Be Deployed  Creating the configuration to be deployed means setting up the operating system, configuring the operating system, installing any necessary applications, and then configuring those applications. Once you do this, you can prepare the system for capture by running the System Preparation command-line tool (SysPrep.exe). SysPrep irrevocably alters the computer and designates it as a master deployment computer by removing the unique identification information from the computer.

By removing the unique identifiers from the computer, SysPrep creates a resulting image that can be installed on multiple computers without creating identification conflicts. However, the computer no longer has identifying information that allows it to be logged on to and used within a domain or workgroup setting. Typically, you must reinstall the operating system.

Capturing the Image  In the Windows Automated Installation Kit (Windows AIK), you’ll find a tool called XImage. Using the Windows Vista XImage tool, you can capture your image file from Windows PE or with the operating system fully loaded. The best technique for capturing an entire installation, however, is to use Windows PE. When capturing an image with Windows PE, no locked files or folders will be included in your installation image, and as a result, you should experience fewer problems capturing the image.

Note 

Although you can capture an image from a running version of Windows, you can capture only files and folders not in use by the operating system. Later, when you are installing from the image, any in-use files must also be listed in the exclusion list of the configuration script. Although excluding these in-use files reduces the errors you see during installation, it doesn’t ensure that the image is usable. If essential files were locked during the image capture, the image won’t install the operating system properly.

You can capture an image by using XImage with the following syntax:

ximage /capture ImageSource ImageDest "ImageDescription"

ImageSource is the location of the files to image, ImageDest is the name and location of the new image file, and "ImageDescription" is a description of the image file, such as

ximage /capture C:\Windows D:\WinVistaStandard.wim "Windows Vista Standard"

If you don’t specify a destination drive, XImage creates the image and stores it in the XImage folder on the system drive. If the image file is too large for your selected media, you can use the /split option to split an existing image file into smaller .swm files, such as for spanning across several CDs. Before you split an image, you must determine the size of the media required for the image and then provide this value as one of the parameters passed to XImage. In the following example, you split a previously created image file into 600-megabyte (MB) .swm files:

ximage /split D:\WinVistaStandard.wim 600

Maintaining the Image  Once you’ve created an image file, you can easily maintain the image. To do this, you must install the Windows Imaging File System Filter (WIM FS Filter) driver on your computer by right-clicking the Wimfltr.inf file in the XImage folder and then selecting Install. After installing the filter driver, you can mount image files to folders on your computer. The files in the mounted image can be browsed via the folder by using Windows Explorer or other software. You can perform copy, paste, and editing operations on files in the mounted folder without having to re-create the image.

Tip 

Although it is a best practice to mount images to an empty folder, you don’t have to mount to empty folders. The contents of non-empty folders are inaccessible, but they are not affected by the mount operation. When you unmount the image, you’ll be able to access the existing files on the folder.

Images can be mounted as read-only or read/write. Read-only images cannot be edited; read/ write images can be edited.

You can mount an image as read-only by using the following syntax:

ximage /mount MountPath ImageFilePath ReferenceNumber

MountPath is the location of the mount folder, ImageFilePath is the name and location of the .wim file to mount, and ReferenceNumber is the reference number of the specific volume in the .wim file to use, such as:

ximage /mount C:\Data D:\Images\Data.wim 1

You can mount an image as read/write by using the following syntax:

ximage /mountrw MountPath ImageFilePath ReferenceNumber

MountPath is the location of the mount folder, ImageFilePath is the name and location of the .wim file to mount, and ReferenceNumber is the reference number of the specific volume in the .wim file, such as:

ximage /mountrw C:\Data D:\Images\Data.wim 1

Using the mounted folder, you can:

  • Open files and folders and view their contents.

  • Add files or folders.

  • Move the files and folders within an image.

  • Edit existing files and folders.

  • Delete files and folders.

When you have finished working with an image, you must unmount the image and optionally commit your changes. You use the following syntax to unmount an image and save your changes:

ximage /unmount /commit MountPath

MountPath is the location of the mount folder, such as:

ximage /unmount /commit C:\Data

If you mounted an image as read-only, you don’t need to use the /commit option. There are no changes to save.

Caution 

When working in Windows PE, keep in mind that mounted images cannot persist across restarts. If you have file system changes to be committed as the computer restarts, you will lose the changes. Additionally, Windows PE restarts automatically after 24 hours, so if you leave a changed image mounted and go home, the changes will likely be lost when you return to work the next day. For these reasons, Microsoft recommends that you do not use ximage /unmount /commit from Windows PE.

Applying the Image  When you are ready to apply the image, you can do so using a variety of automatic techniques, such as deployment scripts, or you can apply an image manually. Either way, you must first prepare the target computer by creating and formatting the disk partitions. If you choose to perform these tasks from a script, insert the commands to create and format the disk partitions prior to executing the XImage commands that apply the image. You apply an image by using the following syntax:

ximage /apply ImageFilePath ReferenceNumber

ImageFilePath is the name and location of the .wim file to apply, and ReferenceNumber is the reference number of the specific volume to use in the .wim file, such as:

ximage /apply D:\Images\Data.wim 1

To have XImage apply and then verify the image, you can add the /verify option, as follows:

ximage /apply D:\Images\Data.wim 1 /verify

legal disclaimer

1) Our website is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringements, please read the Terms of service and contact us to investigate the problem.
2) The E-articles directory team is not responsible for inaccuracies, falsehoods, or any other types of misinformation this tutorial may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. Please read the Terms of service

Useful tools and features

Translate this article to...    Send this article to you or to a friend

Link to this article from your page   
If you like this article (tutorial), please link to it from your web page using the information above. Linking to this page, this is the only way to help us improve our service, the same time providing your visitors with a way to improve their online experience.

related articles

1. Performing a Clean Windows Vista Install
The Windows Vista installation DVD is bootable and self-installing, so you need only put it into your DVD drive and reboot, and the installation program will launch. To configure your computer to boot off a DVD, you'll need to use your system's BIOS setup utility. When you first power on your machine, you'll see a text screen with a summary of your motherboard, processor, and installed memory. (If you see only a logo, try pressing the Esc or Tab key.) Here, you typically press F2, Delete, or some other key combination to...

2. What`s in the Start Menu: All Windows Vista Versions
All Programs When you click All Programs, you're presented with an important list indeed: the master catalog of every program on your computer. You can jump directly to your word processor, calendar, or favorite game, for example, just by choosing its name from the Start -> All Programs menu. In Vista, as you'll notice very quickly, Microsoft abandoned the superimposed-menus effect of Windows XP. Rather than covering up the regularly scheduled Start menu, the All Programs list replaces it ...

3. How to change the desktop background in Windows Vista
Vista has a whole new host of desktop pictures, patterns, and colors for your viewing pleasure. You want widescreen images for your new flat-panel monitor? No problem, Vista's got 'em. Want something gritty, artsy, in black and white? They're there, too. And you can still use any picture you'd like as your background as well. To change yours, right-click the desktop. From the shortcut menu, choose Personalize. In the Personalization dialog box, click Desktop Background. Use a Microsoft Photo...

4. Common Windows Vista and XP Filename Extensions
This tutorial lists many of the most common filename extensions that you'll find on your system, that you might download, or that you have received over the Internet. Extensions were universally used on DOS and Windows 3.1 files, but Microsoft has gone to some difficulty to hide them in Windows Vista. This is unfortunate, because they play a major role in the way Windows decides what application will be used to open a file, as well as which files will be visible when opening files in a given application. Although direct a...

5. Upgrading to Windows Vista from Earlier Versions of Windows
When you buy Windows Vista, you buy either a full version of the operating system or an upgrade. Ideally, you'd like to upgrade, because an upgrade is less expensive than buying the full version. Only PCs with Windows XP or Windows 2000 qualify for upgrades; users with PCs running earlier versions of Windows will have to buy the full version. Users who have Windows XP or Windows 2000 and can upgrade will have one of two choices when they do the Windows Vista installation. They can either perform an in-place upgrade or do ...

6. Potential Problems During Windows Vista Setup
Fully documenting all of the problems that could occur during the installation of Windows Vista would require a tutorial10 times the size of this one. Here, though, are some of the most common problems you're likely to encounter, and how to solve them: An out-of-date BIOS may cause a failed installation. Your motherboard will have a software-upgradeable flash BIOS. Contact the manufacturer of your system or motherboard for any BIOS updates it has available, but don't bother unless a BIOS upgrade is absol...

7. Windows Vista Sidebar and Gadgets
Gadgets perform automated tasks and display information; they live in the Windows Sidebar on the Desktop. To open Double-click the Windows Sidebar icon in the notification area. Control Panel -> [Appearance and Personalization] -> Windows Sidebar Properties -> Start Sidebar when Windows starts Start -> All Programs -> Accessories -> Windows Sidebar Description One of Windows Vista's most useful new features is the Windows Sidebar and the Gadgets that ...

8. How to Start Up Applications in Win Vista
Windows Vista has more ways to launch a program than just about any other operating system: Double-click on a program icon in Explorer, on the Desktop. Double-click on a file associated with an application to launch that application and open the file. Pick the name of a program from the Start menu. Click on a program's icon in the Quick Launch Toolbar to start it. This toolbar can include icons for any programs, although by default, it often has icons...