光盤版和硬盤版的WinPE2.0實(shí)現(xiàn)方法已經(jīng)很多了。U盤版的WinPE1.X也比較多,很多人問(wèn)我應(yīng)該怎樣弄U盤啟動(dòng)的WinPE2.0,其實(shí)很簡(jiǎn)單,至少有2種方式。
   先說(shuō)一種RAM方式引導(dǎo)的,這也是我推薦的一種。
   1、找個(gè)你認(rèn)為好用的WinPE2.0光盤鏡像。以微軟默認(rèn)的結(jié)構(gòu)為例,主要文件目錄結(jié)構(gòu)
│  bootmgr
│
├─boot
│  │  bcd
│  │  boot.sdi
│  │
│  └─fonts
│          chs_boot.ttf
│          wgl4_boot.ttf
│
└─Sources
        boot.wim
啟動(dòng)方式為bootmgr讀取bootcd文件,bcd文件中包含的RAM鏡像Sourcesoot.wim。
   2、用bootsect.exe實(shí)現(xiàn)U盤的引導(dǎo)。(注意選擇盤符u:)
   運(yùn)行  :bootsect /nt60 u: /force /mbr 
3、創(chuàng)建bcd引導(dǎo)配置文件。 運(yùn)行
bcdedit /createstore c:123                                                     ?
bcdedit /store c:123 /create {bootmgr} /d "Windows Boot Manager"                 ?
bcdedit /store c:123 /set {bootmgr} device boot                           ?
bcdedit /store c:123 /timeout 3                                                 ?
bcdedit /store c:123 /set {bootmgr} locale "zh-CN" ?
    4、創(chuàng)建RAM入口
bcdedit /store c:123 /create {ramdiskoptions} /d "啟動(dòng) Windows PE"
bcdedit /store c:123 /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store c:123 /set {ramdiskoptions} ramdisksdipath ootoot.sdi
bcdedit /store c:123 /create {255d7198-65d8-11dd-ba90-005056c00008} /d "啟動(dòng) Windows PE" /application osloader
   5、具體配置
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} device ramdisk=[boot]sourcesoot.wim,{ramdiskoptions}
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} path windowssystem32ootwinload.exe
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} osdevice ramdisk=[boot]sourcesoot.wim,{ramdiskoptions}
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} systemroot windows
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} winpe yes
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} detecthal yes
bcdedit /store c:123 /displayorder {255d7198-65d8-11dd-ba90-005056c00008} /addlast
好了,把c:123改名為bcd,按照第1步中的文件目錄結(jié)構(gòu)把相應(yīng)的文件拷貝到U盤上就可以實(shí)現(xiàn)U盤啟動(dòng)的WinPE2.0了。
我們還可以進(jìn)一步完善它
1、雖然設(shè)置了 /set {bootmgr} locale “zh-CN” 此時(shí)的引導(dǎo)說(shuō)明還是英文的, 要顯示中文,需要相應(yīng)的mui文件放到bootzh-cn目錄。
2、添加MEMTEST.EXE內(nèi)存測(cè)試項(xiàng)
bcdedit /store c:123 /create {memdiag} /d "Windows 內(nèi)存診側(cè)"                     ?
bcdedit /store c:123 /set {memdiag} device boot                           ?
bcdedit /store c:123 /set {memdiag} path ootmemtest.exe                       ?
bcdedit /store c:123 /toolsdisplayorder {memdiag} /addlast                       ?
bcdedit /store c:123 /set {memdiag} locale "zh-CN" ?
   另外還有一種實(shí)現(xiàn)U盤啟動(dòng)的WinPE2.0的方法,類似于把WinPE2.0安裝到U盤。
  1、展開(kāi)boot.wim到U盤(注意盤符)imagex /apply d:sourcesoot.wim 1 u:
   2、創(chuàng)建bcd引導(dǎo)配置文件。 運(yùn)行
bcdedit /createstore c:123                                                     ?
bcdedit /store c:123 /create {bootmgr} /d "Windows Boot Manager"                 ?
bcdedit /store c:123 /set {bootmgr} device boot                           ?
bcdedit /store c:123 /timeout 3                                                 ?
bcdedit /store c:123 /set {bootmgr} locale "zh-CN" ?
    3、創(chuàng)建引導(dǎo)入口
bcdedit /store c:123 /create {255d7198-65d8-11dd-ba90-005056c00008} /d "啟動(dòng) Windows PE" /application osloader
   4、具體配置
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} device partition=boot
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} path windowssystem32ootwinload.exe
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} osdevice partition=boot
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} systemroot windows
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} winpe yes
bcdedit /store c:123 /set {255d7198-65d8-11dd-ba90-005056c00008} detecthal yes
bcdedit /store c:123 /displayorder {255d7198-65d8-11dd-ba90-005056c00008} /addlast
    5、拷貝boot文件夾和bootmgr文件到U盤。
   完成
另外,如果用bootsect不能實(shí)現(xiàn)U盤引導(dǎo),可以用diskpart,運(yùn)行
diskpart
select disk 1
clean
create partition primary
select partition 1
active
format fs=ntfs quick
assign
exit
-----------------------------------
請(qǐng)問(wèn)上面采用的 GUID {255d7198-65d8-11dd-ba90-005056c00008} 是從哪里獲得的?
是不是所有采用U盤做PE啟動(dòng)都用這個(gè)GUID?
這個(gè)文件 也需要在U盤上嗎?
windowssystem32ootwinload.exe
GUID是系統(tǒng)返回的值,第1種方法不需要winload.exe
......................
在“RAM方式引導(dǎo)的”的進(jìn)一步完善的第一步驟中說(shuō)到:“如果要顯示中文,則還要拷貝相應(yīng)MUI文件”,請(qǐng)問(wèn):要拷貝哪一個(gè)mui,文件名是什么?從哪里拷貝?(源文件在那個(gè)文件夾中?)拷到哪里去?(哪個(gè)文件夾?)總共要拷貝幾個(gè)文件?分別是?
在我的2和1pe里面就有,或者你裝waik,vista sp1沒(méi)有的
...............
 
 
                         
                                
 
                                





 
                        
