无忧启动论坛

标题: 实例——IBM R51e 18432XC本本用移动硬盘引导安装XP [打印本页]

作者: zzl    时间: 2006-10-31 21:26
标题: 实例——IBM R51e 18432XC本本用移动硬盘引导安装XP
以下是本人近来实际操作的过程,因为在此过程中在无忧论坛获得了不少帮助,特把此过程发布到无忧论坛上,呵呵,算是感谢无忧论坛上所有帮助过我的人吧:P

先做集成补丁、自动装驱动、自动应答的XP

一、先下载IBM OEM版的XP Pro SP2,然后随便在某个盘里建立一个目录WIBM,再把这镜像里根目录下的所有文件拷贝到WIBM下
二、然后根据下面的说明建立各个目录:


在DRIVERS目录里为本本的 网卡、热键、电源管理、LCD、南桥、指点杆驱动 分别建立5个目录,目录名承任意,并将驱动放入对应的目录下,注意:驱动不能是单个的EXE文件形式,要先解压它,然后将解压后得到的文件再放入对应的目录下


在SETUP目录下分别建立 IBMSOFT、NET1、NET2、WMP10四个目录:
1、IBMSOFT目录下分别为本本 声卡驱动、猫驱动、Software Installer程序、电源管理器软件、显卡驱动 建立五个目录AUDIO、CNMDMCDC、PKGMGR、PWRMGR、VIDEO,并将驱动放入对应的目录下,注意:驱动不能是单个的EXE文件形式,要先解压它,然后将解压后得到的文件再放入对应的目录下
2、NET1目录下放入 .net framework 1.1 和其中文语言包 安装程序,分别命名为 1NETFX.EXE、1LPACK.EXE。然后在微软网站上下载 KB867460.EXE、KB886903. EXE 放在此目录下
3、NET2目录下放入 .net framework 2 和其中文语言包 安装程序,分别命名为 2NETFX.EXE、2LPACK.EXE。然后在微软网站上下载 KB917283. EXE、KB922770. EXE 放在此目录下
4、WMP10目录下放入Windows Media Player10 的安装程序,命名为 WMP10. EXE。然后在微软网站上下载 KB911564. EXE、KB917734. EXE 放在此目录下
5、在SETUP目录下新建一个TXT文本文件输入如下内容:
start /wait %systemdrive%\SETUP\NET1\1NETFX.EXE /Q:A /C:"install.EXE /Q"

start /wait %systemdrive%\SETUP\NET1\1LPACK.EXE /Q:A /C:"inst.EXE /Q"

start /wait %systemdrive%\SETUP\NET1\KB867460.EXE /Q

start /wait %systemdrive%\SETUP\NET1\KB886903.EXE /Q

start /wait %systemdrive%\SETUP\WMP10\WMP10.EXE /Q:A /c:"setup_wm.exe /DisallowSystemRestore /Q "

start /wait %systemdrive%\SETUP\WMP10\KB911564.EXE /quiet /norestart /nobackup

start /wait %systemdrive%\SETUP\WMP10\KB917734.EXE /quiet /norestart /nobackup

start /wait %systemdrive%\SETUP\NET2\2NETFX.EXE /Q /C:"install.EXE /Q"

start /wait %systemdrive%\SETUP\NET2\2LPACK.EXE /Q /C:"install.EXE /Q"

start /wait %systemdrive%\SETUP\NET2\KB917283.EXE /Q

start /wait %systemdrive%\SETUP\NET2\KB922770.EXE /Q

start /wait %systemdrive%\SETUP\IBMSOFT\PKGMGR\SETUP.EXE /s

start /wait %systemdrive%\SETUP\IBMSOFT\VIDEO\SETUP.EXE /k

start /wait %systemdrive%\SETUP\IBMSOFT\AUDIO\setup.exe -s -sms

start /wait %systemdrive%\SETUP\IBMSOFT\CNMDMCDC\HXFSetup.exe -s

start /wait %systemdrive%\SETUP\IBMSOFT\PWRMGR\setup.exe -S -SMS

