Jump to content











Photo
- - - - -

How to set BaseDirectory to handle 'C:\' Drive letter in file request?

tftpd32 tftpd64 basedirectory

  • Please log in to reply
4 replies to this topic

#1 StivBaskin8937

StivBaskin8937
  • Members
  • 2 posts
  •  
    United States

Posted 4 weeks ago

Hello,

I have a system that has a hard-coded drive letter in the TFTP file request:
  C:\boot\recovery.bin

As a result I keep getting 'File Not Found' errors. I have not been able
to configure my tftpd32.ini file to handle this path.  

I've tried setting BaseDirectory to various things, but I can't seem to set
it "above" the C: drive, so tftpd32 can't handle the request.

Unfortunately the 'C:\' part of the file request is required.  I don't even know

if it's valid TFTP to have a drive letter, but it's what I have to deal with.

Any suggestions?


Thank you for your time.

Stiv



 



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13924 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 4 weeks ago

On tftpd (the Linux version) there is a -m (remap) option, with a separate configuration file, *like*:

https://kernel.googl...pd/sample.rules

 

ri    ^[a-z]:                # Remove "drive letters"

 

I don't think that tftpd32 (or tftpd64 as now it seems like only 64 bit builds are provided :w00t: :ph34r: ) has a similar provision. :dubbio:

 

Semi-random thought (and not necessarily a good answer to your question), but have you tried erwan.l's project:

http://reboot.pro/fo...iny-pxe-server/

http://reboot.pro/to...iny-pxe-server/

http://mistyrebootfi...xesrv_about.htm

 

If it does (apart from the hardcoded C:\ issue) what you need, then maybe he (erwan.l is an active member on the forum) might add the feature (if it is not already there, I think it isn't but maybe it is already available :unsure:)

 

:duff:

Wonko



#3 StivBaskin8937

StivBaskin8937
  • Members
  • 2 posts
  •  
    United States

Posted 4 weeks ago

Thanks for the prompt reply Wonko.  I have to use tftpd32 to match a legacy system, so PXE won't work for me.  Looks like an interesing project though!

 

I will look for remap on the Windows version.

 

Regards,

 

Stiv



#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13924 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 4 weeks ago

At least unitl 2011 there wasn't any remapping function, as this user:

http://reboot.pro/to...name-remapping/

 

added a small part of it (the part that he needed) modifying the source.

And I don't think it was added later :(.

 

:duff:

Wonko



#5 erwan.l

erwan.l

    Gold Member

  • Developer
  • 2106 posts
  • Location:Nantes - France
  •  
    France

Posted A week ago

If there is a request/need for this i can probably add this feature.
Lets see if the op comes back.

About pxe and legacy system, TPS supports the old BOOTP as well.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users