Сравнивайте с английским: нажмите на абзац — оригинал откроется в окне. Кнопка EN под абзацем показывает его прямо в тексте.
Содержание
Введение
Формат файла
File format
Формат изображения Windows (WIM) — это формат образа диска, основанный на файлах. Он был разработан компанией Microsoft для упрощения развертывания Windows Vista и последующих версий операционной системы Windows, а также Windows Fundamentals для устаревших ПК.
The Windows Imaging Format (WIM) is a file based disk image format. It was developed by Microsoft to help deploy Windows Vista and subsequent versions of the Windows operating system family, as well as Windows Fundamentals for Legacy PCs.
Дизайн
Как и другие форматы образов дисков, файл WIM содержит набор файлов и связанных с ними метаданных файловой системы. Однако, в отличие от форматов, основанных на секторах (таких как ISO или VHD), WIM основан на файлах: фундаментальной единицей информации в WIM является файл. Основными преимуществами файловой организации являются аппаратная независимость и хранение единственного экземпляра файла, на который многократно ссылаются в дереве файловой системы. Поскольку файлы хранятся в одном файле WIM, снижаются затраты на открытие и закрытие множества отдельных файлов. Стоимость чтения или записи тысяч отдельных файлов на локальном диске компенсируется аппаратным и программным кэшированием диска, а также последовательным чтением и записью данных. Файлы WIM могут содержать несколько образов дисков, на которые можно ссылаться либо по числовому индексу, либо по уникальному имени. Благодаря использованию хранения единственного экземпляра, чем больше общего у каждого последующего образа диска с предыдущими образами, добавленными в файл WIM, тем меньше новых данных будет добавлено. Файл WIM также можно разделить (разбить) на несколько частей, имеющих расширение .wim. Образы WIM могут быть загрузочными, а загрузчик Windows поддерживает загрузку Windows из файла WIM. DVD-диск установки Windows в Windows Vista и более поздних версиях использует такие файлы WIM. В этом случае BOOT.WIM содержит загрузочную версию Windows PE, с которой выполняется установка. Другие установочные файлы хранятся в INSTALL.WIM. Начиная с Windows 8.1, размер каталога Windows можно уменьшить, переместив системные файлы в сжатые образы WIM, хранящиеся на отдельном скрытом разделе (WIMBoot). Начиная с Windows 10, системные файлы можно сжать на системном диске (CompactOS). WIM поддерживает три семейства алгоритмов сжатия на основе LZ77 с возрастающим коэффициентом сжатия и убывающей скоростью: XPRESS, LZX и LZMS. Первые два используют кодирование Хаффмана, а последний – адаптивное кодирование Хаффмана с кодированием диапазона. Также поддерживается сплошное сжатие. И сплошное сжатие, и LZMS были представлены относительно недавно, в WIMGAPI с Windows 8 и DISM с Windows 8.1.
Like other disk image formats, a WIM file contains a set of files and associated filesystem metadata. However, unlike sector based formats (such as ISO or VHD), WIM is file based: the fundamental unit of information in a WIM is a file. The primary advantages of being file based is hardware independence and single instance storage of a file referenced multiple times in the filesystem tree. Since the files are stored inside a single WIM file, the overhead of opening and closing many individual files is reduced. The cost of reading or writing many thousands of individual files on the local disk is negated by hardware and software based disk caching as well as sequential reading and writing of the data. WIM files can contain multiple disk images, which are referenced either by their numerical index or by their unique name. Due to the use of single instance storage, the more each successive disk image has in common with previous images added to the WIM file, the less new data will be added. A WIM can also be split (spanned) into multiple parts, which have the extension. WIM images can be made bootable and Windows boot loader supports booting Windows from a WIM file. Windows Setup DVD in Windows Vista and later use such WIM files. In this case, BOOT. WIM contains a bootable version of Windows PE from which the installation is performed. Other setup files are held in the INSTALL. WIM. Since Windows 8.1, the size of Windows directory can be reduced by moving system files into compressed WIM images stored on a separate hidden partition (WIMBoot). Since Windows 10, system files can be compressed on the system disk (CompactOS). WIM supports three families of LZ77 based compression algorithms in ascending ratio and descending speed: XPRESS, LZX, and LZMS. The former two use Huffman encoding, while the latter uses adaptive Huffman encoding with range coding. There is also support for solid compression. Both solid compression and LZMS are introduced more recently, in WIMGAPI from Windows 8 and DISM from Windows 8.1.
Изображение
ImageX — это инструмент командной строки, используемый для создания, редактирования и развертывания образов дисков Windows в формате Windows Imaging Format. Вместе с базовой библиотекой Windows Imaging Interface (WIMGAPI) он распространяется как часть бесплатного автоматизированного комплекта установки Windows (WAIK/OPK). Начиная с Windows Vista, программа установки Windows использует API WAIK для установки Windows. Первый распространенный прототип ImageX был создан под номером 6.0.4007.0 (main.030212 2037). Он позволил партнерам Microsoft OEM экспериментировать с технологией создания образов и разрабатывался параллельно с альфа-версиями Longhorn. Впервые он был представлен в проекте Longhorn в Milestone 4 и использовался в последующих сборках Longhorn. Сборка 6.0.5384.4 добавила значительные преимущества по сравнению с предыдущими версиями, такие как возможность монтирования папок в режиме только для чтения и чтения/записи, разделение на несколько файлов образов (SWM), драйвер фильтра WIM и новейшие алгоритмы сжатия. Он используется с версий, предшествующих кандидатам на выпуск (RC) Windows Vista.
ImageX is the command line tool used to create, edit and deploy Windows disk images in the Windows Imaging Format. Along with the underlying Windows Imaging Interface library (WIMGAPI), it is distributed as part of the free Windows Automated Installation Kit (WAIK/OPK). Starting with Windows Vista, Windows Setup uses the WAIK API to install Windows. The first distributed prototype of ImageX was built 6.0.4007.0 (main.030212 2037). It allowed Microsoft OEM partners to experiment with the imaging technology and was developed in parallel with Longhorn alpha prototypes. It was first introduced in Milestone 4 into the Longhorn project and used in later builds of Longhorn. Build 6.0.5384.4 added significant advantages over previous versions, like read only and read/write folder mounting capabilities, splitting to multiple image files (SWM), a WIM filter driver and the latest compression algorithms. It has been used since pre RC (release candidates) of Windows Vista.
ДИСМ
Deployment Image Service and Management Tool (DISM) – это инструмент, представленный в Windows 7. Теперь можно восстанавливать с помощью DISM любое изображение, используя либо установочный диск Windows, либо Центр обновления Windows. До Windows Server 2012 и Windows 8, DISM включал в себя большинство функций ImageX, но не все; ImageX по-прежнему требовался для создания образов.
Deployment Image Service and Management Tool (DISM) is a tool introduced in Windows 7 It is now possible to repair with DISM any image using either a Windows Installation CD or Windows Update. Before Windows Server 2012 and Windows 8, DISM had incorporated the majority of ImageX functions but not all; ImageX was still needed for image capture.
Поддержка в других операционных системах
С 30 апреля 2012 года доступна библиотека с открытым исходным кодом для работы с форматом WIM. Эту библиотеку можно использовать в Unix-подобных системах, а также в Windows. Благодаря этому проекту, дистрибутивы Linux теперь имеют собственный аналог imagex под названием wimlib imagex, позволяющий монтировать WIM-образы и управлять ими (чтение/запись) как любым другим поставщиком блочного хранения. Поскольку WIM-образы используют достаточно распространенные алгоритмы сжатия, к ним можно получить доступ с помощью файловых архиваторов, таких как 7-Zip. Для других операционных систем, которые могут не поддерживать этот формат, все еще возможно преобразовать WIM-образы в более распространенный формат ISO, используя Windows Assessment and Deployment Kit в Windows.
Since April 30, 2012, an open source library for handling the WIM format is available. This library can be used on Unix like systems, as well as on Windows. Thanks to this project, Linux distributions now have their own imagex clone called wimlib imagex, which allows mounting WIM images and managing them (read/write) like any other block storage provider. As WIM images use somewhat common compression algorithms, they can be accessed by using file archivers like 7 Zip. For other operating systems that might not support this format, it is still possible to convert wim images to the more commonly used ISO image using the Windows Assessment and Deployment Kit on Windows.