在能夠進入Windows的情況下,Grub4dos和PE大多數時間可以這樣用
https://pan.baidu.com/s/1c1ZYNDY#list/path=%2F
Grub4dos的出現顛覆了傳統的EZBOOT光盤啟動模式,很多人用grub4dos來實現優盤啟動,同時grub4dos能夠安裝到本地硬盤上,啟動WINPE。看到電腦城維修員經常用USB啟動電腦,ghost安裝系統,優盤換來換去,時常感到很納悶,電腦本來能夠進入Windows,為什么不直接從硬盤啟動PE,而一定要格式化之后從優盤啟動PE?
我的辦法很簡單,進入windows,用bootice把grub4dos寫入MBR,把grldr和grldr.mbr拷貝到任何一個非系統盤,同目錄下編輯通用菜單menu.lst,菜單項包括啟動本地windows NT5.x和NT6.x,啟動各種PE等等。把Grub4dos寫入本地硬盤MBR的好處是,在PE下ghost安裝系統到C盤,如果安裝過程出現藍屏等異常情況,可以繼續從非系統盤的硬盤進入PE,重新安裝系統。當然如果你不喜歡Grub4dos為第一啟動項,可以修改boot.ini或者BCD菜單,用ntldr/bootmgr作為第一引導,引導grldr,然后引導PE。
一般地來說,一個硬盤重新分區不過1~2次,即使是新系統,很多也預裝了windows,只要能夠進入windows,就能夠從硬盤直接啟動PE。
我常用Uepon的通用PE,以通用PE為例,目錄結構如下:(以F盤為例)
X:\
│ grldr
│ grldr.mbr
│ menu.lst
├─BOOT\(Legacy BIOS啟動用)
│ ├─BOOTICE\(存放bootice工具)
│ ├─FbinstTool\(存放FbinstTool工具)
│ ├─imgs\(存放PE的ISO鏡像文件,各種軟件img鏡像文件)
│ ├─grub\(內有grldr.*、menu.lst的備份,批處理會自動把備份拷貝到根目錄,還存放sratlf的run模塊和網啟服務器tftpd32.*)
│ └─pxelinux.cfg\(存放pxelinux默認菜單default)
為了方便,我用寫了幾個批處理文件,快速地安裝PE到不同分區。
把WINPE鏡像及其他引導工具拷貝到C盤.bat
在boot.ini中增加grub4dos啟動項(WIN7右擊用管理員身份運行!!!)
在BCD文件中增加grub4dos啟動項.bat
刪除boot.ini中grub4dos啟動項.bat
......
menu.lst內容如下:
color white/blue blue/yellow light-red/blue 10
foreground FFFFFF
background 0000AD
timeout 1
default 0
title boot Windows by zhaohj
find --set-root --devices=h /ntldr || find --set-root --devices=h /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --devices=h /ntldr || find --set-root --devices=h /bootmgr
#rootnoverify (hd0,0)
chainloader /ntldr || chainloader /bootmgr
title WINPE by uepon (TonPE_V3.3.iso+firadisk)
find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
map --mem /boot/imgs/TonPE_V3.3.iso (0xff)
map --e820cycles=-1
map --hook
chainloader (0xff)
title tongyong WINPE by Uepon (TonPE.iso)
find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
map --mem /boot/imgs/firadisk.img (fd0)
map --mem /boot/imgs/TonPE.iso (0xff)
map --e820cycles=-1
map --hook
chainloader (0xff)
title tongyong WINPE by Uepon (TonPE_net.iso+firadisk)
find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
map --mem /boot/imgs/TonPE_net.iso (0xff)
map --e820cycles=-1
map --hook
chainloader (0xff)
title ghost by doshome
find --ignore-floppies --ignore-cd --set-root /boot/imgs/firadisk.img
map --mem /boot/imgs/ghost.img (fd0)
map --hook
chainloader (fd0)+1
root (fd0)
title run mem automenu by sratlf
command run --set-showsize=0 --e820cycles=-1 --mem --automenu --show.iso
title run fira automenu by sratlf
command run --set-showsize=0 --e820cycles=-1 --mem --fira --automenu --show.iso
title plpbt.bin
kernel (bd)/boot/grub/plpbt.bin
title Boot from pxelinux
pxe keep
chainloader --raw (bd)/pxelinux.0
#chainloader --force (bd)/pxelinux.0
title WINPE (startrom.0)
pxe keep
chainloader --force (bd)/startrom.0
title boot from hard disk
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
checkrange 0x80 read 0x8280 && map --hook
chainloader (hd0)+1
boot
title command line
commandline
title reboot
reboot
title halt
halt