无忧启动论坛

标题: 求助:用OSCDIMG封装WINPE内核具体要用什么参数? [打印本页]

作者: hw5837    时间: 2009-7-31 14:42
标题: 求助:用OSCDIMG封装WINPE内核具体要用什么参数?
ULTRAISO里面的MAX(221)选项有什么用?在OSCDIMG里怎样设置?
作者: NicTense    时间: 2009-7-31 15:44
oscdimg.exe -h -m -o -l"winpe" -n -x "所在目录" "winpe.iso"

所在目录换成你的winpe文件所在的目录(如果不在当前目录下,必须包含路径)
作者: hw5837    时间: 2009-7-31 16:02
收到了,试下先。。。。。
作者: dvd008    时间: 2009-7-31 16:07
oscdimg.exe -h -m -o -l"盘符名称" -n -b"引导文件名称.bin" -t12/26/2008,12:00:00 -x "制作文件所在文件夹" "镜像名称.iso"

打包系统cdimage.exe参数说明

Usage: CDIMAGE [參數] 來源目錄 目標影像檔

    -l 光碟標籤,不含空白鍵 (e.g. -lMYLABEL)
    -t 將所有檔案和目錄都設為同一日期,不含空白鍵和任何特殊符號
       (e.g. -t12/31/2000,15:01:00)
    -g 將時間設為 GMT 時間而非本地時間
    -h 包含隱藏檔和隱藏目錄
    -n 允許長檔名 (超過 8.3 檔名)
    -nt 允許長檔名,但受限於 NT3.51 相容性
       (-nt 和 -d 不可同時使用)
    -d 不強制將小寫檔名改為大寫檔名
    -c 使用 ANSI 檔名以對應原始目錄中的 OEM 檔名
    -j1 編碼為 Joliet Unicode 檔名並在 ISO-9660 名稱空間中產生相容於
      DOS 的 8.3 檔名格式. (可在 Joliet 系統或其他一般的 ISO-9660
      系統中被讀取, 但某些檔名在 ISO-9660 名稱空間中可能會被改變,
      以遵守 DOS 8.3 與 ISO-9660 命名限制)
    -j2 編碼為 Joliet Unicode 檔名而不遵守 ISO-9660 檔名規則
       (必須在 Joliet 作業系統從 CD 讀取檔案)
      當使用 -j1 或 -j2 參數時, -n, -nt, 和 -d 參數無法生效
      並且不可使用.
    -js 以 -j2 參數將影像檔中的非 Joliet 檔案 "readme.txt" 編碼.
      (e.g. -jsc:\location\readme.txt).
      這樣可以讓這張光碟的這個唯一的檔案在不支援 Joliet 格式的系統中
      (Windows 3.1, NT 3.x...等)被看見.
    -u1 編碼為 "UDF-Bridge" 媒體
    -u2 編碼為 "UDF" 檔案系統而不對映 ISO-9660 檔案系統
       (必須有 UDF 相容作業系統才可讀取檔案)
    -ur 以 -u2 參數將影像檔中的非 UDF 檔案 "readme.txt" 編碼.
      (e.g. -usc:\location\readme.txt).
      這樣可以讓這張光碟的這個唯一的檔案在不支援 UDF 格式的系統中
      被看見.
    -us 分散 UDF 檔案
    -ue embed file data in UDF extent entry
    -uf embed UDF FID entries
    -uv UDF Video Zone compatibility enforced
    -b "El Torito" 開機區段檔案,不佔檔案空間
       (e.g. -bc:\location\cdboot.bin)
    -p Platform ID for the "El Torito" boot catalog
    -e 在 El Torito 開機記錄中設置不模擬軟碟。
    -s 在影像檔中加入數位簽章 (不佔空間, 必須提供 RPC 伺服器與終點名稱如下
      -sServerName:EndPointName)
    -x 在影像檔中計算與編碼 "AutoCRC" 值
    -o 處理重複檔名以將影像檔大小最佳化 (譯註:縮小影像檔容量,即本程式之精華所在)
    -oc 使用二進位比對代替 MD5 雜湊值, 這會以較慢的速度比對重複的檔案.
    -oi 比對檔案時忽略高度壓縮的時間戳記
    -os 建立影像檔時顯示重複的檔名
      (-o 等類似參數不可簡寫為 -ocis)
    -w 依照數字提供不同的警告等級 (e.g. -w4)
      1 回報非 ISO 或非 Joliet 相容檔名或路徑
      2 回報非 DOS 相容檔名
      3 回報長度為零的檔案
      4 回報每一個加入影像檔中的檔名
    -y 依照數字提供不同的測試選項 (e.g. -y1),用於測試用途,
      可產生不遵守 ISO-9660 的變體影像檔
      1 encode trailing version number ';1' on filenames (7.5.1)
      2 round directory sizes to multiples of 2K (6.8.1.3)
      5 write \i386 directory files first, in reverse sort order
      6 allow directory records to be exactly aligned at ends of sectors
        (ISO-9660 6.8.1.1 conformant but breaks MSCDEX)
      7 warn about generated shortnames for 16-bit apps under NT 4.0
      b blocksize 512 bytes rather than 2048 bytes
      d suppress warning for non-identical files with same initial 64K
      l UDF - long ads used in file entries instead of short ads
      r UDF - number of ad's is random
      w open source files with write sharing
      t load segment in hex for El Torito boot image (e.g. -yt7C0)
      f use a faster way to generate short names
    -k (保留) 即使開啟部分來源檔案失敗時也強制建立影像檔
    -m 忽略 681,984,000 bytes 的影像檔限制,以便產生 650MB 以上的影像檔
    -a allocation summary shows file and directory sizes
    -q 只掃描來源檔案,不建立影像檔

    NOTE: 大部分選項允許您建立不依循 ISO-9660 的影像檔,
       並且也可能和一個或多個作業系統不相容。
       若您想嚴格的依循 ISO 標準或 DOS,
       使用 -w2 警告層級並更正任何不一致的報告
      

