Menu

Copy the File which is created under /tmp

Help
2022-09-22
2022-09-29
  • NoErrorNoCry

    NoErrorNoCry - 2022-09-22

    Hi

     
    After i finish the job, there is a file with the parameters created. i want to copy it and reuse it. Everytime i shut Clonezilla down, the file is deleted. How can i copy the file before? 
    i am not conform with linux-programming. Thanks in advance.

     
  • Bryan Cooper

    Bryan Cooper - 2022-09-22

    You can copy that file to the image repository if it's writable. for example,
    cp /tmp/ocs-my-img-2022-09-22 /home/partimag/
    With that, after the image repository is mounted, you can just run it like:
    sudo /home/partimag/ocs-my-img-2022-09-22
    or
    sudo bash /home/partimag/ocs-my-img-2022-09-22

     
  • NoErrorNoCry

    NoErrorNoCry - 2022-09-23

    thanks, thanks i typed in /tmp/ocs and then used "tab" to autofill the correct name.
    the name of my file was "ocs-live-feed-img-2022-23-14-40"

    worked perfectly, thanks for the addition of how to execute the file when the repository is mounted.

     
    👍
    1

    Last edit: NoErrorNoCry 2022-09-26
  • NoErrorNoCry

    NoErrorNoCry - 2022-09-23

    With that, after the image repository is mounted, you can just run it like:

    isn't it possible to run the command from the very first window? by copying the file on the boot stick somehow? or can i mount the repository in the first screen?

     

    Last edit: NoErrorNoCry 2022-09-23
  • NoErrorNoCry

    NoErrorNoCry - 2022-09-26

    thanks very much, using the preseed for mounting the image repository works.
    reference:

    Preseed the mounting of image repository. The image is located in the 2nd partition on first disk (/dev/sda4), under the dir "/Backup". The boot parameters we want to preseed are:
    ocs_prerun="mount /dev/sda4 /mnt"
    ocs_prerun1="mount --bind /mnt/Backup /home/partimag/"

    but to my question: can i copy a file on the bootstick and access it?
    i copied a file to root:
    root

    If i work my way through the the following directorys, my file is somehow gone?
    root2

     

    Last edit: NoErrorNoCry 2022-09-26
  • Steven Shiau

    Steven Shiau - 2022-09-28

    Sure, if your USB disk is still mounted after it boots.
    If you copy the file to the root directory on your USB disk, after Clonezilla live boots, the file is located at this path:
    /run/live/medium/

    Steven

     
  • NoErrorNoCry

    NoErrorNoCry - 2022-09-28

    thanks very much Steven, everyting works as intended

     
  • NoErrorNoCry

    NoErrorNoCry - 2022-09-29

    can you add the tag [Solved] in the title please? is there an implemented function?

     
  • Steven Shiau

    Steven Shiau - 2022-09-29

    This kind of function should be provided by Sourceforge. You can new an issue on sourceforge support:
    https://sourceforge.net/support

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.