Tuesday 2 November 2010

Looking in side ImageX and WIM files

Remember a .wim file can contain more than one image (not a traditional block by block image) the number refers to the image in the wim.


These are just a few examples

Imagex /mountrw (read and write)
Imagex /unmount

/dir View files and directories inside .wim
/info shows xml description for the .wim

View Image information
-------------------------------------------------
C:\test>imagex /info test.wim 1

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
WIM Information:
----------------


GUID: {6eb66319-64a2-4205-b6e8-93357963508c}


Image Count: 1


Compression: LZX


Part Number: 1/1


Boot Index: 1


Attributes: 0x8


Relative path junction



Available Image Choices:

------------------------

More stuff

The number 1 specifies which image to look at.
Directory of all files and directories in selected WIM image
--------------------------
C:\test>imagex /dir test.wim 1
--------------------------

Returns a directory listing of all files.

Mount WIM file Image and view contents
-----------------------------------
C:\test>imagex /mountrw test.wim 1 c:\test\mount

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.

Mounting (RW): [C:\test\test.wim, 1] ->


[c:\test\mount]

Successfully mounted image (RW).

C:\test>cd mount
C:\test\mount>dir

Volume in drive C has no label.


Volume Serial Number is B0CB-1560

Directory of C:\test\mount

19/01/2008 12:05 0 File(s) 0 bytes

Program Files

19/01/2008 12:05
Users
23/01/2008 19:04
Windows

5 Dir(s) 27,895,529,472 bytes free
Unmount .wim

C:\test>imagex /unmount c:\test\mount

ImageX Tool for Windows


Copyright (C) Microsoft Corp. All rights reserved.

Unmounting: [c:\test\mount]...


Successfully unmounted image.

C:\test>
-----------------------------------------
Microsoft Technet for further information on .wim files

http://technet.microsoft.com/en-us/library/cc507842.aspx









.

No comments:

Post a Comment