grldr if you want grub4dos to boot (note the screenshot shows grldr_ but this is an artefact of the display, it should be set to grldr).
Set Boot File to
The DHCP settings should be set as above. This can support up to 10 PCs on the network (including wireless PCs) as the pool size is set to 10 (you can change it to more if you like).
New PCs will be assigned an IP address starting with the first one at 192.168.1.120, and the second one will be 192.168.1.121, etc.
The DLink router (192.168.1.1) still acts as our DNS server and Default router (gateway).
Again Bind the address to that of your PC and enable Persistant (sic) leases.
Close tftpd32/64 and re-run it so that the changes take effect.
C:\tftp\grub4dos\menu.lst (note that menu.lst is a folder and NOT a file).
5. Finally, we need to make a new folder structure on your PC -
grldr file in the c:\tftp\grub4dos folder this is the file that will be requested and run by the PXE client.
Place the grub4dos
folder and rename the file to default (with no extension) - so we now have a file C:\tftp\grub4dos\menu.lst\default as the full file pathname.
Place the menu.lst file that you want to use in the C:\tftp\grub4dos\menu.lst
Place any other files that would normally be on a USB drive in the
default file (aka menu.lst) might be:
title 1 linux iso boot\nlinux must run from RAM only and not reference files on the ISO once booted to linux
map --mem (pd)/linux/linux.iso (0xff)
title 2 Boot DOS floppy image
map --mem (pd)/images/floppy.img (fd0)
title 3 Hirens Boot CD 13.2 using firadisk \nBoot to Hirens Boot CD in RAM - see tutorial #36
map --mem (pd)/firadisk.gz (fd0)
map --mem (pd)/HirensBCD.13.2.iso (0xff)
(pd)/linux/linux.iso refers to the file at C:\tftp\grub4dos\linux\linux.iso.
The tftp root folder is set to C:\tftp\grub4dos in tftpd32/64, so
must use --mem when mapping a file from a PXE (pd) device.
ls command with the PXE (pd) device.
You cannot use the
file, you must use the --raw parameter.
If chainloading a
http://diddy.boot-land.net/grub4dos/files/pxe.htm for more information on grub4dos PXE booting and also the ReadMe file extract at the end of this Tutorial.
Ubuntu PXE boot (extracted from ISO)
MENU LABEL Ubuntu CD - Live
APPEND boot=casper vga=normal netboot=nfs nfsroot=192.168.2.150:/volume1/install/PXE/images/ubuntu-13.10-desktop-i386 fetch=tftp://192.168.2.150/install/PXE/images/ubuntu-13.10-desktop-i386/casper/filesystem.squashfs initrd=images/ubuntu-13.10-desktop-i386/casper/initrd.lz
Undoing the changes!
To undo these changes you just need to do 3 things:
1. Exit the tftpd32/64 utility to stop it acting as a DHCP server
2. Enable DHCP on your router again (or reload the config file that you saved earlier)
3. Go to your network control panel settings and set the TCP/IP settings back to 'Obtain IP address automatically' and 'Obtain DNS automatically' - though it should still work if you leave it set to a fixed address and it will save you having to enter the addresses in again if you later want to enable PXE booting again.
set the PC up as a PXE server again then:
If you want to
1.Go to your network control panel settings and set the TCP/IP settings back to 'Use IP address' and 'Use DNS address' and set up the addresses as before.
2. Disable DHCP on your router
3. Run ftfpd32/64 - it should remember the settings.
Booting to WinPE3 over PXE
If you PXE boot to a WinPE v3 image, you can install any Windows OS onto the target PC/notebook. You can use ImageX or Ghost or any imaging tool that you prefer once you are running WinPE.
When the WinPE OS boots, you just need to connect to another system on the network (e.g. a shared folder on another PC). You can then run any imaging program or backup/restore the PC across the network. You could have a variety of installation DVD folders on the shared network folder and just run setup.exe across the network, or copy the files to the local hard disk across the network and then run setup.exe locally off of the hard disk. In this way you can install XP/Vista/7/SVR2K8 onto any system on the network just by PXE booting to WinPE.
If you want to add a WinPE v3 (PE3/Win7PE) boot.wim image, then here is how to do it:
1. Install the Windows 7 WAIK from
makepxe.cmd (from the Beta Downloads section) to your WAIK's Tools\PETools folder - e.g. C:\Program Files\Windows AIK\Tools\PETools\makepxe.cmd
2. Extract and copy the file
makepxe.cmd (in the WAIK PETools folder) and run as Administrator - it should make a C:\Temp_pxe\Boot folder
3. Right-click on
4. Copy the Boot folder to the C:\tftp folder - the following 5 files should now be present:
Now either follow step 5a if you just want to boot directly to WinPE3, or follow 5b if you want to use grub4dos and have a menu so you can boot lots of different OS's:
c:\tftp\grub4dos\Boot and the DHCP Boot File is pxeboot.n12. (this will now PXE boot straight to WinPE).
5a. Change the tftpd32/64 settings so that the TFTP Base Directory is
here. It would be easier however to use grub4dos as a menu system and then choose which boot.wim file to boot from.
Note: If you wish, you can modify the BCD so that it contains several boot choices. To do this you will need to modify the makepxe.cmd file. For example script modifications see
OR USE GRUB4DOS...
c:\tftp\grub4dos\menu.lst\default to include the grub4dos menu item for WinPE3 (see examples below). If you like you can change the winpe.wim file for another one - e.g. just rename the boot.wim made by the WinBuilder MakePE3 project (e.g. C:\Make_PE3\win7pe_x86\ISO\sources) - see Tutorial #42 for details - or - edit the file c:\tftp\grub4dos\menu.lst\default to include the grub4dos menu item to add the whole WinPE3 ISO file (see menu #5 below).
5b. Keep the same settings on the tftp32/64 DHCP/TFTP fields and instead edit the file
# to prepare a WinPE boot image see the next section (more info at
title 4 Run WinPE 3
chainloader --raw (pd)/Boot/pxeboot.n12
# pxeboot.n12 downloads Bootmgr.exe and the BCD store.
# The BCD store must reside in a \Boot directory in the TFTP root folder. Additionally, the BCD store must be called BCD.
# Bootmgr.exe reads the operating system entries from the BCD and downloads Boot.sdi and the Windows PE image.
# Bootmgr.exe begins booting Windows PE by running Winload.exe within the Windows PE image.
# just load the whole iso into a ramdrive
title 5 Run WinBuilder Make_PE3 project from ISO\nAny WinPE ISO can be loaded into RAM but Windows install DVDs cannot as they are too large!
map --mem (pd)/pe3_x86_M.iso (0xff)
For other ISO's based on WinPE - e.g to boot from a Norton Ghost 15 CD ISO use:
title Norton Ghost 15 (hd32)
map --mem (pd)/iso/Ghost15.iso (0xff)
Note: /BOOTMGR is in uppercase!
here for lots more grub4dos menu.lst working examples for PXE booting!
How to install (or re-install) Windows 7 (or any OS!) via PXE
Once you boot to WinPE via PXE, you now have an OS running on the target (client) system. So you can load network drivers for WinPE and then run NET USE to connect to a Network Share folder on your main PC. You can then run Windows Setup.exe to install Windows across the network - OR - run DISKPART to CLEAN and partition and format the target system's hard disk and run ImageX to pull an image from the main PC onto your hard disk - OR - why not make an image of your other PCs and keep them on your main PC. Then you can easily restore any image at any time in the future.
The steps involved are:
DISM (part of the WAIK) to do this, or just put the Windows 7 network drivers on a USB flash drive and load the network drivers directly from the USB flash drive once you have booted to WinPE3 using DRVLOAD F:\mynetdrv.inf (where F: is the USB flash drive letter). You may need to wait a while for the network to start up, or you can type netcfg -winpe to force the network to start.
1. Make a working WinPE3 boot.wim and add the correct Win 7 network drivers to it for each system you want to use PXE booting on. You can either use
2. Now you have WinPE3 running and have a working network connection, use NET USE to connect to a shared folder on your master PC - e.g.
NET USE N: \\MYDELLPC\CD /U:myusername "mypassword"
Alternatively try using the IP address of the PC you have the file share folder on instead of it's name:
net use n: \\192.168.1.2\cd /U:myusername "mypassword"
where \cd is a shared folder containing the contents of any DVD or CD or any other files you want access to (makes sure 'Everyone' has read access).
3. Check you can access files on the master PC - e.g. type DIR N:\ on the PXE client.
I suggest you place a copy of ImageX.exe in the shared folder so that you can now use it to take a copy of your hard disk
install Windows 7 from a Windows 7 (or Vista) DVD or mounted ISO on the master PC (or Vista or Server 2K8), just mount the appropriate Windows ISO and make a share of the drive as H:, then use a NET USE command to connect to the shared drive from WinPE and run Setup.exe, e.g.
Now you can
NET USE P: \\MYDELLPC\H$ /U:myusername "mypassword"
OR, we can make and restore a backup of the current OS on the PXE-booted system in WinPE instead...
4. We can make an image of the OS that is on the hard disk using the command...
n:\imagex /capture C: N:\EEPC_OS.wim "EEPC C: drive June 30 2011" /check /verify
If we want to apply this image to the same PC in the future (maybe the contents have become corrupted) then we follow steps 1 to 4 above, but now we type:
format /q /x C:
n:\imagex /apply N:\EEPC_OS.wim 1 C: /check /verify
Note that ImageX is a single-file instancing compression utility, so you can simply add another backup to the current backup file using the Append ImageX command at a later date:
N:\ImageX /append C: N:\EEPC_OS.wim "EEPC C: drive July 1st 2011" /check /verify
Now image #2 will have this new backup and the wim file will only be slightly larger as it will only contain the new files that you added since the last backup. You can restore this second image using ImageX /Apply:
format /q /x C:
n:\imagex /info N:\EEPC_OS.wim
n:\imagex /apply N:\EEPC_OS.wim 2 C: /check /verify
OK - that is great - but what if my hard disk was totally trashed, I won't have a C: partition at all?
boot partition and the OS partition (and any other partitions you want to backup). In the case of Win 7 (and most Vista systems) there is a hidden boot partition on the disk. To see what you have, run DISKPART (either from WinPE or from Windows on the actual system itself) and type SEL VOL C and then DETAIL PAR. Look for the Active: Yes entry - if it says Active then this is your boot partition as well as your system OS partition so you only need to back up that partition to be able to boot the OS! If it says Active: No then you need to find the active partition and back that up too. This is more tricky and is too complicated to describe here, but if you back up the C: volume then you should be able to repair a Vista/Win7 system using a Windows Recovery DVD or boot.wim which you can PXE boot to afterwards.
Well, first you will need to have made a backup of both the
Let us assume you have lost all the contents of the hard disk on your notebook (win7) but you have a backup on the main PC of the C: (OS) drive - here is what to do to get it running again:
1. PXE boot from the notebook that you want to re-install and boot to WinPE3
DISKPART as follows (assuming you want two partitions, 200GB + whatever remains) - just type:
2. Wipe, Partition and Format the target hard disk - this can be done using
SEL DIS 0
CRE PAR PRI SIZE=200000
FORMAT FS=NTS QUICK
CRE PAR PRI
FORMAT FS=NTFS QUICK
3. Apply the image as described above using ImageX /Apply
Windows XP PC, type N:\bootsect /nt52 C: to make it boot to NTLDR (for XP) rather than BOOTMGR (for Vista/Win7). Bootsect.exe will need to be copied from the WAIK folder to your shared folder.
4. If the notebook was a
Windows 7 or Vista type: N:\bcdboot C:\windows to ensure the Windows OS is bootable. You will first need to copy bcdboot.exe from the WAIK Tools folder to your shared folder (or USB drive).
If the notebook had
wpeutil reboot and it should reboot to your newly installed OS. If you have any problems booting Win7 or Vista, boot from a Win 7 Recovery DVD (or PXE boot and run Setup.exe from a shared folder containing the DVD contents) and try to 'Repair' drive C:.
5. Now type
Now you can keep backups of all your PCs and notebooks hard disk volumes (keep a copy of the wim files on an external hard disk as well, just in case your main PC catches fire!) and restore any of your PCs in just a few minutes without needing any boot media (USB drive or DVD) at all.
here. Just download the diskless.zip file on that page and follow the instructions to configure the .\pxelinux.cfg\default file as you wish. The instructions are for a linux based diskless workstation to run a distributed computing project, but you can put whatever files you like in the default menu as long as you set the boot file to pxelinux.0.
If you prefer to PXE boot to a syslinux menu rather than a grub4dos menu, there are some instructions
Solution: Switch on the client/target computer and enter the BIOS Setup menu (usually by pressing DEL or F2) - find the Boot options menu and ensure that Network Booting is enabled. Then change the Boot Order so that Network is at the top of the list. If you have a BBS (BIOS Boot Selection) option, enable this so that you can press F12 (usual key) to start a PXE boot after switch on. You should see something similar to that shown below:
Target PC/notebook will not start to PXE boot -