RD /S /Q %systemdrive%\SETUP

Exit
最后另存为 SETUP.cmd 文件,在此提供下载
SETUP.rar (393 Bytes, 下载次数: 106)


在SYSTEM32 目录下存放 OEMINFO.INI、OEMLOGO.BMP两个文件,这是OEM信息文件,当右击 我的电脑——属性——常规 标签里就能看见得
1、在SYSTEM32目录下新建一个TXT文本文件输入如下内容:
[Version]
Microsoft Windows XP Professional Edition
WinVer=5.1.2600

[General]
Manufacturer=IBM Corporation
Model=IBM ThinkPad R51e 18432XC

[Support Information]
Line1="Technical support for Windows/NT/2000/XP"
Line2="preinstalled on your IBM PC can be"
Line3="obtained from the IBM HelpCenter"
Line4=""
Line5="您可以从IBM帮助中心获得"
Line6="关于预装在您的IBM PC上"
Line7="Windows/2000/XP的技术支持"
最后另存为 OEMINFO.INI 文件,在此提供下载
2、OEMLOGO.BMP是一张170X120左右的BMP文件,太大的话会超出显示范围而显示不完全,太小的话也不是很好看。在此提供下载
SYSTEM32下的.rar (1.37 KB, 下载次数: 71)


在SVCPACK目录下放入从微软下载的补丁,补丁名称如下:
KB893803.EXE
KB873339.EXE
KB885835.EXE
KB885836.EXE
KB886185.EXE
KB886677.EXE
KB887472.EXE
KB888302.EXE
KB890046.EXE
KB890859.EXE
KB891781.EXE
KB893756.EXE
KB894391.EXE
KB896358.EXE
KB896423.EXE
KB896424.EXE
KB896428.EXE
KB898461.EXE
KB899587.EXE
KB899588.EXE
KB899589.EXE
KB899591.EXE
KB900485.EXE
KB900725.EXE
KB901017.EXE
KB901190.EXE
KB901214.EXE
KB902400.EXE
KB904706.EXE
KB905414.EXE
KB905749.EXE
KB908519.EXE
KB908531.EXE
KB910437.EXE
KB911280.EXE
KB911562.EXE
KB911567.EXE
KB911927.EXE
KB912919.EXE
KB913580.EXE
KB914388.EXE
KB914389.EXE
KB916595.EXE
KB917159.EXE
KB918899.EXE
KB919007.EXE
KB920214.EXE
KB920670.EXE
KB920683.EXE
KB920685.EXE
KB920872.EXE
KB921398.EXE
KB921883.EXE
KB922582.EXE
KB922616.EXE
KB922819.EXE
KB923191.EXE
KB923414.EXE
KB924191.EXE
KB924496.EXE
KB925486.EXE
QCHAIN.EXE
最后的QCHAIN.EXE在此提供下载
qchain.rar (14.6 KB, 下载次数: 69)


打开I386目录下的DOSNET.INF文件,在最后添加如下字段:
[OptionalSrcDirs]
SVCPACK
此文件在此提供下载
DOSNET.rar (38.9 KB, 下载次数: 67)


删除I386目录下的SVCPACK.IN_ 文件(如果有),然后新建一个TXT文本文件,输入如下内容:
[Version]
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600

[SetupData]
CatalogSubDir="I386\SVCPACK"

