二.編輯“txtsetup.sif”文件
1. 修改[SourceDisksFiles]參數(shù)
打開“E:\dell\I386”文件夾,找到一個(gè)名為“txtsetup.sif” 的文件,這是Windows 2003在安裝時(shí)加載驅(qū)動(dòng)程序的信息文件,用寫字板程序打開它。按“Ctrl+F”快捷鍵,打開查找對(duì)話框,以“[SourceDisksFiles]”為關(guān)鍵字進(jìn)行查找。找到這個(gè)字段后,其下面已經(jīng)存在一些內(nèi)容
![](/d/20211018/d34a714c37863a50a88a92f3315e5dd5.gif)
再以“[”為關(guān)鍵字查找到這個(gè)字段的末尾(注意:不是整個(gè)文件內(nèi)容的末尾),添加以下內(nèi)容:“lsi_sas.sys = 1,,,,,,3_,4,1,,,1,4 percsas.sys = 1,,,,,,3_,4,1,,,1,4”
![](/d/20211018/cf1d259c5304f5288e3b7a14745882f0.gif)
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”是描述驅(qū)動(dòng)程序所在位置的代碼。代碼的格式為“filename_on_source=diskid,subdir,upgradecode,newinstallcode,spare,spare,newfilename”,在“txtsetup.sif”文件中的“[SourceDisksNames]”和“[WinntDirectories]”等字段中有詳細(xì)的描述。
![](/d/20211018/258ed549147e972f0d55ad1fe9146435.gif)
在實(shí)際操作時(shí),絕對(duì)不可以照搬代碼!特別是擴(kuò)展名為sys的文件“lsi_sas.sys”,它是RAID驅(qū)動(dòng)程序目錄“D:\w2003RAID\$OEM$\$1\drivers\ sas_raid\r194052 ”中的驅(qū)動(dòng)程序文件名,如果您的RAID驅(qū)動(dòng)程序與本文所述的不同,則只需換成目錄中相應(yīng)的文件即可。而等號(hào)后面的代碼,一般可以直接照抄使用。
3. 編輯“txtsetup.oem”文件
拷貝txtsetup.oem—[HardwareIds.scsi.MegaSR]中參數(shù)添加到txtsetup.oem--- [HardwareIdsDatabase]中,首先切換到前面打開的“txtsetup.oem”文件,以“[HardwareIds.”為關(guān)鍵字進(jìn)行搜索,應(yīng)該可以找到類似“[HardwareIds.SICS.MegaSR]”的字段
該字段下的代碼如:id = "PCI\VEN_1000DEV_0054SUBSYS_1F041028", "lsi_sas"。
切換到剛才打開的“txtsetup.sif”文件窗口中,以“[HardwareIdsDatabase]”為關(guān)鍵字進(jìn)行搜索。找到后,將“txtsetup.oem”文件中“[HardwareIds.scsi.MegaSR]”字段下的代碼拷貝到“txtsetup.sif”文件的“[HardwareIdsDatabase]”字段末尾。這里直接搜索[Map.Computer]
就是[HardwareIdsDatabase]末尾,不過,我們需要更改一下代碼的格式,如將:
“id = "PCI\VEN_1000DEV_0054SUBSYS_1F041028", "lsi_sas"”
改為:“PCI\VEN_1000DEV_0054SUBSYS_1F041028 = " lsi_sas "”(其他代碼修改方法相同),
更改后的代碼如下:
"PCI\VEN_1000DEV_0054SUBSYS_1F041028" = "lsi_sas"
"PCI\VEN_1000DEV_0054SUBSYS_1F061028" = "lsi_sas"
"PCI\VEN_1000DEV_0054SUBSYS_1F071028" = "lsi_sas"
"PCI\VEN_1000DEV_0054SUBSYS_1F081028" = "lsi_sas"
"PCI\VEN_1000DEV_0054SUBSYS_1F091028" = "lsi_sas"
"PCI\VEN_1000DEV_0058SUBSYS_1F0E1028" = "lsi_sas"
"PCI\VEN_1000DEV_0058SUBSYS_1F0F1028" = "lsi_sas"
"PCI\VEN_1000DEV_0058SUBSYS_1F101028" = "lsi_sas"
"PCI\VEN_1000DEV_0058SUBSYS_021D1028" = "lsi_sas"
"PCI\VEN_1028DEV_0015SUBSYS_1F011028" = "percsas"
"PCI\VEN_1028DEV_0015SUBSYS_1F021028" = "percsas"
"PCI\VEN_1028DEV_0015SUBSYS_1F031028" = "percsas"
"PCI\VEN_1000DEV_0060SUBSYS_1F0A1028" = "percsas"
"PCI\VEN_1000DEV_0060SUBSYS_1F0B1028" = "percsas"
"PCI\VEN_1000DEV_0060SUBSYS_1F0C1028" = "percsas"
"PCI\VEN_1000DEV_0060SUBSYS_1F0D1028" = "percsas"
"PCI\VEN_1000DEV_0060SUBSYS_1F111028" = "percsas"
提示:不同RAID驅(qū)動(dòng)程序的代碼內(nèi)容各不相同,應(yīng)該根據(jù)具體情況靈活處理。
檢查拷貝修改的內(nèi)容是否與原有的內(nèi)容重復(fù),如果有,則把重復(fù)的一行刪除。
4. 修改“[SCSI.load]”和“[SCSI]”
接著在“txtsetup.sif”文件查找“[SCSI.load]”和“[SCSI]”字段末尾添加如下內(nèi)容:
[SCSI.load]
lsi_sas = lsi_sas.sys,4(等號(hào)前的字符根據(jù)驅(qū)動(dòng)酌情更改,等號(hào)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
[注意]此信息是從驅(qū)動(dòng)的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_1000DEV_0054SUBSYS_1F041028", "lsi_sas"
id = "PCI\VEN_1000DEV_0054SUBSYS_1F061028", "lsi_sas"
id = "PCI\VEN_1000DEV_0054SUBSYS_1F071028", "lsi_sas"
id = "PCI\VEN_1000DEV_0054SUBSYS_1F081028", "lsi_sas"
id = "PCI\VEN_1000DEV_0054SUBSYS_1F091028", "lsi_sas"
id = "PCI\VEN_1000DEV_0058SUBSYS_1F0E1028", "lsi_sas"
至此,我們就把自己的RAID驅(qū)動(dòng)程序的相關(guān)信息添加到了Windows 2003安裝信息文件“txtsetup.sif”中了!
上述添加自定義RAID信息內(nèi)容的步驟看似很復(fù)雜,其實(shí)也就是同時(shí)打開Windows 2003安裝文件目錄中的“txtsetup.sif”文件和驅(qū)動(dòng)程序目錄中的“.inf”或“.oem”信息文件,然后將后者文件中相關(guān)字段下面的內(nèi)容一一對(duì)應(yīng)地移植到“txtsetup.sif”文件中。知道了方法,做起來就容易了!