Fix for tftpd file remaps. (windows upper case bug)

This forum discusses topics about the Ultimate Deployment Appliance

Moderators: the_dude, Posters

Fix for tftpd file remaps. (windows upper case bug)

Postby danny » Fri Mar 20, 2009 4:22 pm

Some of you might have added your own drivers, or perhaps included driverpacks.net, or tried to boot windows pe without the iso function where its loaded into ram.
And stumbled across the nasty upper case windows crap.
Then added all those files to be remapped manualy one file after another.
Then you might wana use this instead :

Code: Select all
rg   A      a      # lower case
rg   B      b      # lower case
rg   C      c      # lower case
rg   D      d      # lower case
rg   E      e      # lower case
rg   F      f      # lower case
rg   G      g      # lower case
rg   H      h      # lower case
rg   I      i      # lower case
rg   J      j      # lower case
rg   K      k      # lower case
rg   L      l      # lower case
rg   M      m      # lower case
rg   N      n      # lower case
rg   O      o      # lower case
rg   P      p      # lower case
rg   Q      q      # lower case
rg   R      r      # lower case
rg   S      s      # lower case
rg   T      t      # lower case
rg   U      u      # lower case
rg   V      v      # lower case
rg   W      w      # lower case
rg   X      x      # lower case
rg   Y      y      # lower case
rg   Z      z      # lower case


That will convert everything to lower case, now you might wana convert WINXP WINXP_SYS and so on back to upper case so add :

Code: Select all
rG winxp WINXP
rG winxp_sys WINXP_SYS
rG winxp_extra WINXP_EXTRA


Always remember the remaps is done like they are written in the config, top ones first
Please reply how it worked for you, i wana know if this is universal.
danny
 
Posts: 22
Joined: Mon Mar 02, 2009 1:52 am

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby hishanxp » Tue Mar 24, 2009 6:07 am

shoul i remove all privious enterys in the tftpd file
hishanxp
 
Posts: 8
Joined: Mon Mar 23, 2009 12:10 pm

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby danny » Tue Mar 24, 2009 8:54 am

You dont have to but, you can remove the driver sections and other file recase fixes, this is my config but keep in mind that i have modified the driver section to save some space because i have over 100MB nic drivers added.
If that doesn't explain it enough, post your config and ill show you what you can remove.

Code: Select all
# Convert everything to lower case
rG A a
rG B b
rG C c
rG D d
rG E e
rG F f
rG G g
rG H h
rG I i
rG J j
rG K k
rG L l
rG M m
rG N n
rG O o
rG P p
rG Q q
rG R r
rG S s
rG T t
rG U u
rG V v
rG W w
rG X x
rG Y y
rG Z z

# Convert wi2ks os dirs back to upper case
rG wi2ks WI2KS
rG wi2ks_sys WI2KS_SYS
rG wi2ks_extra WI2KS_EXTRA

# Convert winxp os dirs back to upper case
rG winxp WINXP
rG winxp_sys WINXP_SYS
rG winxp_extra WINXP_EXTRA

# Convert wi2k3 os dirs back to upper case
rG wi2k3 WI2K3
rG wi2k3_sys WI2K3_SYS
rG wi2k3_extra WI2K3_EXTRA

# Convert backslash to slash
rg \\ /

# WINDOWS network drivers section
rgi /WI2K3/i386/WI2K3_SYS/(.*)   /WI2K3_SYS/\1
rgi /WI2KS/i386/WI2KS_SYS/(.*)   /WI2KS_SYS/\1
rgi /WINXP/i386/WINXP_SYS/(.*)   /WINXP_SYS/\1

# WINDOWS pxelinux.0 bug
rgi pxelinux\.0ntd(.+)          ntd\1
rgi pxelinux\.0(.+)             \1

# Solaris 10 Section
rgi boot/grub/            /

# WINXP OS'es
rG /inst_src/windows-xp-pro-dk-sp3-32bit/WINXP_SYS/ /win_nic_drivers/
rG /inst_src/windows-xp-pro-se-sp3-32bit/WINXP_SYS/ /win_nic_drivers/
rG /inst_src/windows-xp-pro-en-sp3-32bit/WINXP_SYS/ /win_nic_drivers/

# WIN2K OS'es
rG /inst_src/windows-2000-pro-dk-sp4/WI2KS_SYS/ /win_nic_drivers/
rG /inst_src/windows-2000-pro-se-sp4/WI2KS_SYS/ /win_nic_drivers/
rG /inst_src/windows-2000-pro-en-sp4/WI2KS_SYS/ /win_nic_drivers/

#WINPE OS'es
rG /diskless/windows/ubcd4win/WINXP/i386/system32/drivers/WINXP_SYS/ /win_nic_drivers/
rG /diskless/windows/winpe/WINXP/i386/system32/drivers/WINXP_SYS/ /win_nic_drivers/
danny
 
Posts: 22
Joined: Mon Mar 02, 2009 1:52 am

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby hishanxp » Tue Mar 24, 2009 3:26 pm

