二.編輯“txtsetup.sif”文件
1. 修改[SourceDisksFiles]參數
打開“E:\dell\I386”文件夾,找到一個名為“txtsetup.sif” 的文件,這是Windows 2003在安裝時加載驅動程序的信息文件,用寫字板程序打開它。按“Ctrl+F”快捷鍵,打開查找對話框,以“[SourceDisksFiles]”為關鍵字進行查找。找到這個字段後,其下面已經存在一些內容
再以“[”為關鍵字查找到這個字段的末尾(注意:不是整個文件內容的末尾),添加以下內容:“lsi_sas.sys = 1,,,,,,3_,4,1,,,1,4 percsas.sys = 1,,,,,,3_,4,1,,,1,4”
lsi_sas.sys = 1,,,,,,3_,4,1,,,1,4 (dell-1950-raid)
percsas.sys = 1,,,,,,3_,4,1,,,1,4 ((dell-2950-raid))
2. lsi_sas.sys注釋
這裡的“lsi_sas.sys = 1,,,,,,3_,4,1,,,1,4”是描述驅動程序所在位置的代碼。代碼的格式為“filename_on_source=diskid,subdir,upgradecode,newinstallcode,spare,spare,newfilename”,在“txtsetup.sif”文件中的“[SourceDisksNames]”和“[WinntDirectories]”等字段中有詳細的描述。
在實際操作時,絕對不可以照搬代碼!特別是擴展名為sys的文件“lsi_sas.sys”,它是RAID驅動程序目錄“D:\w2003RAID\$OEM$\$1\drivers\ sas_raid\r194052 ”中的驅動程序文件名,如果您的RAID驅動程序與本文所述的不同,則只需換成目錄中相應的文件即可。而等號後面的代碼,一般可以直接照抄使用。
3. 編輯“txtsetup.oem”文件
拷貝txtsetup.oem—[HardwareIds.scsi.MegaSR]中參數添加到txtsetup.oem--- [HardwareIdsDatabase]中,首先切換到前面打開的“txtsetup.oem”文件,以“[HardwareIds.”為關鍵字進行搜索,應該可以找到類似“[HardwareIds.SICS.MegaSR]”的字段
該字段下的代碼如:id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F041028", "lsi_sas"。
切換到剛才打開的“txtsetup.sif”文件窗口中,以“[HardwareIdsDatabase]”為關鍵字進行搜索。找到後,將“txtsetup.oem”文件中“[HardwareIds.scsi.MegaSR]”字段下的代碼拷貝到“txtsetup.sif”文件的“[HardwareIdsDatabase]”字段末尾。這裡直接搜索[Map.Computer]
就是[HardwareIdsDatabase]末尾,不過,我們需要更改一下代碼的格式,如將:
“id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F041028", "lsi_sas"”
改為:“PCI\VEN_1000&DEV_0054&SUBSYS_1F041028 = " lsi_sas "”(其他代碼修改方法相同),
更改後的代碼如下:
"PCI\VEN_1000&DEV_0054&SUBSYS_1F041028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F061028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F071028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F081028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F091028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_1F0E1028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_1F0F1028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_1F101028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_021D1028" = "lsi_sas"
"PCI\VEN_1028&DEV_0015&SUBSYS_1F011028" = "percsas"
"PCI\VEN_1028&DEV_0015&SUBSYS_1F021028" = "percsas"
"PCI\VEN_1028&DEV_0015&SUBSYS_1F031028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0A1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0B1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0C1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0D1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F111028" = "percsas"
提示:不同RAID驅動程序的代碼內容各不相同,應該根據具體情況靈活處理。
檢查拷貝修改的內容是否與原有的內容重復,如果有,則把重復的一行刪除。
4. 修改“[SCSI.load]”和“[SCSI]”
接著在“txtsetup.sif”文件查找“[SCSI.load]”和“[SCSI]”字段末尾添加如下內容:
[SCSI.load]
lsi_sas = lsi_sas.sys,4(等號前的字符根據驅動酌情更改,等號lsi_sas後代碼一般照抄使用)
具體操作如下:
cpqarry2 = cpqarry2.sys,4
symmpi = symmpi.sys,4
perc2 = perc2.sys,4
hpn = hpn.sys,4
cbidf2k = cbidf2k.sys,4
dac2w2k = dac2w2k.sys,4
dellcerc = dellcerc.sys,4
hpt3xx = hpt3xx.sys,4
cpqcissm = cpqcissm.sys,4
hpcisss = hpcisss.sys,4
afcnt = afcnt.sys,4
lsi_sas = lsi_sas.sys,4
percsas = percsas.sys,4
[BootBusExtenders.Load]
pci = pci.sys
acpi = acpi.sys
isapnp = isapnp.sys
acpiec = acpiec.sys
ohci1394 = ohci1394.sys
[SCSI]
末尾添加lsi_sas = "Dell SAS 5x and SAS 6x Controller Driver (Windows Server 2003 32-bit)"
ql10wnt = "QLogic PCI SCSI Host Adapter"
ql1080 = "Qlogic QLA1080, 64 bit PCI LVD SCSI HBA"
ql1280 = "Qlogic QLA1280, 64 bit PCI LVD SCSI HBA"
ql12160 = "QLogic QLA12160, 64 bit PCI DUAL 160M SCSI HBA"
ql2100 = "QLogic QLA2000/QLA2100 PCI Fibre Channel Adapter"
ql2200 = "QLogic QLA2200 PCI Fibre Channel Adapter"
ql2300 = "QLogic QLA2300 PCI Fibre Channel Adapter"
sym_hi = "LSI Logic C896 PCI SCSI Host Adapter"
sym_u3 = "LSI Logic C1010 PCI SCSI Host Adapter"
symc810 = "LSI Logic C8100 PCI SCSI Host Adapter"
symc8xx = "LSI Logic C8xx PCI SCSI Host Adapter"
symmpi = "LSI Logic PCI Fibre Channel/LSI Logic PCI-X Ultra320 SCSI Host Adapter"
hpn = "Hewlett Packard NetRAID-4M RAID Controller"
perc2 = "Dell PERC 2/3 RAID Controller"
perc2gat = "Dell PERC 2/3 RAID Controller (Gatling)"
lsi_sas = "Dell SAS 5x and SAS 6x Controller Driver (Windows Server 2003 32-bit)"
percsas = "DELL PERC5 and PERC6/CERC6 RAID Controller Driver (Server 2003 32 bit)"
[BootBusExtenders]
pci = "PCI Bus Driver",files.pci,pci
acpi = "ACPI Plug & Play Bus Driver",files.acpi,acpi
isapnp = "ISA Plug & Play Bus Driver",files.isapnp,isapnp
acpiec = "ACPI Embedded Controller Driver",files.none,acpiec
ohci1394 = "IEEE 1394 Bus OHCI Compliant Port Driver",files.ohci1394,ohci1394
[注意]此信息是從驅動的txtsetup.oem文件(或.INF文件)[SCSI]字段中獲取,如下圖:
scsi = DELL_SAS_2K3
[scsi]
# This section lists the options available for a particular component.
#
# <id> is the unique string for the option
# <description> is a text string, presented to the user in a menu
# <key_name> gives the name of the key to be created for the component in
# HKEY_LOCAL_MACHINE\ControlSet001\Services
DELL_SAS_2K3 = "Dell SAS 5x and SAS 6x Controller Driver (Windows Server 2003 32-bit)",lsi_sas
[HardwareIds.scsi.DELL_SAS_2K3]
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F041028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F061028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F071028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F081028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F091028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0058&SUBSYS_1F0E1028", "lsi_sas"
至此,我們就把自己的RAID驅動程序的相關信息添加到了Windows 2003安裝信息文件“txtsetup.sif”中了!
上述添加自定義RAID信息內容的步驟看似很復雜,其實也就是同時打開Windows 2003安裝文件目錄中的“txtsetup.sif”文件和驅動程序目錄中的“.inf”或“.oem”信息文件,然後將後者文件中相關字段下面的內容一一對應地移植到“txtsetup.sif”文件中。知道了方法,做起來就容易了!