|
大致测试了一下PXE启动,提点建议:
1:固定的文件,尽量放在IMG镜像中,FAT copy相对比较慢;
2:PESOFT.WIM尽量减小(可以分成两部分,另一部分放在PETOOLS中),只保留内核需要的文件就可以了,如7Z是内核需要的,其他可以联网后挂载;
3:启动到桌面后,自动连接网络,自动映射服务器上的PETOOLS。我没看到有映射的步骤。
总之,PXE要充分利用服务端的资源。
以108.IMG为例(gz压缩),pxenet.lst
checkrange 0x21 read 0x8280 && pxe keep
debug off
terminal console
color white/blue blue/yellow light-red/blue 10
timeout 0
default 0
title PXE 2003PE
write 0x82a4 1
map --mem=0xb000 /AXPE/108.IMG (rd)
write 0x82a4 0
map --mem (rd)+1 (fd0)
map --hook
insmod (fd0)/AXPE/FAT
pause --wait=0 Copy Tools,Please waiting..
FAT copy /AXPE/PXEout.ini (fd0)/AXPE/
clear
#pause --wait=0 Copy Files:Core03.exe(2/20),Please waiting..
#FAT copy /AXPE/Core03.exe (fd0)/AXPE/
#clear
#pause --wait=0 Copy Files:PESOFT.WIM(3/20),Please waiting..
#FAT copy /AXPE/PESOFT.WIM (fd0)/AXPE/
#clear
#pause --wait=0 Copy Files:Net03.WIM(4/20),Please waiting..
#FAT copy /AXPE/Net03.WIM (fd0)/AXPE/
#clear
pause --wait=0 Copy Files:DRV_NET.CAB(5/20),Please waiting..
FAT copy /AXPE/PE_NVS/DRV_NET.CAB (fd0)/AXPE/PE_NVS/
clear
#pause --wait=0 Copy Files:IE6.7Z(6/20),Please waiting..
#FAT copy /AXPE/PE_NVS/IE6.7Z (fd0)/AXPE/PE_NVS/
#clear
#pause --wait=0 Copy Files:NET_PART.7Z(7/20),Please waiting..
#FAT copy /AXPE/PE_NVS/NET_PART.7Z (fd0)/AXPE/PE_NVS/
#clear
#pause --wait=0 Copy Files:THUNDER.7z (8/20),Please waiting..
#FAT copy /AXPE/PE_NVS/THUNDER.7z (fd0)/AXPE/PE_NVS/
#clear
#pause --wait=0 Copy Files:wallpaper(9-12/20),Please waiting..
#FAT copy /AXPE/PIC/01.jpg (fd0)/AXPE/PIC/
#FAT copy /AXPE/PIC/02.jpg (fd0)/AXPE/PIC/
#FAT copy /AXPE/PIC/03.jpg (fd0)/AXPE/PIC/
#FAT copy /AXPE/PIC/04.jpg (fd0)/AXPE/PIC/wall.jpg
#clear
#pause --wait=0 Copy Files:FIRADISK Driver(13-15/20),Please waiting..
#FAT copy /AXPE/FIRADISK.INF (fd0)/
#FAT copy /AXPE/FIRADISK.SYS (fd0)/
#FAT copy /AXPE/TXTSETUP.OEM (fd0)/
#FAT copy /AXPE/SETUPLDR.BIN (fd0)/AXPE/
#clear
#pause --wait=0 Copy Files:03PE.WIM(17/20),Please waiting..
#FAT copy /AXPE/03PE.WIM (fd0)/AXPE/
#FAT copy /AXPE/SKYPE (fd0)/AXPE/
#FAT copy /AXPE/NTDETECT (fd0)/AXPE/
#clear
#pause --wait=0 Copy Files:OPERA.7Z (20/20),Please waiting...
#FAT copy /AXPE/PE_NVS/OPERA.7Z (fd0)/AXPE/PE_NVS/
checkrange 0x21 read 0x8280 && pxe keep && goto 1
goto 2
title
clear
cat --length=0 /AXPE/SERV_SET.BAT || goto 2
FAT copy /AXPE/SERV_SET.BAT (fd0)/
set /a ip=*0x8288&0xff
set /a a=*0x8288>>8&0xff
set ip=%ip%.%a%
set /a a=*0x8288>>16&0xff
set ip=%ip%.%a%
set /a a=*0x8288>>24&0xff
set ip=%ip%.%a%
write --offset=0x100 (fd0)/SERV_SET.BAT \r\nset PXE_SERVER=%ip%\r\n
goto 2
title
delmod fat
pxe unload
chainloader (fd0)/AXPE/SETUPLDR.BIN
#boot |
|