[SetupHotfixesToRun]
KB893803.EXE /quiet /norestart /nobackup
KB873339.EXE /quiet /norestart /n
KB885835.EXE /quiet /norestart /n
KB885836.EXE /quiet /norestart /n
KB886185.EXE /quiet /norestart /n
KB886677.EXE /quiet /norestart /n
KB887472.EXE /quiet /norestart /n
KB888302.EXE /quiet /norestart /n
KB890046.EXE /quiet /norestart /n
KB890859.EXE /quiet /norestart /n
KB891781.EXE /quiet /norestart /n
KB893756.EXE /quiet /norestart /n
KB894391.EXE /quiet /norestart /n
KB896358.EXE /quiet /norestart /n
KB896423.EXE /quiet /norestart /n
KB896424.EXE /quiet /norestart /n
KB896428.EXE /quiet /norestart /n
KB898461.EXE /quiet /norestart /n
KB899587.EXE /quiet /norestart /n
KB899588.EXE /quiet /norestart /n
KB899589.EXE /quiet /norestart /n
KB899591.EXE /quiet /norestart /n
KB900485.EXE /quiet /norestart /n
KB900725.EXE /quiet /norestart /n
KB901017.EXE /quiet /norestart /n
KB901190.EXE /quiet /norestart /n
KB901214.EXE /quiet /norestart /n
KB902400.EXE /quiet /norestart /n
KB904706.EXE /quiet /norestart /n
KB905414.EXE /quiet /norestart /n
KB905749.EXE /quiet /norestart /n
KB908519.EXE /quiet /norestart /n
KB908531.EXE /quiet /norestart /n
KB910437.EXE /quiet /norestart /n
KB911280.EXE /quiet /norestart /n
KB911562.EXE /quiet /norestart /n
KB911567.EXE /quiet /norestart /n
KB911927.EXE /quiet /norestart /n
KB912919.EXE /quiet /norestart /n
KB913580.EXE /quiet /norestart /n
KB914388.EXE /quiet /norestart /n
KB914389.EXE /quiet /norestart /n
KB916595.EXE /quiet /norestart /n
KB917159.EXE /quiet /norestart /n
KB918899.EXE /quiet /norestart /n
KB919007.EXE /quiet /norestart /n
KB920214.EXE /quiet /norestart /n
KB920670.EXE /quiet /norestart /n
KB920683.EXE /quiet /norestart /n
KB920685.EXE /quiet /norestart /n
KB920872.EXE /quiet /norestart /n
KB921398.EXE /quiet /norestart /n
KB921883.EXE /quiet /norestart /n
KB922582.EXE /quiet /norestart /n
KB922616.EXE /quiet /norestart /n
KB922819.EXE /quiet /norestart /n
KB923191.EXE /quiet /norestart /n
KB923414.EXE /quiet /norestart /n
KB924191.EXE /quiet /norestart /n
KB924496.EXE /quiet /norestart /n
KB925486.EXE /quiet /norestart /n
QCHAIN.EXE
最后另存为SVCPACK.INF文件,此文件在此提供下载
SVCPACK.rar (484 Bytes, 下载次数: 59)


在I386目录下新建一个TXT文本文件输入如下内容:
;SetupMgrTag
[Data]
    AutoPartition=0
    MsDosInitiated="0"
    UnattendedInstall="Yes"
    AutomaticUpdates=yes

[Unattended]
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    TargetPath=\WINDOWS
    FileSystem=Ignore
    Repartition=No
    UnattendSwitch="yes"
    WaitForReboot="No"

[GuiUnattended]
AdminPassword =*
EncryptedAdminPassword=NO
    AutoLogon=Yes
    AutoLogonCount=1
    OEMSkipRegional=1
    TimeZone=210
    OemSkipWelcome=1

[Display]
    BitsPerPel=32
    Xresolution=1024
    Yresolution=768
    Vrefresh=60

[UserData]
    ProductKey=HCBR8-FGC2K-RY7BM-HM3KT-BKVRW
FullName="ABC"
;这个选项用来指定你的名字,这将会显示在系统属性的”注册给“项目下,ABC可以修改
OrgName=" ABC"
;这个选项可以用来设置你的组织名称,这个也会显示在系统属性的“注册给”项目下,ABC可以修改
ComputerName= ABC
;在这个选项中你可以指定计算机的名称,这个名称会用在系统和网络中,而且该名称也会在系统属性的计算机名选项卡下,ABC可以修改

[RegionalSettings]
    LanguageGroup=10
    Language=00000804

[Identification]
    JoinWorkgroup=MSHOME

[Networking]
    InstallDefaultComponents=Yes

[GuiRunOnce]
%systemdrive%\SETUP\SETUP.cmd
最后另存为WINNT.SIF文件,此文件在此提供下载
WINNT.rar (654 Bytes, 下载次数: 57)