currently i have uploaded windows xp and 2003 i think this is the correct file took from /etc/tftpd.map i have added yor coding in win xp section



GENERAL SECTION
# More comments
# 0 rewrite backslash for slash
rg \\ /

# WINDOWS network drivers section
rgi /WI2K3/i386/WI2K3_SYS/(.*) /WI2K3_SYS/\1
rgi /WI2KS/i386/WI2KS_SYS/(.*) /WI2KS_SYS/\1
rgi /WINXP/i386/WINXP_SYS/(.*) /WINXP_SYS/\1


# WINDOWS pxelinux.0 bug
rgi pxelinux\.0ntd(.+) ntd\1
rgi pxelinux\.0(.+) \1

# WINDOWS XP filename case problems
rgi /WINXP/i386/KDCOM.DL_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/KDCOM.DLL /WINXP_EXTRA/KDCOM.DLL
rgi /WINXP/i386/BOOTVID.DL_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/BOOTVID.dll /WINXP_EXTRA/BOOTVID.dll
rgi /WINXP/i386/SETUPREG.HI_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/SETUPREG.HIV /WINXP_EXTRA/SETUPREG.HIV
rgi /WINXP/i386/spddlang.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/spddlang.sys /WINXP_EXTRA/SPDDLANG.SYS
rgi /WINXP/i386/wmilib.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/wmilib.sys /WINXP_EXTRA/WMILIB.SYS
rgi /WINXP/i386/scsiport.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/scsiport.sys /WINXP_EXTRA/SCSIPORT.SYS
rgi /WINXP/i386/classpnp.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/classpnp.sys /WINXP_EXTRA/CLASSPNP.SYS
rgi /WINXP/i386/tdi.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/tdi.sys /WINXP_EXTRA/TDI.SYS
rgi /WINXP/i386/oprghdlr.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/oprghdlr.sys /WINXP_EXTRA/OPRGHDLR.SYS
rgi /WINXP/i386/1394bus.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/1394bus.sys /WINXP_EXTRA/1394BUS.SYS
rgi /WINXP/i386/pciidex.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/pciidex.sys /WINXP_EXTRA/PCIIDEX.SYS
rgi /WINXP/i386/usbport.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/usbport.sys /WINXP_EXTRA/USBPORT.SYS
rgi /WINXP/i386/usbd.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/usbd.sys /WINXP_EXTRA/USBD.SYS
rgi /WINXP/i386/hidclass.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/hidclass.sys /WINXP_EXTRA/HIDCLASS.SYS
rgi /WINXP/i386/hidparse.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/hidparse.sys /WINXP_EXTRA/HIDPARSE.SYS
rgi /WINXP/i386/videoprt.sy_ /WINXP_EXTRA/NONEXISTENT
rgi /WINXP/i386/videoprt.sys /WINXP_EXTRA/VIDEOPRT.SYS
rg A a # lower case
rg B b # lower case
rg C c # lower case
rg D d # lower case
rg E e # lower case
rg F f # lower case
rg G g # lower case
rg H h # lower case
rg I i # lower case
rg J j # lower case
rg K k # lower case
rg L l # lower case
rg M m # lower case
rg N n # lower case
rg O o # lower case
rg P p # lower case
rg Q q # lower case
rg R r # lower case
rg S s # lower case
rg T t # lower case
rg U u # lower case
rg V v # lower case
rg W w # lower case
rg X x # lower case
rg Y y # lower case
rg Z z # lower case
rG winxp WINXP
rG winxp_sys WINXP_SYS
rG winxp_extra WINXP_EXTRA

# WINDOWS 2003 filename case problems
rgi /WI2K3/i386/KDCOM.DL_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/KDCOM.DLL /WI2K3_EXTRA/KDCOM.DLL
rgi /WI2K3/i386/BOOTVID.DL_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/BOOTVID.dll /WI2K3_EXTRA/BOOTVID.dll
rgi /WI2K3/i386/SETUPREG.HI_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/SETUPREG.HIV /WI2K3_EXTRA/SETUPREG.HIV
rgi /WI2K3/i386/spddlang.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/spddlang.sys /WI2K3_EXTRA/SPDDLANG.SYS
rgi /WI2K3/i386/wmilib.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/wmilib.sys /WI2K3_EXTRA/WMILIB.SYS
rgi /WI2K3/i386/scsiport.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/scsiport.sys /WI2K3_EXTRA/SCSIPORT.SYS
rgi /WI2K3/i386/classpnp.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/classpnp.sys /WI2K3_EXTRA/CLASSPNP.SYS
rgi /WI2K3/i386/tdi.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/tdi.sys /WI2K3_EXTRA/TDI.SYS
rgi /WI2K3/i386/oprghdlr.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/oprghdlr.sys /WI2K3_EXTRA/OPRGHDLR.SYS
rgi /WI2K3/i386/1394bus.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/1394bus.sys /WI2K3_EXTRA/1394BUS.SYS
rgi /WI2K3/i386/pciidex.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/pciidex.sys /WI2K3_EXTRA/PCIIDEX.SYS
rgi /WI2K3/i386/usbport.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/usbport.sys /WI2K3_EXTRA/USBPORT.SYS
rgi /WI2K3/i386/usbd.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/usbd.sys /WI2K3_EXTRA/USBD.SYS
rgi /WI2K3/i386/hidclass.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/hidclass.sys /WI2K3_EXTRA/HIDCLASS.SYS
rgi /WI2K3/i386/hidparse.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/hidparse.sys /WI2K3_EXTRA/HIDPARSE.SYS
rgi /WI2K3/i386/videoprt.sy_ /WI2K3_EXTRA/NONEXISTENT
rgi /WI2K3/i386/videoprt.sys /WI2K3_EXTRA/VIDEOPRT.SYS

