WaybackMachine / winxp-netinstall-howto

Automatically exported from code.google.com/p/winxp-netinstall-howto
1 stars 0 forks source link

tftpd made troubles #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is probably not winxp-netinstall-howto's fault, but I guess mentioning 
this in would be helpful:

adding the --user tftp.tftp option wasn't enough.

In the end I added the options:
--daemon --bind-address=0.0.0.0
stopped the inetdaemon
and restarted tftp

Just restarting the inetdaemon might have been enough.

In addition for whatever reason atftp added the port as prefix for the filename 
→ a symbolic link fixed this

Original issue reported on code.google.com by christ...@loitsch.com on 14 Dec 2012 at 5:24

GoogleCodeExporter commented 8 years ago
In addition atftp is case sensitive and doesn't support replacing \ with /.

I finally decided to go with tftpd-hpa:
* create a /etc/tftpd.map file (the "spaces" are tabs, and the last character 
is the digit 0)
###
# convert \ to /
rg  \\  /
# everything to lowercase
r   ^.*$    \L\0
###

adapt the the TFTP_OPTIONS in /etc/default/tftpd-hpa to
TFTP_OPTIONS="--secure -m /etc/tftpd.map -p"

* mount the win-cd with check=r (relaxed) → the iso9660 filesystem ignores 
case
either adapt the mount-winxpcd script to
mkdir -p winxpcd
test -d winxpcd/I386 || sudo mount -o loop,check=r winxp.iso winxpcd
or execute
mount -o remount,check=r /home/xxx/winxpcd

* rename all drivers to lowercase:
  cd drivers; for i in *; do lower=$(echo -n $i | tr '[A-Z]' '[a-z]'); if [ -f $lower ]; then echo $lower already lowercase; else mv $i $lower; fi; done

* instead of copying the windows files (which would force the filenames to 
lower/upper case) mount them together with the drivers using aufs:
cd /home/tftp/winxpcd
mkdir I386
ln -s I386 i386
mount -t aufs -o br=/home/xxx/divers:/home/xxx/winxpcd/I386 I386

If you are using a debian live cd for this, / is already mounted with aufs.  In 
that case move the drivers to /tmp or another filesystem. aufs does not support 
aufs inside aufs.

Original comment by christ...@loitsch.com on 14 Dec 2012 at 8:23