Menu

Adding file to ISO

Help
2018-05-01
2018-05-11
  • Julio Lajara

    Julio Lajara - 2018-05-01

    Hey guys, im trying to extract the Clonezilla live ISO, add a file to it and then recreate the ISO.

    I used 7zip to extract the ISO and added a 1.7gb file to it. I then used the following to create the ISO from PWD of /tmp/clonezilla:

    mkisofs -r -V "Custom Clonezilla" -cache-inodes -J -l -b syslinux/isolinux.bin -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o clonezilla-custom.iso /tmp/clonezilla
    

    That generated an ISO fine but it doesnt seem to be usable after putting it on USB drive with dd.

    Any thoughts on how I can regenerate this ISO? I need it to boot on a UEFI based system and to be able to run the generation command myself from the CLI and not some other tool. I read some script in the Clonezilla repo that says that there may be size limit issues in one of the tools but not sure if thats relevant here.

    Thanks,

     
  • Julio Lajara

    Julio Lajara - 2018-05-01

    Disregard, I was able to get it to work correctly using xorriso:

    xorriso -as mkisofs -V "Custom Clonezilla" -o ../clonezilla.iso -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -c syslinux/boot.cat -b syslinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efiboot.img -no-emul-boot -isohybrid-gpt-basdat /tmp/clonezilla
    

    Had to install xorriso and isolinux.

     
  • Steven Shiau

    Steven Shiau - 2018-05-11

    Yes. Thanks for sharing that.

    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.