“引导”文件要自己提取舔加,支持目录
生成ISO文件命令—— 运行CMD:

Oscdimg -lWinXPS3PIN1 -t04/14/08,00:00:00 -h -n -o -m -bwsp3.bif c:\ewin2k My3IN1.ISO

常用参数意义:

-l : WinXPS3PIN1这是光盘的卷标
-t : 将所有文件设成指定的时间,看起来很专业*(美国时间, - 8个小时)
-h : 包括隐藏文件
-n : 允许长文件名
-b位置 :  指定引导扇区文件的位置。不能使用任何空格,例如,-bwsp3.bif


-o : 这是最重要的。自动判断重复文件,对重复文件只处理一次,并自动修改相关的文件指向。默认是使用文件大小和MD5算法进行比较(我也不太懂,大概是和CHECKSUM差不多概念的方法吧)从概率角度来看准确性相当高,但并不是“逐字节对比”。如果你要求逐字节对比,用-oc参数。不过速度极慢。

-m : 不加这个参数的话,将不能产生大于650M的ISO映象
作者: dvd008    时间: 2009-7-31 16:15
一直用他的模板:
分别保存为bat,
将 OSCDIMG.exe,pe.bif, bat,c 盘建 9pe 和 WXPE 目录,
9pe 里面放 winpe.is_,WINNT.XPE ,WXPE和外置程序目录,执行bat 后,会生成win9PE.iso。
WXPE 目录放 WXPE 目录,就是内核,执行bat,生成 winpe.iso。
可自己修改卷标,等名称。

内核不带启动文件:
oscdimg.exe -h -m -o -l"winpe" -n -x "C:\WXPE" "winpe.iso"

内核带启动文件:
oscdimg.exe -h -m -o -l"winpe" -n -x -b"pe.bif" "C:\WXPE" "winpe.iso"

