I have made it. Using TFTPD32, it can automatically assign IP addresses. The boot file is grldr of Grub4DOS. The client PXE boots. I have corrected WinpE.iso. After booting, it can load the network card, realize network disk cloning, disk partition management, internet access, QQ and other common functions. Winpe is 70 MB, equivalent to a simple diskless system. Hehe, very good. Just have a little mistake, and I will modify it next time. Here is my menu configuration, without loading fonts, in English menu:
background 105594
timeout 5
default 0
fallback 0
title From WinPE boot(map --mem)
map --mem (pd)/winpe.ISO (hd32)
map --hook
chainloader (hd32)
boot
title From DOS boot(map --mem)
##password2
map --mem (pd)/DOS.GZ (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
boot
title From DOS boot(memdisk)
##password2
kernel (pd)/MEMDISK floppy
initrd (pd)/DOS.GZ
boot
title From Net DOS boot
##password2
map --mem (pd)/DOS.GZ (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
write --offset=0x80 /CONFIG.SYS 2,0
boot
title From ISO boot
map --mem (pd)/DOS.ISO (hd32)
map --hook
chainloader (hd32)
boot
title From TFTP boot
ifconfig --address=192.168.1.254
ifconfig --mask=255.255.255.0
ifconfig --gateway=192.168.1.1
tftpserver 192.168.1.1
kernel (nd)/memdisk
initrd (nd)/network.img
boot
title From Ntldr boot
kernel (pd)/memdisk floppy
initrd (pd)/xpboot.gz
boot
title Restore C pan
##password2
map --mem (pd)/DOS.GZ (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
write --offset=0x80 /CONFIG.SYS 3,0
boot
title Backup C pan
##password2
map --mem (pd)/DOS.GZ (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
write --offset=0x80 /CONFIG.SYS 4,0
boot
title From hd11 boot
rootnoverify (hd0,0)
makeactive
chainloader +1
title From hd12 boot
rootnoverify (hd1,0)
makeactive
chainloader +1
title From hd21 boot
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
makeactive
chainloader (hd1,0)+1
rootnoverify (hd0)
boot
title From CD boot
cdrom --init
map --hook
chainloader (cd0)
boot
title Reboot
reboot
title Halt
halt
[ Last edited by xiaoyunwang on 2010-5-28 at 15:54 ]
生命源头 → www.shengmingyt.cn