You're going to need a thumbdrive of at least 8GB to do this.
2. Under Windows or Linux, make a new folder in the root of your thumbdrive called images (ex. F:\images). Copy your Clonezilla image folder into this folder. Remember since this will be under Linux, your folder names should be made with lowercase characters and no spaces to prevent issues.
If you don't have an image yet, you can just make the folder and later you can add the image into it.
3. This next step is easier to deal with in Linux; boot from your DRBL-LIVE CD and plug in your thumbdrive. If you create this file under Windows, you will need to make sure that
you save it in a UNIX (no CR/LF) format or use dos2unix to convert the file (ex - dos2unix /live/image/images/clonezilla-usbmount.sh).
In the \images folder, create a file called clonezilla-usbmount.sh. Add the following lines:
# This file is to mount the CD/USB drive's IMAGES folder for cloning use
# This version is intending to be used with the boot option ocs_prerun="bash /live/image/images/clonezilla-usbmount.sh"
# NOTE: This file MUST be in UNIX format; it will error out otherwise
# Wipe screen for easier visibility
# CD/USB is already mounted as /live, so bind image directory to /home/partimag
echo " "
echo "Mounting CD/USB IMAGES folder dynamically..."
mount --bind /live/image/images /home/partimag
echo " "
# Show just mounted folder
mount | grep partimag
echo " "
echo " "
echo "Remember to choose SKIP when asked to set up /HOME/PARTIMAG"
read -p "Press any key to continue..."
4. Open the syslinux.cfg file in the root of the thumbdrive, and look for the first ubnentry_ section; it should look like this:
menu label DRBL Live
append initrd=/live/initrd1.img boot=live union=aufs noprompt vga=785 squashfs ip=frommedia
5. Copy that first section and paste right after it leaving a blank line between the two... This will be your new second section. Change the first line to label ubentry0a. Add the following to the end of the append line:
Change the menu label line to read a more appropriate message, so that finally your section looks like this:
menu label DRBL Live with Image-On-USB Support
append initrd=/live/initrd1.img boot=live union=aufs noprompt vga=785 squashfs ip=frommedia ocs_prerun="bash /live/image/images/clonezilla-usbmount.sh"
Note -- The append line is a long line that ends with ocs_prerun="bash /live/image/images/clonezilla-usbmount.sh".
6. Save the file and reboot, making sure that you have turned on USB support in the BIOS. Choose the option that shows our USB support and then during the boot process you will eventually see a screen pop up showing you that your image folder was mounted.
When you actually go to push/pull an image, you will need to choose the SKIP option when CloneZilla asks you how to mount your /home/partimag folder, since the script above will mount it for you.
If you don't already have an image on your thumbdrive, you will have to boot the thumb drive into RAM mode in order to dump one onto it. Then, instead of choosing SKIP at the /home/partimag mount screen, choose LOCAL DEV and point CloneZilla to your USB drive's \images folder.