带外置程序:
oscdimg.exe -h -m -o -l"win9pe" -n -b"pe.bif" -x "c:\9pe" "win9PE.iso"
作者: hw5837    时间: 2009-7-31 16:15
已经解决了,好似耗用资源大了少少
作者: hw5837    时间: 2009-7-31 16:17
-X应该对应ULTRAISO里面的MAX(221)选项吧
作者: mapeimapei    时间: 2009-7-31 16:19
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=143494&highlight=%2Bmapeimapei

附上oscdimg的命令参数:

oscdimg
[-blocation] [-d] [-h] [-j1] [-j2] [-llabelname] [-n] [-nt] [-o[i][s]] [-tmm/dd/yyyy,hh:mm:ss [-g]] [-x] sourceroot [image_file]

选项 描述  -b location
指定 El Torito 引导扇区文件的位置。不要使用任何空格。
例如,
-bc:\directory\Etfsboot.com
-d
不强制将小写字母文件名转换为大写字母。
-g
对所有文件使用通用协调时间 (UCT) 而不是当地时间。
-h
包括隐藏文件和目录。
-j1
对 Joliet Unicode 文件名进行编码,并在 ISO-9660 名称空间中生成符合 DOS 8.3 标准的文件名。这些文件名可以被 Joliet 系统或传统的 ISO-9660 系统读取,但是 Oscdimg 可能会更改 ISO-9660 命名空间中的一些文件名以符合 DOS 8.3 和/或 ISO-9660 命名限制。
当使用 -j1-j2 选项时,-d-n-nt 选项不会应用且无法使用。
-j2
对不含标准 ISO-9660 名称的 Joliet Unicode 文件名进行编码。(要求 Joliet 操作系统从 CD-ROM 读取文件。)
当使用 -j1-j2 选项时,-d-n-nt 选项不会应用且无法使用。
-l labelname
指定卷标。不要在 llabelname 之间使用空格。
例如,
-lMYLABEL
-n
允许使用长文件名。
-nt
允许与 Windows NT 3.51 兼容的长文件名。
-o
通过对重复的文件仅进行一次编码来优化存储。
-oi
通过对重复的文件仅进行一次编码来优化存储。比较文件时,忽略菱形压缩时间戳。
-os
通过对重复的文件仅进行一次编码来优化存储。在创建映像时显示重复的文件。
-ois
通过对重复的文件仅进行一次编码来优化存储。比较文件时,忽略菱形压缩时间戳。在创建映像时显示重复的文件。
-t mm/dd/yyyy,hh:mm:ss
为所有文件和目录指定时间戳。不要使用任何空格。使用美国日期格式和 24 小时制。可以在项目间使用任何分隔符。
例如,
-t12/31/2000,15:01:00
-x
计算并编码映像中的 AutoCRC 值。
sourceroot
必需。指定您要创建到 .iso 映像中的 Windows PE 文件的位置。
image_file
指定要从 Windows PE 文件创建的 .iso 映像文件的名称。

作者: hw5837    时间: 2009-7-31 16:23
我参照HHH333、天琴、小马的PE做了一个全内置的,想请各位高手指点下
作者: fujianabc    时间: 2009-7-31 17:54
贴一个完整版的oscdimg参数说明,里面包含了很多help文件中没有的隐藏参数

OSCDIMG 2.55 CD-ROM and DVD-ROM Premastering Utility
Copyright (C) Microsoft, 1993-2007. All rights reserved.
Licensed only for producing Microsoft authorized content.

Usage: OSCDIMG [options] sourceroot targetfile

ISO 9660 options: These options cannot be combined with Joliet or UDF options
-n  Use to allow long file names (longer than DOS 8.3 names)
-nt Use to allow long file names, but restrict those names for
     NT 3.51 compatibility
