Jump to content











Photo
- - - - -

Booting Winpe 7 over pxe using a linux server


  • Please log in to reply
29 replies to this topic

#26 clivebuckwheat

clivebuckwheat

    Newbie

  • Members
  • 20 posts
  •  
    Canada

Posted 31 March 2010 - 02:08 PM

My tftpboot folder is in the root /tftpboot, so I assume I do this I am not using /var/lib/tftpboot

tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/tftpboot -m /tftpboot/tftpd.remap

instead of

tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot -m /var/lib/tftpboot/tftpd.remap

also do I take the remap out of tftpd-hpa file?, and use the one from the inetd.conf file?

#27 clivebuckwheat

clivebuckwheat

    Newbie

  • Members
  • 20 posts
  •  
    Canada

Posted 01 April 2010 - 01:15 AM

I didn't have to do any of that, IT BOOTS with network support now

the first line in the startnet.cmd has to be wpeutil initializenetwork, when booting from a wim file only the basic winpe loads

THANK YOU SO MUCH FOR ALL YOUR HELP!

I have learned so much from you,

ps:one more question, what does that line we comment out in the inetd.conf file do??

#28 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 01 April 2010 - 05:02 AM

so i am not a linux expert,
as i can understand (from Google search) the way of starting the tftpd server is different

first method:
if in the configuration file '/etc/default/tftpd-hpa'
RUN_DAEMON="yes"
then tftpd-hpa server runs as a daemon
independently of inetd

second method:
inetd called "Internet Super-Server" (Internet Daemon).
It is started at system boot time and it manages connections for services.
When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it.
So inetd listen for incoming traffic on a socket, and when such traffic appears, it can launch the appropriate service.
The inetd.conf file tells inetd which ports to listen to and what server to start for each port.
http://www.comptechd...ux_uginetd.html

When you comment the tftp line in '/etc/inetd.conf' you tell inetd daemon not to listen to tftp request and ports.

Do you have any inetd service (e.g. openbsd-inetd or inetutils-inetd) installed and running?

check if your system uses inetd:
ps -e | grep inetd

show the list of installed packages:
dpkg --get-selections | grep inetd
or
aptitude search inetd

https://bugs.launchp...hpa/ bug/227881

if the command
ps -e | grep inetd
returns with an answer then it means inetd daemon is running,
if there is no answer at all then it means inetd does not run

if the command
dpkg --get-selections | grep inetd
returns with e.g. something like this:
openbsd-inetd install
that means 'openbsd-inetd' package is installed on your system
in this case you can choose to let start the tftp server via inetd:
have to use RUN_DAEMON="no" in '/etc/default/tftpd-hpa'
(the tftp server doesn't start as an independent daemon and the line OPTIONS="-l -s etc..." will not active)
in this case have to define the options in '/etc/inetd.conf'
so if your tftp root is '/tftpboot' and your remap file is '/tftpboot/tftpd.remap'
try:
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /tftpboot -m /tftpboot/tftpd.remap -vvv

#29 zocop

zocop
  • Members
  • 1 posts
  •  
    India

Posted 01 April 2010 - 06:21 AM

isolinux.cfg
------------------------------------------------------
default /boot/menu.c32
prompt 0
#timeout 600
menu title My Boot CD TITLE
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color disabled 0 #ffffffff #00000000
menu color timeout_msg 0 #ffffffff #00000000
menu color timeout 0 #ffffffff #00000000
menu tabmsg
menu timeoutrow 10
menu margin 0
menu indent 5
menu rows 17
label 0
menu label Boot From Hard Drive
localboot 0x80
menu separator

label xpl
menu label Setup Windows Xp2
kernel /HBCD/winset.bin

label win7
menu label Setup Windows 7
kernel /sources/boot.wim
menu separator


label bc
menu label Start BootCD
kernel /HBCD/memdisk
append initrd=/HBCD/boot.gz

label xp
menu label Start Mini Windows Xp
kernel /HBCD/XP.BIN

----------------------------------------------
I cannot setup Windows 7. please help me. how can i setup windows 7

#30 mrmucox

mrmucox
  • Members
  • 1 posts
  •  
    United States

Posted 25 June 2010 - 02:59 AM

Thank you, thank you, thank you!

I had the remap setup in one place, but not the other, resulting in the \Boot\BCD configuration error.

This was the only place that I found that was willing to work out clivebuckwheat's problem (and mine)!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users