Oscdimg является средством командной строки для создания файла образа (ISO-файла) настроенной 32-разрядной или 64-разрядной версии Windows® PE. Созданный ISO-файл можно затем записать на компакт-диск или DVD-диск. Oscdimg поддерживает файловые системы ISO 9660, Joliet и UDF (Universal Disk Format).
Примечание.
Для создания загрузочного компакт-диска необходимо воспользоваться программным обеспечением для записи компакт-дисков, которое распаковывает ISO-файл и записывает его на компакт-диск. Простое копирование ISO-файла на компакт-диск не даст результата.
Средство Oscdimg не поддерживается на компьютерах на основе процессоров Itanium под управлением Windows Server 2003.
Параметры командной строки Oscdimg
Следующие параметры командной строки доступны в программе Oscdimg:
Отображает сводку размещения для файлов и каталогов.
Задает размещение загрузочного файла формата El Torito. Пробелы не допускаются, пример: -bC:\Directory\Etfsboot.com
Задает использование имен файлов в кодировке ANSI вместо OEM-имен файлов.
Не делает принудительный перевод имен файлов на прописные буквы.
Этот параметр отключает эмуляцию дискеты в каталоге El Torito. Данный параметр может использоваться только для образов дисков с одной загрузочной записью; его нельзя сочетать с параметрами для мультизагрузочных образов дисков.
Задает использование формата времени UCT, а не локального времени для всех файлов.
Включает скрытые файлы и папки.
Кодирует имена файлов в Юникоде Joliet и создает имена файлов 8.3, совместимые с DOS, в пространстве имен ISO9660. Эти имена могут читаться и системами Joliet, и обычными системами ISO9660. Однако программа Oscdimg может изменять некоторые имена файлов в пространстве имен ISO9660 для совместимости с ограничениями форматов DOS 8.3 и ISO9660.
При использовании параметров -j1, -j2 или -js параметры -d, -n и -nt являются неприменимыми и не могут использоваться.
Кодирует имена файлов в Юникоде Joliet без стандартных имен ISO9660. (Для чтения файлов с компакт-дисков требуется операционная система Joliet.)
При использовании параметров -j1, -j2 или -js параметры -d, -n и -nt являются неприменимыми и не могут использоваться.
Переопределяет текстовый файл по умолчанию, который используется с параметром -j2, пример:-jsc:\Readme.txt
При использовании параметров -j1, -j2 или -js параметры -d, -n и -nt являются неприменимыми и не могут использоваться.
Создает образ даже в случае, если не удается открыть некоторые из исходных файлов.
Задает метку тома. Между параметрами l и метка пробелов быть не должно.
Переопределяет максимальный размер образа по умолчанию. По умолчанию задан 74-минутный компакт-диск, если только не используется файловая система UDF; в таком случае по умолчанию максимальный размер не задан. Значение предела указывается в мегабайтах (МБ). Например, -maxsize:4096 ограничивает размер образа 4096 МБ.
С этим параметром нельзя использовать параметр -m.
Включает поддержку длинных имен файлов.
Дает возможность использования длинных имен файлов, совместимых с Windows NT 3.51.
Оптимизирует хранение путем однократного кодирования дублирующих файлов путем применения алгоритма хеширования MD5 для сравнения файлов.
Оптимизирует хранение путем однократного кодирования дублирующих файлов с помощью сравнения двоичного кода каждого файла. Этот параметр работает медленнее, чем параметр -o.
Оптимизирует хранение путем однократного кодирования дублирующих файлов. При сравнении файлов игнорируются штампы времени максимального сжатия.
Оптимизирует хранение путем однократного кодирования дублирующих файлов. Дублирующие файлы отображаются при создании образа.
Оптимизирует хранение путем однократного кодирования дублирующих файлов. При сравнении файлов игнорируются штампы времени максимального сжатия. Дублирующие файлы отображаются при создании образа.
Указывает значение для использования в качестве идентификатора платформы в каталоге El Torito. Значение по умолчанию 0x00 представляет платформу x86. Данный параметр может использоваться только для образов дисков с одной загрузочной записью; его нельзя сочетать с параметрами для мультизагрузочных образов дисков.
Выполняется только сканирование исходных файлов; образ не создается.
Задает штамп времени для всех файлов и каталогов. Пробелы не допускаются. Используется 24-часовой формат времени и американский формат даты. Между элементами допускается использование любых разделителей.
Создает образ, который имеет как файловую систему UDF, так и файловую систему ISO 9660. Файловая система ISO 9660 записывается с именами файлов 8.3, совместимыми с DOS. Файловая система UDF записывается с именами файлов в Юникоде. Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Создает образ, который имеет только файловую систему UDF. Любая система, которая не может прочесть UDF, будет видеть только текстовый файл по умолчанию, в котором пользователю сообщается, что данный образ доступен только на поддерживающих UDF компьютерах. Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Переопределяет текстовый файл по умолчанию, который используется с параметром -j2. Пример: -urc:\Readme.txt
Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Создает разреженный файл, когда это возможно. Этот параметр может использоваться только вместе с параметром -u2. Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Создает внедренные файлы. Этот параметр может использоваться только вместе с параметром -u2. Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Внедряет записи идентификатора UDF-файлов. Этот параметр может использоваться только вместе с параметром -u2. Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Указывает совместимость UDF Video Zone при создании диска DVD-Audio или DVD-Video. Это значит, что на диск записываются UDF 1.02 и ISO 9660. Кроме того, сначала записываются все файлы в каталогах VIDEO_TS, AUDIO_TS и JACKET_P. Эти каталоги имеют приоритет над всеми другими правилами порядка, использованными для этого образа. Этот параметр нельзя сочетать с параметрами -n, -nt, -d, -j1, -j2, -js, -u1, -u2, -ur, -us, -ue, -uf или -yl.
Усекает часть ISO 9660 образа при создании диска DVD-Audio или DVD-Video. Когда используется этот параметр, в файловой системе ISO 9660 отображаются только каталоги VIDEO_TS, AUDIO_TS и JACKET_P. Этот параметр нельзя сочетать с параметрами -n, -nt, -d, -j1, -j2, -js, -u1, -u2, -ur, -us, -ue, -uf или -yl.
Выводит все имена файлов или папок, которые несовместимы с ISO или Joliet.
Выводит все имена файлов, которые несовместимы с DOS.
Выводит все файлы нулевой длины.
Выводит имена всех файлов, которые были скопированы в образ.
Вычисляет и кодирует значение AutoCRC данного образа.
Подавляет предупреждения о неидентичных файлах с одинаковыми первыми 64 000 байтов.
Указывает длинные дескрипторы расположения вместо коротких. Этот параметр нельзя сочетать с параметрами -n, -nt или-d.
Указывает файловую раскладку на диске. Этот параметр сначала записывает все файлы в каталог i386 и в обратном порядке сортировки.
Указывает, что записи каталогов будут точно выровнены в конце секторов.
Указывает файловую раскладку на диске. Этот параметр указывает текстовый файл, который включает раскладку для помещаемых в образ файлов. Далее приведены правила данного файла.
Файл порядка должен быть в кодировке ANSI.
Файл порядка должен заканчиваться новой строкой.
В файле порядка каждый файл должен быть указан на отдельной строке.
Каждый файл должен быть задан относительно корневой папки образа.
Каждый файл должен быть задан с длинным именем файла. Короткие имена не допускаются.
Путь к каждому файлу не должен превышать MAX_PATH, включая имя тома.
Обратите внимание, что в файле порядка не должны быть перечислены все файлы. Те файлы, которые не перечислены в этом файле, будут распределяться таким образом, как если бы файла порядка не существовало.
Важно!
Параметр -yo имеет приоритет над параметром -y5.
Открывает исходные файлы с помощью общего доступа к записи.
Обязательный компонент. Задает расположение файлов, которые требуется поместить в образ (ISO-файл).
Указывает имя ISO-файла образа.
Создание DVD-образов
Для образов размером свыше 4,5 ГБ необходимо создать файл порядка загрузки (Bootorder.txt), чтобы обеспечить расположение загрузочных файлов в начале образа. Пример:
Где bootorder.txt содержит следующий перечень файлов.
См. также
Щелкните здесь, чтобы отправить отзыв на этот раздел.
Oscdimg is a command-line tool that you can use to create an image (.iso) file of a customized 32-bit or 64-bit version of Windows Preinstallation Environment (WindowsВ PE). You can then burn the .iso file to a CD or DVD. Oscdimg supports ISOВ 9660, Joliet, and Universal Disk Format (UDF) file systems.
Oscdimg Command-Line Options
The following command-line options are available for Oscdimg.
Oscdimg [ ]
File System Options
The Oscdimg tool and Microsoft Windows image mastering API (IMAPI) support three file system formats: ISO 9660, Joliet, and UDF.
ISO 9660 Options
ISO 9660 options cannot be combined with Joliet or UDF options. The length of the file name combined with the length of the file name extension cannot exceed 30 characters in the ISO 9660 file system.
The -d and -nt options cannot be used together.
Option
Description
Permits lower case file names. Does not force lowercase file names to upper case.
Permits file names longer than DOS 8.3 file names.
Permits long file names that are compatible with WindowsВ NTВ 3.51.
Joliet Options
Joliet is an extension of the ISO 9660 file system. Joliet allows longer file names, Unicode characters, and directory depths larger than eight. Joliet options cannot be combined with ISO 9660 options.
The -j2 Joliet option cannot be used with any UDF options.
Option
Description
Permits both file systems to view all the data on the disk. Using this option does not duplicate all files on the image. This option encodes Joliet Unicode file names and generates DOS-compatible 8.3В file names in the ISOВ 9660 namespace. These file names can be read by either Joliet systems or conventional ISOВ 9660 systems. However, Oscdimg may change some of the file names in the ISOВ 9660 namespace to comply with DOS 8.3 and ISOВ 9660 naming restrictions.
Encodes Joliet Unicode file names without standard ISO 9660 names. This option is used to produce an image that contains only the Joliet file system.В Any system that cannot read Joliet sees only a default text file that alerts the user that this image is only available on computers that support Joliet.
Overrides the default text file that is used when the user specifies the -j2 option. For example:
UDF Options
UDF options cannot be combined with ISO 9660 options. The -ue, -uf, and -us options only apply when they are used together with the -u2 option.
Option
Description
Produces an image that has both the UDF file system and the ISOВ 9660 file system. The ISOВ 9660 file system is written by using DOS-compatible 8.3 file names. The UDF file system is written by using Unicode file names.
Produces an image that contains only the UDF file system. Any system that cannot read UDF sees only a default text file that alerts the user that this image is only available on computers that support UDF.
-udfver102
Specifies UDF file system version 1.02.
Creates embedded files.
Embeds UDF file identifier entries.
Overrides the default text file that is used together with the -u2 option. For example:
Creates sparse files, when available, to make disk space usage more efficient.
Specifies long allocation descriptors instead of short allocation descriptors.
CD or DVD Boot Options
Boot options can be used to create bootable CD or DVD images. The following boot options can be used to generate single-boot entries. For more information, see Use a single boot entry to create a bootable image.
Option
Description
Specifies the El Torito boot sector file that will be written in the boot sector or sectors of the disk. Do not use spaces. For example:
On UEFI: -bC:\winpe_x86\Efisys.bin
On BIOS: -bC:\winpe_x86\Etfsboot.com
Disables floppy disk emulation in the El Torito catalog.
Specifies the value to use for the platform ID in the El Torito catalog. The default ID is 0xEF to represent a Unified Extensible Firmware Interface (UEFI) system. 0x00 represents a BIOS system.
Required. Specifies the location of the files that you intend to build into an .iso image.
Specifies the name of the .iso image file.
ImportantВ В Single-boot entries and multi-boot entries cannot be combined in the same command.
The following boot options can be used to generate multi-boot entries. For more information, see Use multi-boot entries to create an image file.
Option
Description
Specifies the El Torito boot sector file that will be written in the boot sector or sectors of the disk. Do not use spaces. For example:
On UEFI: bEfisys.bin
On BIOS: bEtfsboot.com
-bootdata:
Specifies a multi-boot image, followed by the number of boot entries. Do not use spaces. For example:
where is the number of boot entries that follow.
Disables floppy disk emulation in the El Torito catalog.
Specifies the value to use for the platform ID in the El Torito catalog. The default ID is 0xEF to represent a UEFI system. 0x00 represents a BIOS system.
Specifies the El Torito load segment. If not specified, this option defaults to 0x7C0.
Required. Specifies the location of the files that you intend to build into an .iso image.
Specifies the name of the .iso image file.
Optimization Options
Optimization options can be used to optimize storage by encoding duplicate files only once.
Option
Description
Uses a MD5 hashing algorithm to compare files.
Uses a binary comparison of each file, and is slower than the -o option.
Ignores Diamond compression timestamps when comparing files.
Order Options
Order options specify the file order on disk. The file order does not have to list all files. Any files that do not appear in this file are ordered as they would be ordinarily (that is, if the ordering file did not exist). For more information, see Specify the boot order.
The -yo option takes precedence over the -y5 option.
Option
Description
Specifies file layout on disk. This option writes all files in an i386 directory first and in reverse sort order.
Specifies a text file that has a layout for the files to be put in the image. Do not use spaces. For example:
DVD Video and Audio Options
The DVD video and audio disk creation options cannot be combined with ISO 9660, Joliet, or UDF options.
Option
Description
Truncates the ISOВ 9660 section of the image during DVD video and audio disk creation. When this option is used, only the VIDEO_TS, AUDIO_TS, and JACKET_P directories are visible from the ISOВ 9660 file system.
Specifies UDF Video Zone compatibility during DVD video and audio disk creation. During creation, UDFВ 1.02 and ISOВ 9660 are written to the disk. All files in the VIDEO_TS, AUDIO_TS, and JACKET_P directories are written first. These directories take precedence over all other ordering rules that are used for this image.
Messaging Options
Messaging options customize how file and directory information appears.
Option
Description
Displays the allocation summary for files and directories.
Shows duplicate files when the system creates the image.
Reports all file names or directories that are not ISO-compliant or Joliet-compliant.
Reports all file names that are not DOS-compliant.
Reports all zero-length files.
Reports each file name that is copied to the image.
Suppresses warnings for non-identical files that have the same initial 64,000 bytes.
General Image Creation Options
General image creation options can be used together with a single-boot entry option or multi-boot entry options to create bootable CD or DVD images. For more information, see Boot Options and Examples.
The -m and -maxsize options cannot be used together.
Option
Description
Specifies that the system must use ANSI file names instead of OEM file names.
Encodes time values as Universal Coordinated Time (UCT) for all files, instead of the local time.
Includes hidden files and directories in the source path of the image.
Creates an image even if some of the source files cannot be opened.
Specifies the volume label. Do not use spaces. For example:
Ignores the maximum size limit of an image.
-maxsize:
Overrides the default maximum size of an image. The default value is a 74-minute CD. However, if UDF is used, the default has no maximum size. Do not use spaces. For example:
where limits the image to 4096В MB.
Scans the source files only. This option does not create an image.
New for WindowsВ 8. Resolves symbolic links to their target location.
Specifies the timestamp for all files and directories. Do not use spaces. You can use any delimiter between the items. For example:
Specifies that directory records must be exactly aligned at the end of sectors.
Opens source files that have write sharing.
Examples
These examples illustrate how to do the following:
Create a bootable CD or DVD for a UEFI-based computer by using a single-boot entry.
Create a bootable CD or DVD for a UEFI-based or BIOS-based computer by using a multi-boot entry.
Specify the boot file order on a disk.
Use a single-boot entry to create a bootable image
You can use the Oscdimg tool to create a bootable CD or DVD by using a single-boot entry.
To use a single-boot entry
Create an image file for a UEFI-based computer. For example:
where C:\winpe_amd64\media is the location of the source files, and C:\winpe_amd64\winpeamd64.iso is the path of the .iso file.
Use multi-boot entries to create a bootable image
You can use the Oscdimg tool to create a bootable CD or DVD by using multi-boot entries. When you do this, note the following:
The bootdata option must be followed by the number of boot entries in the command (-bootdata: ).
Each multi-boot entry must be delimited by using a hash symbol (#).
Each option for a boot entry must be delimited by using a comma (,).
Each boot entry must specify the platform ID.
To use multi-boot entries
Create an image file for either a UEFI-based or BIOS-based computer by using a multi-boot command. For example:
where this command starts the Etfsboot.com boot file for a BIOS image, and then starts the Efisys.bin boot file for a UEFI image.
Specify the boot order
For images larger than 4.5В GB, you must create a boot order file to make sure that boot files are located at the beginning of the image.
The rules for file ordering are as follows:
The order file must be in ANSI.
The order file must end in a new line.
The order file must have one file per line.
Each file must be specified relative to the root of the image.
Each file must be specified as a long file name. No short names are allowed.
Each file path cannot be longer than MAX_PATH. This includes the volume name.
For example, D:\cdimage would resemble the following (where D is the drive letter of the DVD drive):