-d  Use to allow lowercase file names
The length of the file name plus the length of the file name extension shall
not exceed 30 characters for the ISO 9660 file system.  ISO 9660 is the most
widely compatible of the three available file systems produced by CDIMAGE.
NOTE: The (-nt) option cannot be used with the (-d) option
Joliet options: These options cannot be combined with ISO 9660 options
-j1  This option is used to produce an image that has both the Joliet
      file system as well as the ISO 9660 file system on it.  The ISO
      9660 file system will be written with DOS compatible 8.3 file
      names.  The Joliet file system will have Unicode file names up
      to 64 characters long.
-j2  This option is used to produce an image that has only the Joliet
      file system on it.  Any system not capable of reading Joliet will
      only see a default text file alerting the user that this image is
      only available on computers that support Joliet.
-js  This option overrides the default text file used with the (-j2)
      option.  Example: -jsc:\readme.txt
Joliet is an extension to the ISO 9660 file system.  It was created to
overcome some of the limitations of that file system.  It allows longer
file names, Unicode characters, and directory depths greater than 8.  Please
note that using the (-j1) option does not duplicate all files on the image.
The (-j1) option simply allows both file systems to view all the data on the
disk.
NOTE: The (-j2) option cannot be used with any UDF options.
UDF options: These options cannot be combined with ISO 9660 options
-u1  This option is used to produce an image that has both the UDF file
      system and the ISO 9660 file system.  The ISO 9660 file system
      will be written with DOS compatible 8.3 file names.  The UDF file
      system will be written with Unicode file names.
-u2  This option is used to produce an image that has only the UDF
      file system on it.  Any system not capable of reading UDF will
      only see a default text file alerting the user that this image is
      only available on computers that support UDF.
-ur  This option overrides the default text file used with the (-u2)
      option.  Example: -urc:\readme.txt
-us  This option will create sparse file when available.  This can only
      be used with the (-u2) option.
-ue  This option will create embedded files.  This can only be used
      with the (-u2) option.
-uf  This option will embed UDF file identifier entries.  This can
      only be used with the (-u2) option.
-yl  This option will use long allocation descriptors instead of short
      allocation descriptors.
Three revisions of the UDF file system supported by CDIMAGE.
The default version is 1.50.
-udfver102 Writes UDF revision 1.02  (Supported: Windows 98 and later)
-udfver150 Writes UDF revision 1.50  (Supported: Windows 2K and later)
-udfver200 Writes UDF revision 2.00  (Supported: Windows XP and later)
NOTE:  See DVD help for information on UDF and DVD Video/Audio images.
Boot options: These options can be used to create bootable CD/DVD images
The following options may only be used for single boot entry images and may
not be combined with any multi-boot entry switches.
-b  This option is used to specify the file that will be written in the
     boot sector(s) of the disk.  Example: -bc:\location\cdboot.bin
-p  This option specifies the value to use for the Platform ID in the
     El Torito catalog.  The default is 0x00 to represent the x86
     platform.
-e  This option means not to use floppy disk emulation in the El Torito
     catalog.
The following options may be used to generate multi boot entry images and may
not be combined with any single boot entry switches.
Each multi-boot entry is seperated via a # token, as well as the number of
boot entries.  The options for a boot entry are seperated via a comma token.
Each boot option must specify the boot code for that option.
-bootdata:<num>#defaultbootentry#bootentry2#bootentryN
BootEntryOptions:
b   This option is used to specify the file that will be written in the
     boot sector(s) of the disk.  Example: -bc:\location\cdboot.bin
p   This option specifies the value to use for the Platform ID in the
     El Torito catalog.  The default is 0x00 to represent the x86
     platform. 0xEF represents an EFI-based system
e   This option means not to use floppy disk emulation in the El Torito
     catalog.
t   Specifies the El Torito load segment.  If not specified, defaults to
     0x7C0
Example:
-bootdata:2#p0,bc:\location\etfsboot.com#pEF,bc:\location\ESPBootFile
This specifies a multi-boot image with the default image having an x86 boot
sector that launches the ETFSBOOT.com bootcode, and a secondary EFI boot
image that launches ESPBootFile when booted
Optimize options: These options configure optimizations
-o  This option will encode duplicate files only once.  This uses
     a MD5 hashing algorithm to compare files.
