Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to permanently save a binary file to memory?

    Hello, I'm am trying to figure out if there is any way to store a file (binary) in memory after a device is power cycled? To explain my issue - I have a Linux based device that I have tftp'd a "tcpdump" binary to the /var/tmp directory of my device. I can use the binary to do captures, etc and it works just fine, however, if the device is power cycled, I have to tftp the binary back to the device. Does anyone know how I can permanently store the "tcpdump" binary in memory even after the device has been rebooted, power cycled, etc?

    Here is my version of Linux that I'm using:

    # cat /proc/version
    Linux version (gcc version 4.7.3 (Buildroot 2013.08.1) ) #1 PREEMPT Tue Dec 20 09:10:34 KST 2016

    Thanks in advance!

  2. #2
    After a little further investigation, it sounds like if I put this in another directory that is not RAM (which /var/tmp is), it will not be wiped and deleted. On that note, does anybody have a suggestion or recommendation as to which folder or directory a 'tcpdump' binary should be put into?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts