Other Sites for info
http://syslinux.zyto...ex.php/ISOLINUXhttp://diddy.boot-la...s/files/pxe.htmSee here how to use grub for pxe
http://diddy.boot-la...os/Grub4dos.htmWhen using grub for pxe rename your menu.lst to default
place it in /menu.lst/default
"tftpboot is root for pxe"
Menu.lst = /mnt/share2/tftpboot/menu.lst/default
Use grldr as the pxe boot file, and you can map an ISO to memory and boot from it:
map --mem (pd)/mybootable.iso (0xff)
map --hook
chainloader (0xff)
boot
******* Working Examples *********
title LiveXP_RAMsmall.ISO
map --mem (pd)/iso/LiveXP_RAMsmall.ISO (0xff) && map --hook
root (0xff)
map --mem /I386/BOOTSDI.IMG (hd0)
map --hook
chainloader (hd0,0)/NTLDR
title LiveXP_RAM.ISO
map --mem (pd)/iso/LiveXP_RAM.ISO (0xff) && map --hook
root (0xff)
map /I386/BOOTSDI.IMG (hd0)
map --hook
chainloader (hd0,0)/NTLDR
title ========= LiveXP.iso ==============================================================
root
title LiveXP.iso to hd32\n
pxe keep
map (pd)/iso/LiveXP.iso (hd32) && map --hook
root (hd32)
chainloader (hd32)
title LiveXP.iso to 0xff\n
pxe keep
map (pd)/iso/LiveXP.iso (0xff) && map --hook
root (0xff)
chainloader (0xff)
title LiveXP.iso to --mem 0xff\n
pxe keep
map --mem (pd)/iso/LiveXP.iso (0xff) && map --hook
root (0xff)
chainloader (0xff)
title ========= win7pe ==================================================================
root
title win7pe.iso to 0xFF
pxe keep
map --mem (pd)/iso/win7pe.iso (0xff)
map --hook
chainloader (0xff)
title win7pe.iso to hd32
pxe keep
map --mem (pd)/iso/win7pe.iso (hd32)
map --hook
chainloader (hd32)
title win7pe.iso to fd0
pxe keep
map --mem (pd)/iso/win7pe.iso (fd0)
map --hook
chainloader (fd0)
title ======= Other ISO'S =============================================================
root
title MS DaRT70 ISO
root (pd)/iso/DaRT70.iso
map (pd)/iso/DaRT70.iso (0xff) || map --mem (pd)/iso/DaRT70.iso (0xff)
map --hook
chainloader (0xff)
title PciSniffer Mapped to Memory
pxe keep
map --mem --heads=0 --sectors-per-track=0 /iso/pcisniffer.iso (hd32)
map --hook
chainloader (hd32)
title UDPcast Mapped to Memory \nUDPcast is a file transfer tool that can send data simultaneously to many destinations on a LAN. Network setup fails on Compaq laptop = use second network card in list
pxe keep
map --mem --heads=0 --sectors-per-track=0 /iso/udpcd.iso (hd32)
map --hook
chainloader (hd32)
title UDPcast Mapped to (hd32) \nUDPcast is a file transfer tool that can send data simultaneously to many destinations on a LAN. Network setup fails on Compaq laptop = use second network card in list
pxe keep
map --mem /iso/udpcd.iso (hd32)
map --hook
chainloader (hd32)
title Konboot Mapped to Memory (fd0)
pxe keep
map --mem --heads=0 --sectors-per-track=0 /iso/FD0-konboot-v1.1-2in1.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title Konboot Mapped (fd0)
pxe keep
map --mem /iso/FD0-konboot-v1.1-2in1.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title ======= PARTITION =================================================================
root
title Partition Wizard 5.0 (Partition Tools)\nSupports 32/64 bit Windows XP, Vista and 7. Users can perform complicated partition operations to manage their hard disk.Functions include:Resizing,Copying,Create,Delete,Format,Convert, Explore,Hide,Change drive letter,Set active,Partition Recovery.Support RAID,and size larger than 2 TB.
map --mem (pd)/iso/pwhe5.iso (0xFF)
map --hook
root (0xff)
chainloader (0xff)
title Partition Wizard 6.0 (Partition Tools)\nSupports 32/64 bit Windows XP, Vista and 7. Users can perform complicated partition operations to manage their hard disk.Functions include:Resizing,Copying,Create,Delete,Format,Convert, Explore,Hide,Change drive letter,Set active,Partition Recovery.Support RAID,and size larger than 2 TB.
map --mem (pd)/iso/pwhe6.iso (0xFF)
map --hook
root (0xff)
chainloader (0xff)
title ========== BackTrack 5 ============================================================
root
title BackTrack 5 (1024x768) Persistent\nType startx to run GUI once booted PERSISTENT
map --mem (pd)/iso/BT5-KDE-32.iso (0xFF)
map --hook
root (0xff)
kernel /BT5/casper/vmlinuz file=/cdrom/BT5/cdrom/preseed/custom.seed boot=casper live-media-path=/BT5/casper textonly nosplash vga=791-- persistent
initrd /BT5/casper/initrd.gz
title ===================================================================================
root
# Chainload pxelinux boot loader.
title PXELinux chainloader --raw (pd)/pxelinux.0
pxe keep
chainloader --raw (pd)/pxelinux.0
title ======= iPXE ======================================================================
root
title chain to /ipxe/undionly.kpxe w/pxe keep
pxe keep
chainloader --force --raw (pd)/ipxe/undionly.kpxe
title ======= gPXE ======================================================================
root
title chain to /gPXE.pxe
pxe keep
chainloader --force --raw (pd)/gpxe.pxe
title chain to gpxe-1.0.1+-r8169.kpxe for smoothwall
# pxe keep
chainloader --force --raw (pd)/smooth/gpxe-1.0.1+-r8169.kpxe
title chain to PXELinux.0
pxe keep
chainloader --force --raw (pd)/pxelinux.0
title chain to /undionly.kpxe
pxe keep
chainloader --force --raw (pd)/undionly.kpxe
title Load grldr with PXE support
pxe keep
terminal console
chainloader --force --raw (pd)/grldr
title PXE Create ramdisk using map
map --mem (pd)/iso/dosboot.img (fd0)
map --hook
rootnoverify (fd0)
chainloader (fd0)+1
title PXE Create ramdisk using memdisk
kernel (pd)/memdisk/memdisk
initrd (pd)/dosboot.img
title ========= Memtest =================================================================
root
title Memory Test v420 Mapped to Memory
pxe keep
map --mem --heads=0 --sectors-per-track=0 /iso/mt420.iso (hd32)
map --hook
chainloader (hd32)
title Memory Test v420 Mapped to (hd32)
map --mem /iso/mt420.iso (hd32)
map --hook
chainloader (hd32)
title Memory Test /BT4/boot/memtest86+.bin\nMemory Test
kernel /BT4/boot/memtest86+.bin
title ========= Reboot ==================================================================
root
title Grub commandline
commandline
title Reboot\nRegards of
sahar_computers@yahoo.comreboot
title halt - Switch OFF - STOP
halt
**********************************************************************************
grldr can also be loaded by PXE as PXE boot file. after boot through PXE,
it will use (pd) as the TFTP Server device.
map --mem (pd)/someimg.img (fd0)
map --hook
You can see that the menu.lst is very similar to normal disk boot, you just
need to replace device like (hd0,0) with (pd).
There are some differences between disk device and pxe device:
1. You can't list files in the pxe device.
2. The blocklist command will not work with a file in the pxe device.
3. You must use --mem option if you want to map a file in the pxe device.
When you use chainloader to load file from the pxe device, there is a option
you can use:
chainloader --raw (pd)/BOOT_FILE
Option --raw works just like --force, but it load file in one go. This can
improve performance in some situation.
You can use the pxe command to control the pxe device.
1. pxe
If used without any parameter, pxe command will display current
settings.
2. pxe blksize N
Set the packet size for tftp transmission. Minimum value is 512,
maximum value is 1432. This parameter is used primarily for very old
tftp server where packet larger than 512 byte is not supported.
3. pxe basedir /dir
Set the base directory for files in the tftp server. If
pxe basedir /tftp
then all files in the pxe device is related to directory /tftp, for
example, (pd)/aa.img correspond to /tftp/aa.img in the server.
The default value of base directory is the directory of the boot file,
for example, if boot file is /tftp/grldr, then default base directory
is /tftp.
4. pxe keep
Keep the PXE stack. The default behaviour of GRUB4DOS is to unload
the PXE stack just before it exits.
5. pxe unload
Unload the PXE stack immediately.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%