熱點推薦:
您现在的位置: 電腦知識網 >> 操作系統 >> Windows優化 >> 正文

自己做WIN2000“N合1”光盤

2022-06-13   來源: Windows優化 

  這段時間流行了一陣N合最早是WIN的PROSERVER和ADVSERVER三個版本做成一張光盤剛開始我還以為是簡單的把三個系統的安裝盤刻在一張上面後來大概算了一下少說也有MG的數據不太可能下了一張來看看發現做法非常新鮮
  
  
    其實WIN的三個版本的安裝盤中有大量的文件是相同的特別是語言包/字庫(I\LANG目錄)以及寫字板等自帶應用程序以及那個M的drivercab不同的只是相對少數的系統文件這種N合光盤將ISO映象經過特殊處理重復的文件實際數據在光盤上只有一份通過類似於修改光盤目錄表的辦法讓不同的目錄/文件指向相同的數據區完成ISO修改後再刻成光盤這樣既省了空間又讓每個目錄看起來仍然獨立完整
  
  
    那麼到底有多少相同呢?我自己做了個實驗我有一個WINK PRO安裝目錄和一個ADV SERVER安裝目錄分別是M和M左右(為了省空間我去掉了除簡/繁體中文外的其它語言包象韓文日文阿拉伯文我這輩子都用不到)兩個目錄如果簡單的刻在一張盤上將占M左右的空間而用N合的方法相同文件只處理一次合並下來只有M左右照這個數字看來二者有%是相同的!不同部分只占各自的%%!依此數字估算就算將SERVER也加進去最後的大小也應該只有M相對於簡單相加的M幾乎少了一半如果你不想將三個差不多的WIN分別用三張CDR保存的話可以考慮自己做個N合光盤
  
  
    說到這裡不僅要提一下DOS/WIN文件系統的落後UNIX/LINUX從最開始就提供了符號連接的功能一個簡單的ln命令就可以完成上面的工作而在DOS/WIN下這種操作必須借助專門的軟件通過修改ISO進行而且這種結構還不能存在於硬盤上因為它在所有針對DOS/WIN的磁盤檢查軟件看來都是交叉連接會被更正
  
    好了別扯遠了話說回來理解這種方式很容易實際做起來呢?關鍵是相同文件是怎麼判斷靠人工是很麻煩的實際上微軟內部提供了一個工具叫CDIMAGE專門干這個加上一個o參數就可以實現自動優化的功能MS很多內部發行版本都是用這個辦法在一張盤上這個小工具解壓只有K
  運行cdimage它會給出詳細的命令參數
  
  CDIMAGE CDROM Premastering Utility
  
  Copyright (C) Microsoft All rights reserved
  
  For Microsoft internal use only
  
  Usage: CDIMAGE [options] sourceroot targetfile
  
     l volume label no spaces (eg lMYLABEL)
  
     t time stamp for all files and directories no spaces any delimiter
  
       (eg t//::)
  
     g encode GMT time for files rather than local time
  
     h include hidden files and directories
  
     n allow long filenames (longer than DOS names)
  
     nt allow long filenames restricted to NT compatibility
  
       (nt and d cannot be used together)
  
     d dont force lowercase filenames to uppercase
  
     c use ANSI filenames versus OEM filenames from source
  
     j encode Joliet Unicode filenames AND generate DOScompatible
  
       filenames in the ISO name space (can be read by either
  
       filenames in the ISO name space (can be read by either
  
       Joliet systems or conventional ISO systems but some of the
  
       filenames in the ISO name space might be changed to comply
  
       with DOS and/or ISO naming restrictions)
  
     j encode Joliet Unicode filenames without standard ISO names
  
       (requires a Joliet operating system to read files from the CD)
  
       When using the j or j options the n nt and d options
  
       do not apply and cannot be used
  
     js nonJoliet readmetxt file for images encoded with j option
  
       (eg jsc:\location\readmetxt) This file will be visible as
  
       the only file in the root directory of the disc on systems that
  
       do not support the Joliet format (Windows NT x etc)
  
     u encode UDF file system along with mirror ISO file system
  
       (n nt d c or j j options apply to ISO portion)
  
     u encode UDF file system without a mirror ISO file system
  
       (requires a UDF capable operating system to read the files)
  
     us nonUDF readmetxt file for images encoded with u option
  
       (eg usc:\location\readmetxt) This file will be visible as
  
       the only file in the root directory of the disc on systems that
  
       do not support the UDF format
  
     b El Torito boot sector file no spaces
  
       (eg bc:\location\cdbootbin)
  
     s sign image file with digital signature (no spaces provide RPC
  
     s sign image file with digital signature (no spaces provide RPC
  
      server and endpoint name like sServerName:EndPointName)
  
     x compute and encode AutoCRC values in image
  
     o optimize storage by encoding duplicate files only once
  
     oc slower duplicate file detection using binary comparisons rather
  
      than MD hash values
  
     oi ignore diamond compression timestamps when comparing files
  
     os show duplicate files while creating image
  
      (o options can be combined like ocis)
  
     w warning level followed by number (eg w)
  
       report nonISO or nonJoliet compliant filenames or depth
  
       report nonDOS compliant filenames
  
       report zerolength files
  
       report each file name copied to image
  
     y test option followed by number (eg y) used to generate
  
      nonstandard variations of ISO for testing purposes:
  
       encode trailing version number ; on filenames ()
  
       round directory sizes to multiples of K ()
  
       write \i directory files first in reverse sort order
  
       allow directory records to be exactly aligned at ends of sectors
  
       (ISO conformant but breaks MSCDEX)
  
       warn about generated shortnames for bit apps under NT
  
      b blocksize bytes rather than bytes
  
      b blocksize bytes rather than bytes
  
      d suppress warning for nonidentical files with same initial K
  
     k (keep) create image even if fail to open some of the source files
  
     m ignore maximum image size of bytes
  
     a allocation summary shows file and directory sizes
  
     q scan source files only dont create an image file
  
     NOTE: Many of these options allow you to create CD images
  
        that are NOT compliant with ISO and may also
  
        NOT be compatibile with one or more operating systems
  
        If you want strict ISO and DOS compliance use the w
  
        warning level and correct any discrepencies reported
  
        YOU are responsible for insuring that any generated CDs
  
        are compatible with all appropriate operating systems
  
        Also note that Microsoft company information is placed
  
        in the image volume header so dont use this program
  
        to generate CDs for companies other than Microsoft
  
  當
From:http://tw.wingwit.com/Article/os/youhua/201311/10949.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.