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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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:
If i work my way through the the following directorys, my file is somehow gone?
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
Last edit: NoErrorNoCry 2022-09-26
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
To customize Clonezilla live, you can refer to these docs:
https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
and
https://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
Steven
thanks very much, using the preseed for mounting the image repository works.
reference:
but to my question: can i copy a file on the bootstick and access it?

i copied a file to root:
If i work my way through the the following directorys, my file is somehow gone?

Last edit: NoErrorNoCry 2022-09-26
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
thanks very much Steven, everyting works as intended
can you add the tag [Solved] in the title please? is there an implemented function?
This kind of function should be provided by Sourceforge. You can new an issue on sourceforge support:
https://sourceforge.net/support
Steven