# Solaris 10 Section
rgi boot/grub/ /
hishanxp
 
Posts: 8
Joined: Mon Mar 23, 2009 12:10 pm

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby danny » Tue Mar 24, 2009 9:39 pm

GENERAL SECTION
# More comments
# 0 rewrite backslash for slash
rg \\ /

# Convert everything to lower case
rG A a
rG B b
rG C c
rG D d
rG E e
rG F f
rG G g
rG H h
rG I i
rG J j
rG K k
rG L l
rG M m
rG N n
rG O o
rG P p
rG Q q
rG R r
rG S s
rG T t
rG U u
rG V v
rG W w
rG X x
rG Y y
rG Z z

# WINDOWS pxelinux.0 bug
rgi pxelinux\.0ntd(.+) ntd\1
rgi pxelinux\.0(.+) \1

# Convert os dirs back to upper case
rG winxp WINXP
rG winxp_sys WINXP_SYS
rG winxp_extra WINXP_EXTRA

# Solaris 10 Section
rgi boot/grub/ /

# WINDOWS network drivers section
rgi /WI2K3/i386/WI2K3_SYS/(.*) /WI2K3_SYS/\1
rgi /WI2KS/i386/WI2KS_SYS/(.*) /WI2KS_SYS/\1
rgi /WINXP/i386/WINXP_SYS/(.*) /WINXP_SYS/\1

Plus the last lines you didn't provide
And you are good to go
danny
 
Posts: 22
Joined: Mon Mar 02, 2009 1:52 am

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby hishanxp » Thu Mar 26, 2009 1:14 am

ITS ALIVE!!!!!!!!!!! ITS ALIVE!!!!!!!!!!!!!!!!
Hurray its working the dirvers are loading tahk you very very very much the patch worked :D :D :D :D :lol:
hishanxp
 
Posts: 8
Joined: Mon Mar 23, 2009 12:10 pm

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby krismcewan » Fri Apr 24, 2009 8:40 pm

im glad someone has it working but no matter what i do it seems to fail somewhere.

last one is the \WINXP\i386\KDCOM.DLL

My TFTP code is

Code: Select all
# GENERAL SECTION
# More comments
# 0 rewrite backslash for slash
rg \\ /

# WINDOWS network drivers section
rgi /WI2K3/i386/WI2K3_SYS/(.*)   /WI2K3_SYS/\1
rgi /WI2KS/i386/WI2KS_SYS/(.*)   /WI2KS_SYS/\1
rgi /WINXP/i386/WINXP_SYS/(.*)   /WINXP_SYS/\1

# WINDOWS pxelinux.0 bug
rgi pxelinux\.0ntd(.+)          ntd\1
rgi pxelinux\.0(.+)             \1

#lowercase
rG   A      a      # lower case
rG   B      b      # lower case
rG   C      c      # lower case
rG   D      d      # lower case
rG   E      e      # lower case
rG   F      f      # lower case
rG   G      g      # lower case
rG   H      h      # lower case
rG   I      i      # lower case
rG   J      j      # lower case
rG   K      k      # lower case
rG   L      l      # lower case
rG   M      m      # lower case
rG   N      n      # lower case
rG   O      o      # lower case
rG   P      p      # lower case
rG   Q      q      # lower case
rG   R      r      # lower case
rG   S      s      # lower case
rG   T      t      # lower case
rG   U      u      # lower case
rG   V      v      # lower case
rG   W      w      # lower case
rG   X      x      # lower case
rG   Y      y      # lower case
rG   Z      z      # lower case

# Convert os dirs back to upper case
rG winxp WINXP
rG winxp_sys WINXP_SYS
rG winxp_extra WINXP_EXTRA

# Solaris 10 Section
rgi boot/grub/            /
krismcewan
 
Posts: 1
Joined: Fri Apr 24, 2009 8:17 pm

Re: Fix for tftpd file remaps. (windows upper case bug)

Postby Native » Wed Aug 10, 2011 7:55 am

I'm curious as to why this isn't working for me. I can't seen to get past the error 21 uppercase message. I'd like to have this remap working but it doesn't seem to be working for me.

Anyone care to lend a hand?
Native
 
Posts: 3
Joined: Wed Aug 03, 2011 9:55 pm


Return to Ultimate Deployment Appliance

Who is online

Users browsing this forum: No registered users and 0 guests

cron