这时若用UltraISO把WIBM目录下的文件做成镜像,然后这张光盘光启本本后,除了手动选择一下系统要安装在哪个区以外,其余全是自动的!呵呵,镜像的引导信息boot.bin在此也提供下载
boot.rar (1.04 KB, 下载次数: 56)
其实还可以用Resource Hacker软件来修改I386目录下的WINNTBBU.DLL文件,以此来美化XP安装时的界面,不过我想既然是自动应答安装XP,会有多少人愿意盯着显示器看了?!!呵呵
注意:当安装完成后,会弹出对话框,提示“ATI控制面板无法启动”,这个没事,重气后就好了。再就是不是所有驱动都自动装上了,还需要在系统下“开始——程序——ThinkVantage——Software Installer”启用Software Installer来安装一部分无法自动安装驱动


(以下的环境是:本本上有C、D两个分区,C是活动的主分区,装有XP;D是逻辑分区。移动硬盘是新的,未分区。)

三、制作可引导的移动硬盘
1、用WinPM(Paragon Partition Manager)将移动硬盘划为一个活动的主分驱,并装载此分驱到系统下
2、去http://lib.verycd.com/2006/08/24/0000117156.html下载 深山红叶PE光盘工具箱 200608 V26 正式版,插上移动硬盘,然后在XP下用虚拟光驱加载下载好的镜像,并进入其 PROGRAMS\WINTOOLS\系统修复\深山红叶PE硬盘安装 目录,运行USBSETUP.CMD,照提示操作把深山红叶PE安装到移动硬盘上。然后再把此工具盘根目录下的bootfont.bin文件放到移动硬盘的根目录下
3、把WIBM文件夹复制到移动硬盘上,就放在根目录下就可以
4、打开 WIBM\I386\winnt.sif 文件,删除下面这一段:
      [GuiRunOnce]
      %systemdrive%\SETUP\SETUP.cmd
然后将文件另存为 unattend.txt
5、在 WIBM\I386\ 下新建一个文本文件,输入:
      start winnt32.exe /unattend:unattend.txt /syspart:d: /tempdrive:d: /noreboot
      然后另存为 setup.cmd

四、用移动硬盘引导本本安装XP
1、插上移动硬盘,重起本本,开机时按下F12选取由移动硬盘引导
2、进入红叶PE后,移动硬盘应该是C盘,D盘是本本上原来的C,那么E就是原来的D,所以我们要将系统安装至D盘(即原来本本上的活动主分区C盘)。先格式化D盘(原来的C),然后进入 C:\wibm\i386 目录,双击运行 setup.cmd。此时将会进入XP安装的界面,不过只是拷贝必要的文件到 D盘(原来的C),结束后将会返回桌面
3、打开 D:\$win_nt$.~bt\winnt.sif 文件,在其最后加入如下内容并保存:
       [GuiRunOnce]
      %systemdrive%\SETUP\SETUP.cmd
4、再拷贝 C:\wibm\$oem$\ 目录下所有文件到 D:\$win_nt$.~ls\$oem$\ 目录下
5、OK,重启本本,拔下移动硬盘,让本本由本地硬盘引导安装XP

终于写完了,这样以后再重做系统就不用再费光驱了,呵呵。。。其实稍加修改,照样能装大客户版的系统

[ 本帖最后由 zzl 于 2006-11-1 02:21 AM 编辑 ]
作者: 弄潮儿-NET    时间: 2006-10-31 21:52
目录图是拿什么软件画的?好像不错嘛
作者: zzl    时间: 2006-10-31 21:54
原帖由 弄潮儿-NET 于 2006-10-31 09:52 PM 发表
目录图是拿什么软件画的?好像不错嘛


photoshop CS2,呵呵

此帖还没做完。。。
作者: zzl    时间: 2006-11-1 02:23
郁闷。。。沙发不是自己坐的。。。呵呵
作者: k8t8    时间: 2007-2-13 17:08
标题: 看看
学学嘻嘻:)




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