-oc This option will encode duplicate files only once.  It does
     a binary compare on the files and is slower.
-oi This option will ignore diamond compression timestamps when
     comparing files.
Order options: These options allow specific file layout on disk
-y5  This option will write all files in an i386 directory first and in
      reverse sort order.
-yo  This option specifies a text file that has a layout for the files
      to be placed in the image.  The rules for this file are listed
      below.
Rules for order file.
1. The order file shall be in ANSI.
2. The order file shall end in a new line.
3. The order file shall have one file per line.
4. Each file shall be specified relative to the root of the image.
5. Each file shall be specified as a long file name.  No short names are
   allowed.
6. Each file path cannot be longer than MAX_PATH, including volume name.
For example:
If d:\cdimage looked as follows:
d:\cdimage\1\1.txt
d:\cdimage\2\2.txt
d:\cdimage\3\3.txt
d:\cdimage\3\3_5.txt
d:\cdimage\This is a long name.txt
And you ran the following: cdimage -yod:\orderfile.txt d:\cdimage image.iso
Then d:\orderfile.txt might look like this:
This is a long name.txt
1\1.txt
3\3_5.txt
2\2.txt
3\3.txt
Note that not all files must be listed in the order file.  
Any files that are not listed in this file shall be ordered as they would if
there was no ordering file.
NOTE: The (-yo) option will take precedence over the (-y5) option.  Also, see
      the DVD help for ordering information on DVD Video/Audio disks.
DVD options: These options allow for DVD Video/Audio disk creation
-uv  This option specifies that UDF Video Zone compatibility is to
      be enforced.  This means UDF 1.02 and ISO 9660 are written to
      the disk.  Also, all files in the VIDEO_TS, AUDIO_TS, and
      JACKET_P directories will be written first.  These directories
      take precedence over all other ordering rules used for this image.
-ut  This option is used to truncate the ISO 9660 portion of the image.
      When this option is used, only the VIDEO_TS, AUDIO_TS, and
      JACKET_P directories will be visible from the ISO 9660 file
      system.
NOTE: These options cannot be combined with ISO, Joliet, or UDF options
NOTE: UDF file and directory names in VIDEO_TS, AUDIO_TS, and JACKET_P
      will use 8-bit characters as specified by the DVD Video spec.
Mesg options: These options allow customization for what information is shown
-w1 This option reports all non-ISO or non-Joliet compliant file names
     or depths
-w2 This option reports all non-DOS compliant file names.
-w3 This option reports all zero-length files.
-w4 This option reports each file name copied to the image.
-yd This option suppresses warnings for non-identical files with the
     same initial 64K.
-a  This option displays the allocation summary for files and
     directories.
-os This option will show duplicate files when creating the image.
General Options: These are general options on image creation
-l  This options specifies the volume label.  This should be 32
     characters or less.  There is no space after this option.
     Example: -lMyVolume
-t  This option specifies a time stamp for all files and directories
     on the image.  Example: -t12/31/2000,15:01:00
-g  This option  makes all times encoded in GMT time rather than the
     local time.
-h  This option will include all hidden files and directories under the
     source path for this image.
-c  This option will use ANSI file names instead of OEM file names.
-y6 This options allows directory records to be exactly aligned at the
     end of sectors.
-yw This option opens source files with write sharing.
-k  This option creates an image even if it fails to open some of the
     source files.
-q  This option just scans the source files only; it does not create
     an image.
-m  This option is used to ignore the maximum size limit or an image.
-maxsize This option overrides the default maximum size of an image.
          The default value is a 74 minute CD unless UDF is used, in
          which case the default is no maximum size.  The value
          specified here is represented in MB.
          Example: -maxsize:4096 limits the image to 4096MB.
NOTE: Option (-m) cannot be used with option (-maxsize).

[ 本帖最后由 fujianabc 于 2009-7-31 17:56 编辑 ]




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3