|
是修改BCD
D0Z有一个贴子
实现PE2.0与Vista安装盘双引导的方法
工具:VISTA MSDN原版光盘,VISTA AIK
平台:XP PRO SP2
步骤:
一、准备工作
1、从VISTA系统中提取bcdedit.exe、bootmgr.exe.mui、memtest.exe.mui到E盘根目录下
2、定制WinPE.wim
在命令提示符下执行下列命令
引用:
c:
cd "C:\Program Files\Windows AIK\Tools\PETools\"
copype.cmd x86 e:\pe
imagex /apply e:\pe\winpe.wim 1 e:\pe\mount
copy "c:\program files\Windows AIK\Tools\x86\imagex.exe" e:\pe\mount\Windows\System32
copy e:\bcdedit.exe e:\pe\mount\Windows\System32
peimg /prep e:\pe\mount\Windows
输入yes继续执行
imagex /unmount /commit e:\pe\mount
copy e:\pe\winpe.wim e:\winpe.wim
二、修改光盘引导菜单
1、用UltraISO打开VISTA MSDN原版光盘,提取boot目录的bcd(无扩展名)到E盘
2、在命令提示符下执行下列命令
引用:
e:
ren bcd tmp
bcdedit /import tmp
bcdedit
bcdedit /timeout 15
bcdedit /set {bootmgr} locale zh-CN
bcdedit /set {default} locale zh-CN
bcdedit /set {memdiag} locale zh-CN
bcdedit /set {default} description "安装 Vista ULTIMATE"
bcdedit /copy {default} /d "启动 Windows PE 2.0"
执行完毕后,会返回下列信息
The entry was successfully copied to {6eb5d89a-0822-11dc-89f2-005056c00008}
注意:{6eb5d89a-0822-11dc-89f2-005056c00008}是由系统随机生成的菜单ID标识,不同机子可能会不相同。
继续执行下列命令:
引用:
bcdedit /set {6eb5d89a-0822-11dc-89f2-005056c00008} device ramdisk=[boot]\boot\winpe.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
bcdedit /set {6eb5d89a-0822-11dc-89f2-005056c00008} osdevice ramdisk=[boot]\boot\winpe.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
bcdedit /displayorder {6eb5d89a-0822-11dc-89f2-005056c00008} -addlast
bcdedit /export bcd
del tmp
三、制作完毕
用UltraISO打开VISTA MSDN原版光盘,将e盘下的bcd、winpe.wim添加到光盘boot目录下,将bootmgr.exe.mui、memtest.exe.mui添加到光盘boot\zh-cn目录下,然后保存并刻盘即可。 |
|